Search in sources :

Example 6 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 7 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 8 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 9 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 10 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)93 WebElement (org.openqa.selenium.WebElement)53 WebDriver (org.openqa.selenium.WebDriver)25 FirefoxDriver (org.openqa.selenium.firefox.FirefoxDriver)18 PublicAtsApi (com.axway.ats.common.PublicAtsApi)16 Test (org.junit.Test)15 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 JavascriptActions (com.wikia.webdriver.common.core.elemnt.JavascriptActions)1 EditCategoryComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.editcategory.EditCategoryComponentObject)1 AddPinComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.interactivemaps.AddPinComponentObject)1