[arquillian-issues] [JBoss JIRA] (ARQGRA-228) Element condition matchers based on Strings

Jan Papousek (JIRA) jira-events at lists.jboss.org
Thu Nov 22 02:14:21 EST 2012


    [ https://issues.jboss.org/browse/ARQGRA-228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12736258#comment-12736258 ] 

Jan Papousek commented on ARQGRA-228:
-------------------------------------

Lukas, I like this idea - it's really good abstraction and it's extensible.

I'd like to also introduce own implementation of Waiting with method "until()" (without parameters).

{code}
waitGui().until().element(autocompleteInput).text().equalTo("A");
{code}
                
> Element condition matchers based on Strings
> -------------------------------------------
>
>                 Key: ARQGRA-228
>                 URL: https://issues.jboss.org/browse/ARQGRA-228
>             Project: Arquillian Graphene
>          Issue Type: Enhancement
>            Reporter: Lukáš Fryč
>            Assignee: Jan Papousek
>
> Currently, we may write this code:
> {code:java}
> waitGui().until(element(autocompleteInput).textEquals("A"));
> {code}
> If we want to add condition for waiting for input's value, we would add {{valueEquals}} method:
> {code:java}
> waitGui().until(element(autocompleteInput).valueEquals("A"));
> {code}
> But certainly, it would be best to use kind of value retrievers and their matchers with following API:
> {code:java}
> waitGui().until(element(autocompleteInput).text().equalTo("A"));
> waitGui().until(element(autocompleteInput).value().equalTo("A"));
> waitGui().until(element(autocompleteInput).value().contains("A"));
> waitGui().until(attribute(autocompleteInput, "color").equalTo("A"));
> {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