[arquillian-issues] [JBoss JIRA] (ARQGRA-364) Allow for extensibility of GrapheneElement

Lukáš Fryč (JIRA) issues at jboss.org
Tue Jan 19 04:10:01 EST 2016


     [ https://issues.jboss.org/browse/ARQGRA-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukáš Fryč updated ARQGRA-364:
------------------------------
    Fix Version/s: 2.2-Tracking
                       (was: 2.1-Tracking)


> Allow for extensibility of GrapheneElement
> ------------------------------------------
>
>                 Key: ARQGRA-364
>                 URL: https://issues.jboss.org/browse/ARQGRA-364
>             Project: Arquillian Graphene
>          Issue Type: Enhancement
>            Reporter: Lukáš Fryč
>             Fix For: 2.2-Tracking
>
>
> Implement GrapheneElement#as(Class<?> type) method which will do a coercion to the given type.
> If the given type is not implemented by wrapped WebElement, the service which implements this method will be called instead. This allows for simple extensibility mechanism:
> {code}
> @FindBy
> GrapheneElement element;
> @Test test() {
>    element.as(ValidableElement).checkValidity();
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the arquillian-issues mailing list