標(biāo)題:
使用appium過qq登錄的滑動驗(yàn)證碼
[打印本頁]
作者:
雙子敬漢卿
時(shí)間:
2019-6-28 16:06
標(biāo)題:
使用appium過qq登錄的滑動驗(yàn)證碼
driver = webdriver.Remote(
'http://127.0.0.1:4730/wd/hub'
,
desired_caps)
sleep(
3
)
j =
9
print
(j)
# 登陸
try
:
driver.find_elements_by_android_uiautomator(
"new UiSelector().text(
\"
登錄
\"
)"
)[
0
].click()
sleep(
3
)
except
:
pass
driver.find_element_by_class_name(
"android.widget.EditText"
).clear()
sleep(
1
)
driver.find_element_by_class_name(
"android.widget.EditText"
).send_keys(qq_login_acc[j])
driver.find_element_by_id(
"com.tencent.mobileqq:id/password"
).send_keys(qq_login_password[j])
sleep(
1
)
driver.find_element_by_id(
"com.tencent.mobileqq:id/login"
).click()
sleep(
10
)
for
i
in
range
(
800
,
950
,
20
):
print
(i)
swipRight_qq(driver
,
u
=i)
sleep(
2
)
sleep(
5
)
作者:
學(xué)生新時(shí)代
時(shí)間:
2019-11-29 17:45
能用嗎
歡迎光臨 (http://www.torrancerestoration.com/bbs/)
Powered by Discuz! X3.1