QA/Execution/Web Testing/Docs/Automation/StyleGuide: Difference between revisions

No edit summary
Line 82: Line 82:


== Locators ==
== Locators ==
* Locator variables should be prefixed with <code>_</code> to show that it is "[http://docs.python.org/tutorial/classes.html#private-variables private]".
* Locator variables should be prefixed with <code>_</code> to show that it is [http://docs.python.org/tutorial/classes.html#private-variables private].
* Variables should be descriptive of the area and not clash with any properties.
* Variables should be descriptive of the area and not clash with any properties.
* Should have a suffix of <code>_locator</code>.
* Should have a suffix of <code>_locator</code>.
Confirmed users
2,197

edits