use of org.openqa.selenium.interactions.Actions in project java.webdriver by sayems.
the class Action method doubleClick.
// Method to double click
public void doubleClick() {
Actions action = new Actions(driver);
action.doubleClick().build().perform();
}
use of org.openqa.selenium.interactions.Actions in project java.webdriver by sayems.
the class Action method pressCtrlKey.
public void pressCtrlKey() {
Actions action = new Actions(driver);
action.sendKeys(Keys.CONTROL).build().perform();
}
use of org.openqa.selenium.interactions.Actions in project java.webdriver by sayems.
the class Action method pressBackSpaceKey.
public void pressBackSpaceKey() {
Actions action = new Actions(driver);
action.sendKeys(Keys.BACK_SPACE).build().perform();
}
use of org.openqa.selenium.interactions.Actions in project java.webdriver by sayems.
the class Action method pressTab.
// Method to press tab
public void pressTab() {
Actions action = new Actions(driver);
action.sendKeys(Keys.TAB).build().perform();
}
use of org.openqa.selenium.interactions.Actions in project java.webdriver by sayems.
the class Action method mouseHover.
public void mouseHover(Supplier<By> by) {
Actions action = new Actions(driver);
action.moveToElement(driver.findElement(by.get())).build().perform();
}
Aggregations