[
https://issues.jboss.org/browse/ARQGRA-228?page=com.atlassian.jira.plugin...
]
Jan Papousek updated ARQGRA-228:
--------------------------------
Description:
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().element(autocompleteInput).attribute("color").equalTo("A");
{code}
Other problems is negation. Current situation is:
{code}
waitGui().until(element(autocompleteInput).not().isPresent());
waitGui().until(attribute(autocompleteInput, "color").not().isPresent());
{code}
This should be replaced by:
{code}
waitGui().until().element(autocompleteInput).is().not().present();
waitGui().until().element(autocompleteInput).attribute("color").is().not().present();
{code}
And for string matchers:
{code}
waitGui().until().element(autocompleteInput).text().not().equalTo("A");
{code}
was:
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}
Waiting conditions improvements - string matchers, no-parameter
until()
-----------------------------------------------------------------------
Key: ARQGRA-228
URL:
https://issues.jboss.org/browse/ARQGRA-228
Project: Arquillian Graphene
Issue Type: Enhancement
Reporter: Lukáš Fryč
Assignee: Jan Papousek
Fix For: 2.0.0.Alpha3
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().element(autocompleteInput).attribute("color").equalTo("A");
{code}
Other problems is negation. Current situation is:
{code}
waitGui().until(element(autocompleteInput).not().isPresent());
waitGui().until(attribute(autocompleteInput, "color").not().isPresent());
{code}
This should be replaced by:
{code}
waitGui().until().element(autocompleteInput).is().not().present();
waitGui().until().element(autocompleteInput).attribute("color").is().not().present();
{code}
And for string matchers:
{code}
waitGui().until().element(autocompleteInput).text().not().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