测试
This commit is contained in:
parent
691dbdd7b2
commit
1ad2dc52be
@ -2,9 +2,11 @@ from uiautomator2 import Device
|
||||
|
||||
|
||||
def click_search_icon(d: Device):
|
||||
(d
|
||||
.xpath('//*[@resource-id="com.ss.android.ugc.aweme:id/ybv"]/android.widget.Button[1]/android.widget.FrameLayout[1]')
|
||||
.click())
|
||||
selector = d.xpath('//*[@resource-id="com.ss.android.ugc.aweme:id/ybv"]/android.widget.Button['
|
||||
'1]/android.widget.FrameLayout[1]')
|
||||
if selector.exists:
|
||||
selector.click()
|
||||
|
||||
|
||||
def input_search_text(d: Device, text: str):
|
||||
(d
|
||||
|
Loading…
Reference in New Issue
Block a user