hahza
This commit is contained in:
8
test1.py
8
test1.py
@@ -1051,9 +1051,15 @@ def main() -> None:
|
||||
|
||||
|
||||
def input_code(page, code):
|
||||
page.ele('x://input[@placeholder="请输入验证码"]').input(code)
|
||||
page.ele('x://input[@placeholder="请输入验证码"]').input(code,clear=True)
|
||||
time.sleep(0.5)
|
||||
|
||||
page.listen.start("hn_userEquitys/common/order")
|
||||
page.ele('x://*[@id="app"]/div/img').click(by_js=True)
|
||||
time.sleep(0.5)
|
||||
page.ele('x://*[@id="app"]/div/div[7]/div/div[3]/button[2]').click(by_js=True)
|
||||
res = page.listen.wait()
|
||||
print(res.response.body)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user