[arquillian-issues] [JBoss JIRA] (ARQGRA-224) Page Fragments implementing WebElement delegate interface invocations to Root

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Mon Nov 12 05:24:17 EST 2012


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

Lukáš Fryč updated ARQGRA-224:
------------------------------

    Description: 
{code:java}
public abstract static class InputWithPlaceholder implements WebElement {
        
        @Root
        private WebElement input;
        
        public String getText() {
            return input.getAttribute("value");
        }
        
        public Color getTextColor() {
            return ColorUtils.convertToAWTColor(input.getCssValue("color"));
        }
        
        public String getStyleClass() {
            return input.getAttribute("class");
        }
        
        public WebElement getInput() {
            return input;
        }
    }
{code}

    
> Page Fragments implementing WebElement delegate interface invocations to Root
> -----------------------------------------------------------------------------
>
>                 Key: ARQGRA-224
>                 URL: https://issues.jboss.org/browse/ARQGRA-224
>             Project: Arquillian Graphene
>          Issue Type: Feature Request
>            Reporter: Lukáš Fryč
>             Fix For: 2.0.0.Alpha3
>
>
> {code:java}
> public abstract static class InputWithPlaceholder implements WebElement {
>         
>         @Root
>         private WebElement input;
>         
>         public String getText() {
>             return input.getAttribute("value");
>         }
>         
>         public Color getTextColor() {
>             return ColorUtils.convertToAWTColor(input.getCssValue("color"));
>         }
>         
>         public String getStyleClass() {
>             return input.getAttribute("class");
>         }
>         
>         public WebElement getInput() {
>             return input;
>         }
>     }
> {code}

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