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

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Mon Sep 23 07:19:03 EDT 2013


     [ 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.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.1-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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the arquillian-issues mailing list