Page 1 of 1

A developer creates a workflow that extracts the date of birth for different account holders in a web application. The f

Posted: Wed Mar 15, 2023 5:19 am
by answerhappygod
A developer creates a workflow that extracts the date of birth for different account holders in a web application. The following selector represents the selector structure for a 6-digit account number 123456.
<html app='chrome.exe' title='ACME Accounts System - Employees - 123456' />
<webctrl tag='DIV' aaname='123456' class='DateOfBirth' />
Assume only the account number value changes in the selector and there is a defined list of 6-digit account numbers.
The developer needs to fine-tune the selector to work only for a pre-selected list of account numbers. What represents an example of a good selector?

A. <html app='chrome.exe' title='ACME Accounts System - Employees - {{accountNumber}}' />
<webctrl tag='DIV' aaname='{{accountNumber}}' class='DateOfBirth' />
Where accountNumber is a 6-digit string variable containing an account number
B. <html app='chrome.exe' title='ACME Accounts System - Employees - ' />
<webctrl tag='DIV' aaname='{{accountNumber}}' class='{{accountNumber}}' />
Where accountNumber is a 6-digit string variable containing an account number
C. <html app='chrome.exe' title='ACME Accounts System - Employees - {{accountNumber}}' />
<webctrl tag='DIV' aaname='?' class='DateOfBirth' />
Where accountNumber is a 6-digit string variable containing an account number
D. <html app='chrome.exe' title='ACME Accounts System - Employees - {{accountNumber}}' />
<webctrl tag='DIV' aaname='{{accountNumber}}' class='*' />
Where accountNumber is a 6-digit string variable containing an account number