use of com.github.bordertech.wcomponents.test.selenium.element.SeleniumWDialogWebElement in project wcomponents by BorderTech.
the class SeleniumWComponentsUtil method getDialog.
/**
* Get the screen's dialog, whether it is open or not.
*
* @param driver the WebDriver.
*
* @return a WDialogWebElement for the dialog.
*/
public static SeleniumWDialogWebElement getDialog(final WebDriver driver) {
By by = By.cssSelector(SeleniumWDialogWebElement.getOpenDialogCssSelector());
WebElement dialog = findElementImmediateForDriver(driver, by);
return dialog == null ? null : new SeleniumWDialogWebElement(dialog, driver);
}
Aggregations