[arquillian-issues] [JBoss JIRA] (ARQGRA-196) Support enriching @FindBy annotated fields of alternative types

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Thu Sep 20 03:43:35 EDT 2012


    [ https://issues.jboss.org/browse/ARQGRA-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12720187#comment-12720187 ] 

Lukáš Fryč commented on ARQGRA-196:
-----------------------------------

Nice idea.

A question is at what time should be such a field enriched?

* at the enrichment time (start of a test)
* at first access of a page fragment
                
> Support enriching @FindBy annotated fields of alternative types
> ---------------------------------------------------------------
>
>                 Key: ARQGRA-196
>                 URL: https://issues.jboss.org/browse/ARQGRA-196
>             Project: Arquillian Graphene
>          Issue Type: Feature Request
>          Components: core
>    Affects Versions: 2.0.0.Alpha2
>            Reporter: Aslak Knutsen
>
> {code}
> @FindBy(xpath = "//a[@id='name']")
> private String name;
> {code}
> When annotating a field of type String a WebElement.getText could be automatically invoked and the result set on the field.
> Other possible supported types could be: Integer, int, Boolean, Date?

--
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