IsFoundIn (Zone, SearchElement, Index, Direction, ElementFindZone, ElementToFind, Width, Height)
|
|
|
|
|
|
|
Search for an element and check if an element related to it exists . The direction can be UP, DOWN, LEFT or RIGHT.
Zone - Select Zone
SearchElement - Search Element
Index - Element index
Direction - Direction to analyze
ElementFindZone - Find Element Zone
ElementToFind - Element to Find
Width - Width of the search ("0" indicates until the end/start of the window)
Height - Height of the search ("0" indicates until the end/start of the window)
In the following example, we will try to find the ‘Make Payment’ button using the ‘Mortgage Request’ button.
Step 1: Login and navigate to the Make Payment page.
Step 2: Identify the properties of the Mortgage Request button.
Step 3: Now find the properties of the 'Make Payment' Button.
Step 4: In the script area type the following properties:
Result:
client.isFoundIn("NATIVE", "accessibilityLabel=Mortgage Request", 0, "Up", "NATIVE", "accessibilityLabel=makePaymentButton", 0, 0)client.IsFoundIn("NATIVE", "accessibilityLabel=Mortgage Request", 0, "Up", "NATIVE", "accessibilityLabel=makePaymentButton", 0, 0)client.IsFoundIn ( "NATIVE", "accessibilityLabel=Mortgage Request", 0, "Up", "NATIVE", "accessibilityLabel=makePaymentButton", 0, 0 )Reportself.client.isFoundIn("NATIVE", "accessibilityLabel=Mortgage Request", 0, "Up", "NATIVE", "accessibilityLabel=makePaymentButton", 0, 0)$client->isFoundIn("NATIVE", "accessibilityLabel=Mortgage Request", 0, "Up", "NATIVE", "accessibilityLabel=makePaymentButton", 0, 0)