[
https://issues.jboss.org/browse/ARQGRA-196?page=com.atlassian.jira.plugin...
]
Lukáš Fryč commented on ARQGRA-196:
-----------------------------------
Alternative proposal could be support for getters with following notation, since we can
intercept such calls:
{code:java}
@Text @FindBy(xpath = "//a[@id='name']")
public abstract void getName();
@Attribute("href") @FindBy(xpath = "//a[@id='name']")
public abstract void getLocation();
{code}
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