com.github.siwenyan.si.SiCommandExecutorSelect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of side Show documentation
Show all versions of side Show documentation
Java runner of Selenium IDE project
package com.github.siwenyan.si;
import org.openqa.selenium.WebElement;
class SiCommandExecutorSelect extends SiCommandExecutor implements ISiCommandExecutorFlagUi {
@Override
public void beforeExecute(SiCommand command, SiContext siContext) throws SiVerifyException, SiWebDriverException {
super.beforeExecute(command, siContext);
siContext.getExecutorManager().getBasicExecutor("waitForElementPresent").execute(command, siContext);
siContext.getExecutorManager().getBasicExecutor("waitForElementVisible").execute(command, siContext);
siContext.getExecutorManager().getBasicExecutor("waitForElementEditable").execute(command, siContext);
}
@Override
public void execute(SiCommand command, SiContext siContext) throws SiVerifyException, SiWebDriverException {
String optionExpression = command.getSiModelCommand().getValue();
optionExpression = siContext.dynamic(optionExpression, "", "");
WebElement element = command.getTargetElement();
SiUiSelect siUiSelect = new SiUiSelect(element, siContext);
siUiSelect.select(optionExpression);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy