随笔分类 -  Selenium

摘要:Waits Selenium Webdriver provides two types of waits implicit & explicit . An explicit wait makes WebDriver wait for a certain condition to occur befo 阅读全文
posted @ 2019-03-06 10:01 bamboo233 阅读(218) 评论(0) 推荐(0)
摘要:Navigating Navigate a link with WebDriver: driver.get("http://www.google.com") 1.Interacting with the page Element define: Find: element = driver.find 阅读全文
posted @ 2019-03-06 09:41 bamboo233 阅读(276) 评论(0) 推荐(0)
摘要:Locating Elements Location Methods: find_element_by_id find_element_by_name find_element_by_xpath find_element_by_link_text find_element_by_partial_li 阅读全文
posted @ 2019-03-06 09:21 bamboo233 阅读(281) 评论(0) 推荐(0)
摘要:如下一段html: </form 定位form id="loginForm": login_form = driver.find_element_by_xpath("/html/body/form[1]") login_form = driver.find_element_by_xpath("//f 阅读全文
posted @ 2019-03-06 09:08 bamboo233 阅读(114) 评论(0) 推荐(0)