Page tree
Skip to end of metadata
Go to start of metadata



void verifyElementFound (Zone, Element, Index)





Supported in iOS Supported in Android

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"

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);
  • No labels