▶ python3 run.py -d
UI hierchary dumped to: /sdcard/dump.xml
/sdcard/dump.xml: 1 file pulled. 5.2 MB/s (23633 bytes in 0.004s)
Traceback (most recent call last):
File "run.py", line 90, in
run(sys.argv[1:])
File "run.py", line 43, in run
fun.main()
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/main.py", line 193, in main
self.init()
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/main.py", line 58, in init
self._adb.click_by_text_after_refresh('通讯录')
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/adb.py", line 132, in click_by_text_after_refresh
self.click_by_text(text, index)
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/adb.py", line 124, in click_by_text
self.click(0)
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/adb.py", line 119, in click
self.cal_coordinate(cal_index)
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/adb.py", line 104, in cal_coordinate
_bounds = self._nodes[_index]['bounds']
IndexError: list index out of range
▶ python3 run.py -d UI hierchary dumped to: /sdcard/dump.xml /sdcard/dump.xml: 1 file pulled. 5.2 MB/s (23633 bytes in 0.004s) Traceback (most recent call last): File "run.py", line 90, in
run(sys.argv[1:])
File "run.py", line 43, in run
fun.main()
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/main.py", line 193, in main
self.init()
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/main.py", line 58, in init
self._adb.click_by_text_after_refresh('通讯录')
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/adb.py", line 132, in click_by_text_after_refresh
self.click_by_text(text, index)
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/adb.py", line 124, in click_by_text
self.click(0)
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/adb.py", line 119, in click
self.cal_coordinate(cal_index)
File "/Users/lmy/dev/android/wechat/auto_add_wechat_friends_py/adb.py", line 104, in cal_coordinate
_bounds = self._nodes[_index]['bounds']
IndexError: list index out of range