首页 新闻 会员 周边

selenium.common.exceptions.咋解决

0
[待解决问题]

运行appium 时,报错selenium.common.exceptions.InvalidSelectorException: Message: Locator Strategy 'css selector' is not supported for this session

风芷的主页 风芷 | 菜鸟二级 | 园豆:212
提问于:2018-10-16 17:04
< >
分享
所有回答(1)
0

报错的话,很有可能没有找到对象
from selenium.webdriver.support.wait import WebDriverWait # 导入引用

WebDriverWait(driver, 20).until(lambda x: x.find_element_by_id("com.tt.tt/btn_tab")).click() 这样试试

红叶孤独 | 园豆:202 (菜鸟二级) | 2019-08-09 09:20
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册