[arquillian-issues] [JBoss JIRA] (ARQGRA-258) Provide injecting classes requiring WebElement in their constructors via @FindBy annotation

Jan Papousek (JIRA) jira-events at lists.jboss.org
Thu Feb 7 07:40:51 EST 2013


     [ https://issues.jboss.org/browse/ARQGRA-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Papousek updated ARQGRA-258:
--------------------------------

        Summary: Provide injecting classes requiring WebElement in their constructors via @FindBy annotation  (was: Provide injecting Select objects via @FindBy annotation)
    Description: 
Consider the following class:

{code}
public class WebElementWrapper {

    private final WebElement element;

    public WebElementWrapper(WebElement element) {
        this.element = element;
    }

    ...
}
{code}

It would be nice to allow injecting this type into a test class:

{code}
@FindBy(...)
private WebElementWrapper wrapper;
{code}

-----

-There is a [Select|http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/support/ui/Select.html] class for a better manipulation with selects. It would be nice to allow injecting instances of this class via @FindBy mechanism.-

  was:There is a [Select|http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/support/ui/Select.html] class for a better manipulation with selects. It would be nice to allow injecting instances of this class via @FindBy mechanism.


    
> Provide injecting classes requiring WebElement in their constructors via @FindBy annotation
> -------------------------------------------------------------------------------------------
>
>                 Key: ARQGRA-258
>                 URL: https://issues.jboss.org/browse/ARQGRA-258
>             Project: Arquillian Graphene
>          Issue Type: Feature Request
>    Affects Versions: 2.0.0.Alpha3
>            Reporter: Jan Papousek
>            Assignee: Jan Papousek
>            Priority: Minor
>             Fix For: 2.0.0.Beta1
>
>
> Consider the following class:
> {code}
> public class WebElementWrapper {
>     private final WebElement element;
>     public WebElementWrapper(WebElement element) {
>         this.element = element;
>     }
>     ...
> }
> {code}
> It would be nice to allow injecting this type into a test class:
> {code}
> @FindBy(...)
> private WebElementWrapper wrapper;
> {code}
> -----
> -There is a [Select|http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/support/ui/Select.html] class for a better manipulation with selects. It would be nice to allow injecting instances of this class via @FindBy mechanism.-

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