[arquillian-issues] [JBoss JIRA] (ARQGRA-329) Add support for HTML5 form validation API

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Tue Sep 3 05:59:03 EDT 2013


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

Lukáš Fryč commented on ARQGRA-329:
-----------------------------------

Make sense - it would be pretty trivial to introduce it on a level of element (using GrapheneElement).

We could create a new page fragment called Form, which would have exactly the methods you need for handling basic form operations like checking validity all inputs in a form:

{code:java}
class Form {  
   boolean isValid() { ... }
}


class Page {
   
   @FindBy(css = "form")
   Form form;

   @Test
   test() {
     assertTrue(form.isValid());
   }
}
{code}
                
> 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-validation-api] 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



More information about the arquillian-issues mailing list