Java Code Examples for org.openqa.selenium.support.ui.ExpectedConditions#elementToBeSelected()

The following examples show how to use org.openqa.selenium.support.ui.ExpectedConditions#elementToBeSelected() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WaitConditions.java    From candybean with GNU Affero General Public License v3.0 2 votes vote down vote up
/**
 * Wait until the element is selected
 *
 * @param hook
 * @return
 * @throws CandybeanException
 */
public static ExpectedCondition<Boolean> selected(Hook hook) throws CandybeanException {
	return ExpectedConditions.elementToBeSelected(getBy(hook));
}
 
Example 2
Source File: WaitConditions.java    From candybean with GNU Affero General Public License v3.0 2 votes vote down vote up
/**
 * Wait until the element is selected
 *
 * @param wde
 * @return
 */
public static ExpectedCondition<Boolean> selected(WebDriverElement wde) {
	return ExpectedConditions.elementToBeSelected(wde.we);
}