[arquillian-issues] [JBoss JIRA] (ARQGRA-313) Allow to inject unique page fragment from page without specifying root locator

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Tue Jul 16 09:03:26 EDT 2013


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

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

Rather than @AutoFindBy, it might be clever to use:

{code}
@AutoFindable(@FindBy(css = ".rf-cal"))
{code}

{code}
@AutoFindable @FindBy(css = ".rf-cal"))
{code}

We must make sure to throw an exception when more than one occurence will be found.
                
> Allow to inject unique page fragment from page without specifying root locator
> ------------------------------------------------------------------------------
>
>                 Key: ARQGRA-313
>                 URL: https://issues.jboss.org/browse/ARQGRA-313
>             Project: Arquillian Graphene
>          Issue Type: Feature Request
>            Reporter: Lukáš Fryč
>
> The page fragment can contain instructions how to find itself in the given context:
> {code:java}
> @AutoFindBy(".rf-cal")
> public class Calendar {
> }
> {code}
> One can then inject such a page fragment without specifying locator:
> {code:java}
> @FindBy
> Calendar calendar;
> {code}
> Note that the context of searching is dependent upon an injection point (where is page fragment being injected).
> E.g.:
> * whole page
> * page fragment

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