uiautomator2 icon indicating copy to clipboard operation
uiautomator2 copied to clipboard

The documentation (read me) incorrectly specifies the method for stopping watch_context

Open Dskx54 opened this issue 2 years ago • 1 comments

ctx = d.watch_context()
ctx.when("设置").click()
ctx.wait_stable() # 等待界面不在有弹窗了

ctx.close()

Instead of the "close" method, the "stop" method should be specified

otherwise, you may get an error

AttributeError: 'WatchContext' object has no attribute 'close'

Dskx54 avatar Jun 08 '22 09:06 Dskx54