Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorial:scripting_state_model [2020/11/25 21:33] admin [Web App Automation] |
tutorial:scripting_state_model [2021/01/05 03:00] (current) |
||
---|---|---|---|
Line 37: | Line 37: | ||
- | Besides triggers, scripts are also used for building UI Page Objects, Cucumber style test step definition and MCases, which are out of scope of this tutorial. | + | Besides triggers, scripts are also used for building UI Page Objects, |
===== Model triggers ===== | ===== Model triggers ===== | ||
Line 117: | Line 117: | ||
For example: | For example: | ||
- | | + | |
=== Page Object=== | === Page Object=== | ||
Line 132: | Line 132: | ||
| | ||
+ | The advantage of using page objects is that all element locators are organized and managed in one central place for easy maintenance. | ||
+ | |||
=== Find Element Locator === | === Find Element Locator === | ||
Web element locator can be xpath, css or by id, etc. as supported by // | Web element locator can be xpath, css or by id, etc. as supported by // |