摘要: XPath as filesystem addressing The basic XPath syntax is similar to filesystem addressing. If the path starts with the slash / , then it represents an 阅读全文
posted @ 2016-09-08 16:46 sufei 阅读(200) 评论(0) 推荐(1) 编辑
摘要: Official API document: https://seleniumhq.github.io/selenium/docs/api/py/api.html Recommanded Import Style Then, you can access the classes like this: 阅读全文
posted @ 2016-09-08 16:06 sufei 阅读(1628) 评论(0) 推荐(0) 编辑
摘要: This chapter is a tutorial introduction to page objects design pattern. A page object represents an area in the web application user interface that yo 阅读全文
posted @ 2016-09-08 14:50 sufei 阅读(337) 评论(0) 推荐(0) 编辑
摘要: These days most of the web apps are using AJAX techniques. When a page is loaded to browser, the elements within that page may load at different time 阅读全文
posted @ 2016-09-08 14:40 sufei 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Selenium provides the following methods to locate elements in a page: find_element_by_id find_element_by_name find_element_by_xpath find_element_by_li 阅读全文
posted @ 2016-09-08 14:30 sufei 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Explicit Waits Expected Conditions Expected Conditions Implicit Waits Remote WebDriver Taking a Screenshot Taking a Screenshot Using a FirefoxProfile 阅读全文
posted @ 2016-09-08 13:07 sufei 阅读(518) 评论(0) 推荐(0) 编辑
摘要: Example (python): Example(JavaScript): Selenium-WebDriver API Commands and Operations 1. Fetching a Page 2. Locating UI Elements (WebElements) By ID B 阅读全文
posted @ 2016-09-08 12:27 sufei 阅读(345) 评论(0) 推荐(0) 编辑