MCPcopy
hub / github.com/cluic/wxauto / GetFriendNum

Method GetFriendNum

wxauto/elements.py:596–600  ·  view source on GitHub ↗

获取好友人数

(self)

Source from the content-addressed store, hash-verified

594 self.UiaAPI.SwitchToThisWindow()
595
596 def GetFriendNum(self):
597 """获取好友人数"""
598 wxlog.debug('获取好友人数')
599 numText = self.Sidebar.PaneControl(Name='全部').TextControl(foundIndex=2).Name
600 return int(re.findall('\d+', numText)[0])
601
602 def Search(self, keyword):
603 """搜索好友

Callers

nothing calls this directly

Calls 2

TextControlMethod · 0.80
PaneControlMethod · 0.80

Tested by

no test coverage detected