QA/Execution/Web Testing/Docs/Automation/Testcases/ConventionsAmoTests: Difference between revisions

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 ===
'''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 ===
'''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.   
1,072

edits