B2G/QA/Automation/Style Guide/Howtos: Difference between revisions

(content added)
Line 127: Line 127:
</source>
</source>


== Returning the page object after completing an action ==
== Returning the Page Object After Completing an Action ==
When invoking a certain UI action causes the phone to open a new page, it is recommended to return the appropriate page object.  <br />
When invoking a certain UI action causes the phone to open a new page, it is recommended to return the appropriate page object.  <br />
On a related note, each page should have its own class definition, where it lists methods that manipulates and checks the associated UI elements.
On a related note, each page should have its own class definition, where it lists methods that manipulates and checks the associated UI elements.
352

edits