首页 新闻 赞助 找找看

selenuim H5自动化 button按钮点击无反应

0
[已关闭问题] 关闭于 2018-07-24 18:55

python3 使用pycharm在pc端使用chrome模拟手机端访问H5页面,进行登录时,button按钮点击无反应,也未报错,求解决!!

自动化运行中chrome点击其他按钮可以跳转,就是登录按钮无法点击。

button按钮是tap事件,是否jQuery要怎样去调取

mobileEmulation = {'deviceName': 'iPhone 6'}
options = webdriver.ChromeOptions()
options.add_experimental_option('mobileEmulation', mobileEmulation)
driver = webdriver.Chrome(executable_path='chromedriver.exe', chrome_options=options)
driver.find_element_by_tag_name("button").click()/driver.find_element_by_id("login").click()
sleep(10)


 

joker_you的主页 joker_you | 菜鸟二级 | 园豆:204
提问于:2018-07-24 18:51
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册