[JBoss JIRA] (ARQGRA-506) Implement "hover" functionality in Graphene API
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-506?page=com.atlassian.jira.plugin... ]
Matous Jobanek updated ARQGRA-506:
----------------------------------
Fix Version/s: (was: 2.2.2)
> Implement "hover" functionality in Graphene API
> -----------------------------------------------
>
> Key: ARQGRA-506
> URL: https://issues.jboss.org/browse/ARQGRA-506
> Project: Arquillian Graphene
> Issue Type: Enhancement
> Components: api
> Reporter: Matous Jobanek
>
> Currently, people face challenges in accessing dropdown submenus.
> A current implementation of the dropdown submenu hover functionality looks like this:
> {code:java}
> @Drone
> private WebDriver driver;
>
> @ArquillianResource
> private Actions action;
>
> driver.get("https://www.bootply.com/render/6FC76YQ4Nh");
>
> Consumer<By> hover = (By by) -> {
> action.moveToElement(driver.findElement(by))
> .perform();
>
> };
>
> hover.accept(By.linkText("Dropdown"));
> hover.accept(By.linkText("Dropdown Link 5"));
> hover.accept(By.linkText("Dropdown Submenu Link 5.4"));
> hover.accept(By.linkText("Dropdown Submenu Link 5.4.1"));
> {code}
> An example of the usage of the new Graphene API:
> {code:java}
> Graphene.hover(WebElement element)
> .hover(By by)
> .hover(WebElement element)
> .toGrapheneElement()
> .doubleClick();
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 5 months