Surface Automation: Element Verification Best Practice
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
14-06-16 10:46 PM
It's best practice to check the label of an element before interacting with an element. (e.g. check that "Username" appears at a specific X, Y coordinate before entering the username into an input field)
Which method is preferred, assuming latency has already been handled?
1. Zero second wait stage
2. Non-Zero Wait Stage (Pointless, confuses intent)
3. Read Stage + Decision (Less concise. Pollutes namespace)
Thanks.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
15-06-16 02:25 PM
Keri,
I generally always use a wait stage. This may be waiting for check exists, or waiting for a region to contain image. Dependent on the application and expected latency the length of time differs. Should the wait stage timeout, then I go onto alternative method (such as read stage)
- Tom
