[arquillian-issues] [JBoss JIRA] (ARQGRA-202) Page Fragments: injected web elements are not found relatively to root element

Jan Papousek (JIRA) jira-events at lists.jboss.org
Wed Oct 3 04:18:03 EDT 2012


Jan Papousek created ARQGRA-202:
-----------------------------------

             Summary: Page Fragments: injected web elements are not found relatively to root element 
                 Key: ARQGRA-202
                 URL: https://issues.jboss.org/browse/ARQGRA-202
             Project: Arquillian Graphene
          Issue Type: Bug
    Affects Versions: 2.0.0.Alpha2
            Reporter: Jan Papousek


Consider the following HTML code:

{code}
<span>not correct</span>
<div id="root">
    <span>correct</span>
</div>
{code}

and the related page fragment:

{code}
public class SamplePageFragment {

    @Root
    private WebElement root;
    @FindBy(tagName = "span")
    private WebElement span;

    public String getText() {
        return span.getText();
    }
}
{code}

Expected return value of _SamplePageFragment#getText()_ is "correct", but "not correct" is returned.

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