WaitFor Actions
waitForElementToBeVisible
Description: This function will wait for the element to be visible on page
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Object | waitForElementToBeVisible |
PageName |
waitForElementToBeHidden
Description: This function will wait for the element to be hidden on page
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Object | waitForElementToBeHidden |
PageName |
waitForElementToBeAttached
Description: This function will wait for the element to be attached to the DOM
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Object | waitForElementToBeAttached |
PageName |
waitForElementToBeDetached
Description: This function will wait for the element to be detached from the DOM
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Object | waitForElementToBeDetached |
PageName |
waitForLoadState
Description: This function will wait for required load state has been reached
ObjectName | Action | Input | Condition | Reference | |
---|---|---|---|---|---|
Browser | waitForLoadState |
@Action(object = ObjectType.BROWSER, desc = "Wait for required load state has been reached", condition = InputType.OPTIONAL)
public void waitForLoadState() {
try
{
Page.waitForLoadState();
Report.updateTestLog(Action, "Successfully waited for required load state has been reached", Status.DONE);
} catch (Exception ex) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, null, ex);
Report.updateTestLog(Action, "Wait Action Failed", Status.DEBUG);
}
}