StateCheck

stateCheck is a feature to know whether the execution control landed on the intended page. This method requires three parameters.

Syntax

void stateCheck(String htmlElementName, String attType,String targetValue)

Name

Type

Description

htmlElementName

String

Dom element name

attType

String

Type of the attribute

targetValue

String

The actual value of the html element

Code snippet

/* 
 *  "I'm Feeling Lucky" button is found on Google's home page, 
 *  which tells you that you are rightly landed on Google's 
 *  home page
 */

stateCheck("bt.iamfeelinglucky", "value", "I'm Feeling Lucky");

Last updated