boolean IsElementBlank( Zone, Element, Index, ColorGroups )
|
|
|
|
|
|
|
Boolean command to check if a given element contains an image or if it is blank.
TRUE: if blank
FALSE: if not.
Scenario: The following scenario demonstrates how to use this command:
On the login page of eribank application, while the Username text field is empty, we will use the command to check that is blank or contains some values in the edit field.
In this example, we have filled the text in the Username text field. Now, we will use the same command to check whether it has text or blank.
rr
if(client.isElementBlank("NATIVE", "xpath=//*[@id='usernameTextField']", 0, 10)){// If statement}if(client.IsElementBlank("NATIVE", "xpath=//*[@id='usernameTextField']", 0, 10)){// If statement}If StrComp (client.IsElementBlank ( "NATIVE", "xpath=//*[@id='usernameTextField']", 0, 10 ), "True") = 0 Then Report 'If statementElse ReportEnd Ifif(self.client.isElementBlank("NATIVE", "xpath=//*[@id='usernameTextField']", 0, 10)):# If statementpassif($client->isElementBlank("NATIVE", "xpath=//*[\@id='usernameTextField']", 0, 10)){ # If statement}