selenium2-python自动化测试实战PPT.pptVIP

  • 119
  • 0
  • 约7.38千字
  • 约 52页
  • 2018-02-28 发布于河北
  • 举报
selenium2-python自动化测试实战PPT

WebDriver API: 打印信息(126邮箱): #获得前面title,打印 title = driver.title print title #获得前面URL,打印 now_url = driver.current_url print now_url #获得登录成功的用户,打印 now_user=driver.find_element_by_id(spnUid).text print now_user WebDriver API: 脚本中的等待时间: sleep(): python提供设置固定休眠时间的方法。 implicitly_wait(): 是webdirver 提供的一个超时等待。 WebDriverWait(): 同样也是webdirver 提供的方法。 WebDriver API: webdriver提供定位一组对象的方法: find_elements_by_id() find_elements_by_name() find_elements_by_class_name() find_elements_by_tag_name() find_elements_by_link_text() find_elements_by_partial_link_text() find_elements_by_xpa

文档评论(0)

1亿VIP精品文档

相关文档