[JBoss JIRA] (ARQGRA-329) Add support for HTML5 form validation API
by Oliver Kišš (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-329?page=com.atlassian.jira.plugin... ]
Oliver Kišš commented on ARQGRA-329:
------------------------------------
I think the elementary method of the validation API is {{checkValidity()}}, which could be accessed through a new {{isValid()}} method in {{GrapheneElement}}:
{code}
@FindBy(id = "email")
GrapheneElement emailInput;
//Enter an incorrect email address
emailInput.sendKeys("john.doe@gma##$9d!!!");
//See if the email address passes validation
Assert.assertFalse("Email should be recognized as invalid", emailInput.isValid());
//Or check validity of the entire form
Assert.assertFalse("Form validation should not pass", registrationForm.isValid());
{code}
[{{validationMessage}}|http://www.whatwg.org/specs/web-apps/current-work/#dom-cva-validationmessage] attribute could be used in similar way (a new method in {{GrapheneElement}}):
{code}
Assert.assertFalse("Email should be recognized as invalid: " + emailInput.getValidationMessage(), emailInput.isValid());
{code}
[{{validity}}|http://www.whatwg.org/specs/web-apps/current-work/#dom-cva-validity] attribute can provide more information about why validation failed, but I am not sure about the best way to use it in Graphene.
> Add support for HTML5 form validation API
> -----------------------------------------
>
> Key: ARQGRA-329
> URL: https://issues.jboss.org/browse/ARQGRA-329
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: core
> Affects Versions: 2.0.0.Alpha4
> Reporter: Oliver Kišš
>
> Add support for using HTML5 [form validation API|http://www.whatwg.org/specs/web-apps/current-work/#the-constraint-val...] from Graphene, {{checkValidity()}} method in particular.
--
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
11 years, 3 months
[JBoss JIRA] (ARQGRA-330) Graphene 2.0.0.Alpha4 is not compatible with Drone 1.2.0.Beta1 when using Android driver
by Stefan Miklosovic (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-330?page=com.atlassian.jira.plugin... ]
Stefan Miklosovic resolved ARQGRA-330.
--------------------------------------
Resolution: Done
Repaired in upstream
ARQGRA-327
> Graphene 2.0.0.Alpha4 is not compatible with Drone 1.2.0.Beta1 when using Android driver
> ----------------------------------------------------------------------------------------
>
> Key: ARQGRA-330
> URL: https://issues.jboss.org/browse/ARQGRA-330
> Project: Arquillian Graphene
> Issue Type: Library Upgrade
> Affects Versions: 2.0.0.Alpha4
> Reporter: Stefan Miklosovic
>
> I tried to use Drone with Graphene, versions 1.2.0.Beta1 and 2.0.0.Alpha4 respectively. I used "android" browser capability in the extension configuration of WebDriver.
> This is what I got:
> java.lang.NoClassDefFoundError: org/openqa/selenium/HasInputDevices
> at org.jboss.arquillian.graphene.context.GrapheneContext.getProxy(GrapheneContext.java:130)
> at org.jboss.arquillian.graphene.enricher.GrapheneEnricher.enrich(GrapheneEnricher.java:47)
> at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
> at org.jboss.arquillian.container.test.impl.ClientTestInstanceEnricher.enrich(ClientTestInstanceEnricher.java:51)
> ...
> Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.HasInputDevices
> The latest Drone version which works with Graphene 2.0.0.Alpha4 is Drone 1.2.0.Alpha3. My bet is that from Beta1 of Drone, it uses Selenium 2.35.0 but Graphene is behind.
--
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
11 years, 3 months
[JBoss JIRA] (ARQGRA-330) Graphene 2.0.0.Alpha4 is not compatible with Drone 1.2.0.Beta1 when using Android driver
by Stefan Miklosovic (JIRA)
Stefan Miklosovic created ARQGRA-330:
----------------------------------------
Summary: Graphene 2.0.0.Alpha4 is not compatible with Drone 1.2.0.Beta1 when using Android driver
Key: ARQGRA-330
URL: https://issues.jboss.org/browse/ARQGRA-330
Project: Arquillian Graphene
Issue Type: Library Upgrade
Affects Versions: 2.0.0.Alpha4
Reporter: Stefan Miklosovic
I tried to use Drone with Graphene, versions 1.2.0.Beta1 and 2.0.0.Alpha4 respectively. I used "android" browser capability in the extension configuration of WebDriver.
This is what I got:
java.lang.NoClassDefFoundError: org/openqa/selenium/HasInputDevices
at org.jboss.arquillian.graphene.context.GrapheneContext.getProxy(GrapheneContext.java:130)
at org.jboss.arquillian.graphene.enricher.GrapheneEnricher.enrich(GrapheneEnricher.java:47)
at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
at org.jboss.arquillian.container.test.impl.ClientTestInstanceEnricher.enrich(ClientTestInstanceEnricher.java:51)
...
Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.HasInputDevices
The latest Drone version which works with Graphene 2.0.0.Alpha4 is Drone 1.2.0.Alpha3. My bet is that from Beta1 of Drone, it uses Selenium 2.35.0 but Graphene is behind.
--
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
11 years, 3 months