[arquillian-issues] [JBoss JIRA] (ARQGRA-264) Create possibility to "inject" elements from frames

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Tue Jun 18 01:23:20 EDT 2013


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

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

Hey Aliaksei,

I assume the elements without @InFrame annotation will be looked in default content / frame.

For second case, @InFrame can be used on an injection point rather than class now (see {{MenuBarFragment}} sample above). I guess it's not sufficient to express that every fragment of certain type can be found in given frame with an exception of a root element (which is in default frame).
                
> Create possibility to "inject" elements from frames
> ---------------------------------------------------
>
>                 Key: ARQGRA-264
>                 URL: https://issues.jboss.org/browse/ARQGRA-264
>             Project: Arquillian Graphene
>          Issue Type: Feature Request
>    Affects Versions: 2.0.0.Alpha3
>            Reporter: Aliaksei Lahachou
>            Assignee: Juraj Húska
>             Fix For: 2.0.0.Alpha5
>
>   Original Estimate: 6 hours
>  Remaining Estimate: 6 hours
>
> I don't like how WebDriver works with frames. I have to constantly switch between frames, I cannot simply "inject" element from a specific frame. I would love to have something like the following:
> {code:java}
> @FindBy(id = "menuBar")
> @InFrame(id = "header")
> private MenuBarFragment menuBar;
> {code}
> In this case Graphene should switch to frame "header" before any operation on menuBar and switch back to previous frame after (today, I have to do it manually). It seems to me that it is not too complex to do it with Arquillian/Graphene - you only need one more interceptor.
> Elements not annotated with @InFrame should work on current frame just as today.

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