Video Address (third lesson): https://pan.baidu.com/s/1gfLVC2n
Element positioning
Selenium supported positioning methods:
ID, Name,xpath,dom,link,css,jquery,tag. (We usually use an ID or name). When there is no ID, we can assign an ID to the element by assign the ID to element keyword.
Note: Sometimes you need to go into a frame or an IFRAME and then locate an element, we need to use two keywords,
Enter a frame or iframe:sleect frame | Locator
Back to top frame or iframe:unselect frame
Xpath:xpath is a language for finding information in an XML document. XPath is used to navigate through elements and attributes in an XML document.
Learn more about XPath: http://www.w3school.com.cn/xpath/index.asp
XPath positioning methods: Absolute positioning, relative positioning, index positioning, attribute value positioning, attribute name positioning, partial attribute value positioning, used to match any attributes and elements.
Find an address to practice the practice is almost!
Software Testing-Element positioning