1,072
edits
No edit summary |
|||
Line 7: | Line 7: | ||
* Locators are defined in a combination of Xpath and CSS formats. CSS is the preferred format for POM. | * Locators are defined in a combination of Xpath and CSS formats. CSS is the preferred format for POM. | ||
'''Locators in Pre-POM test cases''' | |||
* Defined in AMOlocators module. The AMOlocators class is divided into sub-classes that contain locators by page which is further sub-classed into sections of the page. | * Defined in AMOlocators module. The AMOlocators class is divided into sub-classes that contain locators by page which is further sub-classed into sections of the page. | ||
Line 22: | Line 22: | ||
selenium.click(sort_locator) | selenium.click(sort_locator) | ||
'''Locators in POM test cases''' | |||
* Defined in the page classes. Defined as strings or a Locator object. | * Defined in the page classes. Defined as strings or a Locator object. |
edits