问题描述:

I am using PageObject model in developing test scripts. I am trying to put into test code control of a current situation. In my case it is an element enabled or not. The source code below.

 @FindBy(linkText="Overview")

private WebElement overviewTab;

public boolean checkOverviewTabVisable() {

return overviewTab.isEnabled();

}

if(customerSitePage.checkOverviewTabVisable()) {

customerSitePage.getOverviewTab();

} else {

sitesTabsList.getBuyerSite();

customerSitePage.getOverviewTab();

}

Script hangs in the line of checkOverviewTabVisable() method call and no any error. Something weird in isEnabled() behavior. Has anyone used this method for test control?

相关阅读:
Top