[arquillian-issues] [JBoss JIRA] (ARQGRA-395) Graphene.guardAjax() doesn't work correctly in IE

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Fri Oct 11 09:11:27 EDT 2013


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

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

This issue can be reproducer used together with branch ARQGRA-355 and this patch:

{code}
diff --git a/ftest/src/test/resources/org/jboss/arquillian/graphene/ftest/guard/sample1.html b/ftest/src/test/resources/org/jboss/ar
index 314db7d..9f6f033 100644
--- a/ftest/src/test/resources/org/jboss/arquillian/graphene/ftest/guard/sample1.html
+++ b/ftest/src/test/resources/org/jboss/arquillian/graphene/ftest/guard/sample1.html
@@ -24,6 +24,7 @@
 <!DOCTYPE html>
 <html>
     <head>
+        <meta http-equiv="X-UA-Compatible" content="IE=7" />
         <script type="text/javascript">
             var XMLHttpArray = [
                     function() {return new XMLHttpRequest()},
@@ -94,13 +95,15 @@
     </head>
     <body>
         <h1>Hello World!</h1>
+        <form>
         <a href="sample2.html" id="http">HTTP</a> <br />
-        <a href="#" id="xhr" onclick="MakeRequst()">XHR</a>
+        <input type="submit" value="sample2.html" id="xhr" onclick="MakeRequst(); return false;" value="XHR" />
         <a href="#" id="none">NONE</a>
         <a href="#" id="xhr-delayed-trigerring" onclick="xhrDelayedTrigerring()">XHR (delayed trigerring)</a>
         <a href="#" id="xhr-delayed-processing" onclick="xhrDelayedProcessing()">XHR (delayed processing)</a>
         <a href="#" id="xhr-delayed-trigerring-and-processing" onclick="xhrDelayedTrigerringAndProcessing()">XHR (delayed triggerin
         <a href="#" id="xhr-delayed-processing-with-code-arg" onclick="xhrDelayedProcessingWithCodeArg()">XHR (delayed processing -
         <div id="status"></div>
+        </form>
     </body>
 </html>
{code}
                
> Graphene.guardAjax() doesn't work correctly in IE
> -------------------------------------------------
>
>                 Key: ARQGRA-395
>                 URL: https://issues.jboss.org/browse/ARQGRA-395
>             Project: Arquillian Graphene
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 2.0.0.CR2
>         Environment: IE 7, 8, 9
>            Reporter: Jan Dosoudil
>            Assignee: Lukáš Fryč
>             Fix For: 2.0.1.Final
>
>
> I have jsf page h:commandButton with f:ajax. Testing with Graphene.guardAjax(button).click(); works with Firefox, htmlUnit, phantomjs but doesn't with Internet Explorer (7, 8, 9). Internet explorer calls onclick function but without return false which causes full page submit. 
> button.click() works ok.

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