info.kapable.sondes.scenarios.action.ClickerAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AutomationScenarioAPI Show documentation
Show all versions of AutomationScenarioAPI Show documentation
Java API to execute scenario from an XML command file
The newest version!
package info.kapable.sondes.scenarios.action;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
public class ClickerAction extends Action {
protected By by;
public ClickerAction(By by) {
this.by = by;
}
@Override
public void executeAction(WebDriver driver) {
this.logEvent("Firefox", "Click ");
WebElement btn = driver.findElement(by);
btn.click();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy