Silk Mobile

Table of Contents (Homepage)

VerifyIn

void VerifyIn (Zone, SearchElement, Index, Direction, ElementFindZone, ElementToFind, Width, Height)

images/s/en_GB/5983/f3e491afc761ac0a6981cfa3dcbc04fc7e88c149.20/_/images/os-icons/os_ios_150x150.png images/s/en_GB/5983/f3e491afc761ac0a6981cfa3dcbc04fc7e88c149.20/_/images/os-icons/os_android_150x150.png images/s/en_GB/5983/f3e491afc761ac0a6981cfa3dcbc04fc7e88c149.20/_/images/os-icons/os_windows_150x150.png images/s/en_GB/5983/f3e491afc761ac0a6981cfa3dcbc04fc7e88c149.20/_/images/os-icons/os_blackberry_150x150.png images/s/en_GB/5983/f3e491afc761ac0a6981cfa3dcbc04fc7e88c149.20/_/images/os-icons/os_symbian02_150x150.png images/s/en_GB/5983/f3e491afc761ac0a6981cfa3dcbc04fc7e88c149.20/_/images/os-icons/os_windows_mobile_150x150.png

Description

Search for an element and verify that an element related to it exists. The direction can be UP, DOWN, LEFT or RIGHT.

Parameters

If the searched element is not found, this function will throw exception.

Usage

We will use the EriBank application to identify the Make Payment button using the Mortgage Request button. By this, we will make sure that the Make Payment button is above the Mortgage Request button.

Step 1: Login and navigate to the Make Payment page.

images/download/attachments/2689484/20.jpg

Step 2: Identify the properties of the Mortgage Request button.

images/download/attachments/2689484/21.jpg

Step 3: Now find the properties of the Make Payment Button.

images/download/attachments/2689484/22.jpg

Step 4: In the script area type in the command “Verifyin” and add the following properties:

images/download/attachments/2689484/23.jpg

Result:

images/download/attachments/2689484/25.jpg

Code Examples

Java Example
client.verifyIn("NATIVE", "accessibilityLabel=Mortgage Request", 0, "Up", "NATIVE", "accessibilityLabel=makePaymentButton", 0, 0);
C# Example
client.VerifyIn("NATIVE", "accessibilityLabel=Mortgage Request", 0, "Up", "NATIVE", "accessibilityLabel=makePaymentButton", 0, 0);
VBScript Example
client.VerifyIn "NATIVE", "accessibilityLabel=Mortgage Request", 0, "Up", "NATIVE", "accessibilityLabel=makePaymentButton", 0, 0
Report
Python Example
self.client.verifyIn("NATIVE", "accessibilityLabel=Mortgage Request", 0, "Up", "NATIVE", "accessibilityLabel=makePaymentButton", 0, 0)
Perl Example
$client->verifyIn("NATIVE", "accessibilityLabel=Mortgage Request", 0, "Up", "NATIVE", "accessibilityLabel=makePaymentButton", 0, 0);