Search in sources :

Example 41 with Actions

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();
}
Also used : Actions(org.openqa.selenium.interactions.Actions)

Example 42 with Actions

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();
}
Also used : Actions(org.openqa.selenium.interactions.Actions)

Example 43 with Actions

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();
}
Also used : Actions(org.openqa.selenium.interactions.Actions)

Example 44 with Actions

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();
}
Also used : Actions(org.openqa.selenium.interactions.Actions)

Example 45 with Actions

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();
}
Also used : Actions(org.openqa.selenium.interactions.Actions)

Aggregations

Actions (org.openqa.selenium.interactions.Actions)100 WebElement (org.openqa.selenium.WebElement)59 WebDriver (org.openqa.selenium.WebDriver)26 FirefoxDriver (org.openqa.selenium.firefox.FirefoxDriver)18 PublicAtsApi (com.axway.ats.common.PublicAtsApi)16 Test (org.junit.Test)16 HiddenHtmlElementState (com.axway.ats.uiengine.utilities.hiddenbrowser.HiddenHtmlElementState)9 WebDriverWait (org.openqa.selenium.support.ui.WebDriverWait)6 RealHtmlElementState (com.axway.ats.uiengine.utilities.realbrowser.html.RealHtmlElementState)4 List (java.util.List)3 Action (org.openqa.selenium.interactions.Action)3 MobileOperationException (com.axway.ats.uiengine.exceptions.MobileOperationException)2 VerificationException (com.axway.ats.uiengine.exceptions.VerificationException)2 MobileElementState (com.axway.ats.uiengine.utilities.mobile.MobileElementState)2 AndroidDriver (io.appium.java_client.android.AndroidDriver)2 File (java.io.File)2 DecimalFormat (java.text.DecimalFormat)2 JavascriptExecutor (org.openqa.selenium.JavascriptExecutor)2 SystemException (com.github.bordertech.wcomponents.util.SystemException)1 JavascriptActions (com.wikia.webdriver.common.core.elemnt.JavascriptActions)1