You want to identify a selector for a button in an application. The selector will be used as the target in a Click activity.
In order to ensure the Click activity executes as intended, how many elements should the selector be valid for at runtime?
You want to identify a selector for a button in an application. The selector will be used as the target in a Click activity.
In order to ensure the Click activity executes as intended, how many elements should the selector be valid for at runtime?
A selector for a button in an application should be valid for 1 element only at runtime to ensure the Click activity can accurately and consistently target the correct button. Having the selector match more than one element could lead to unexpected behavior and errors, while a selector matching zero elements would mean the button cannot be found or interacted with.
Answer B
The given answer is correct