[arquillian-issues] [JBoss JIRA] (ARQGRA-301) Support for assertions on errors and console output

Jan Papousek (JIRA) jira-events at lists.jboss.org
Wed May 15 04:34:06 EDT 2013


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

Jan Papousek edited comment on ARQGRA-301 at 5/15/13 4:32 AM:
--------------------------------------------------------------

The problem is, we don't have an access to the page generally. Using FirefoxDriver we can use page extensions to attach javascript code to the page, but using other browser the only way is to execute the code you've mentioned via Selenium (JavascriptExecutor), so it can't handle javascript errors before its execution or after page is reload.
                
      was (Author: jpapouse):
    The problem is, we don't have an access to the page generally. Using FirefoxDriver we can use page extensions to attach javascript code to the page, but using other browser the only way is to execute the code you've mentioned via Selenium (JavascriptExecutor), so it can't handle javascript errors before its execution and after page reload.
                  
> Support for assertions on errors and console output
> ---------------------------------------------------
>
>                 Key: ARQGRA-301
>                 URL: https://issues.jboss.org/browse/ARQGRA-301
>             Project: Arquillian Graphene
>          Issue Type: Feature Request
>            Reporter: Brian Leathem
>
> In a recent Graphene based test [\[1\]|https://github.com/richfaces/components/commit/857f73bbf87f495e36c33072c5c4415d4b02be10#L1R85] I registered a window.onerror listener to store errors in the DOM for later retrieval by Graphene/Selenium for use in an assertion.
> It would be great if Graphene could do this automatically, providing an API for accessing both error messages, and console output.
> [1] https://github.com/richfaces/components/commit/857f73bbf87f495e36c33072c5c4415d4b02be10#L1R85

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