摘要:
webdriver可以通过excute_script(js)方法来执行javaScript代码 这里举两个例子,通过webdriver调用javascript调整窗口滚动条的位置和弹出警告框 代码演示: from selenium import webdriver from time import 阅读全文
摘要:
有时候我们在自动化测试的时候需要获取到几种信息例如title、current_url和text * title 获取当前页面title* current_url 获取当前页面URL* text 获得文本信息代码演示: rom selenium import webdriver from time i 阅读全文