Silk Mobile

Table of Contents (Homepage)

VerifyElementFound

void verifyElementFound (Zone, Element, Index)

images/images/os-icons/os_ios_150x150.png

images/images/os-icons/os_android_150x150.png

images/images/os-icons/os_windows_150x150.png

images/images/os-icons/os_blackberry_150x150.png

images/images/os-icons/os_symbian02_150x150.png

images/images/os-icons/os_windows_mobile_150x150.png

Description

Verification command to check if an element exists.

Parameters

Usage

Command Usage: Equivalent verification command to isElementFound command. This command will throw exception if element is not found.

Scenario: We will check if the 'Login' Button appears upon opening the Eribank application.

Parameters:

  • Zone: will be set to "NATIVE"

  • Element: will be set to 'text=Login'

  • Index: will be set to "0"

images/download/attachments/2688902/1.jpg

Code Examples

Java Example
client.verifyElementFound("NATIVE", "text=Login", 0);
C# Example
client.VerifyElementFound("NATIVE", "text=Login", 0);
VBScript Example
client.VerifyElementFound "NATIVE", "text=Login", 0
Report
Python Example
self.client.verifyElementFound("NATIVE", "text=Login", 0)
Perl Example
$client->verifyElementFound("NATIVE", "text=Login", 0);