cancel
Showing results for 
Search instead for 
Did you mean: 

Surface Automation: Element Verification Best Practice

keri_z_volans
Level 3
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

TomBlackburn1
Level 7
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