List of usage examples for org.openqa.selenium.support.ui Select deselectByIndex
@Override public void deselectByIndex(int index)
From source file:ca.nrc.cadc.search.integration.CAOMSearchFormPage.java
License:Open Source License
void enterCollection(final String collection) throws Exception { final Select collSelect = new Select(dataTrain.findElement(DATA_TRAIN_COLLECTION_MENU)); // Unselect the 'All' option collSelect.deselectByIndex(0); collSelect.selectByValue(collection); }
From source file:ca.nrc.cadc.search.integration.CAOMSearchFormPage.java
License:Open Source License
public void enterInstrument(final String instrumentName) { final Select instrumentSelect = new Select(dataTrain.findElement(DATA_TRAIN_INSTRUMENT_MENU)); // Unselect the 'All' option instrumentSelect.deselectByIndex(0); instrumentSelect.selectByValue(instrumentName); }
From source file:com.mkl.websuites.internal.command.impl.select.DeselectByIndexCommand.java
License:Apache License
@Override protected void doSelect(int index, Select select) { select.deselectByIndex(index); }
From source file:com.mkl.websuites.internal.command.impl.select.DeselectByTextContainingCommand.java
License:Apache License
@Override protected void select(Select select, int index) { select.deselectByIndex(index); }
From source file:org.musetest.selenium.steps.DeselectOptionByIndex.java
License:Open Source License
protected void executeSelection(Select select, String option, StepExecutionContext context) { select.deselectByIndex(Integer.parseInt(option)); }