level 1
smile沉默道士
楼主
使用python,浏览器是PHANTOMJS
定位元素完全正确(有print一下元素的value或者text来验证),
click方法,submit方法无效,使用 driver.execute_script(js_text)方法执行js代码提交表单无效,
使用selenium的用户行为链ActionChains(driver).move_to_element(search_button).click(search_button).perform() 提交表单无效,
使用search_button.send_keys(Keys.ENTER)无效。
显式等待特定元素100s了都没用
练手网址是http://www.gdltax.gov.cn/gdsite/portal/gdsite/4VVM9ENPZQEGYQR1942BGNEQ06N8P4BC.htm
跪求
大神破解
2017年12月18日 02点12分
1
定位元素完全正确(有print一下元素的value或者text来验证),
click方法,submit方法无效,使用 driver.execute_script(js_text)方法执行js代码提交表单无效,
使用selenium的用户行为链ActionChains(driver).move_to_element(search_button).click(search_button).perform() 提交表单无效,
使用search_button.send_keys(Keys.ENTER)无效。
显式等待特定元素100s了都没用
练手网址是http://www.gdltax.gov.cn/gdsite/portal/gdsite/4VVM9ENPZQEGYQR1942BGNEQ06N8P4BC.htm
跪求