[
https://issues.jboss.org/browse/ARQGRA-202?page=com.atlassian.jira.plugin...
]
Lukáš Fryč updated ARQGRA-202:
------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
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
Assignee: Jan Papousek
Priority: Critical
Fix For: 2.0.0.Alpha3
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