Last Updated: February 25, 2016
·
683
· karthiks

UI Automation Gotchas

To aid the folks writing ui automation specs, I list the common gotchas that you should be aware of so that you do not end up making the same mistakes. And here goes the list:
1. Loving to sleep
2. Asserting the messages in the page for grammar and exactness of expected messages
3. Forgetting to create your browser profile with download preferences set to automatically download specific file extensions to a custom path
4. Not asserting for the presence of right elements upon performing a particular action
5. Not employing page object pattern
6. Littering page object with assertions
7. Narrowed down xpath
8. Using xpath over css
9. Using css over id
10. Not exploiting the automation framework and tools that are put in use
11. Code littered with print statements
12. Code littered with comments and commented out code
13. Page object littered with dead code
14. Violating DRY principles in code
15. Not making use of the language strengths

Read details at http://kartzontech.blogspot.in/2012/08/ui-automation-gotchas.html