Problem with angular WATIR

16 views
Skip to first unread message

rajagopalan madasami

unread,
May 28, 2019, 3:02:02 AM5/28/19
to Watir General
Hi Titus,

I started using your gem 'watir_angular'.

I have written the following code


b.button(name: 'note-menubutton').click
WatirAngular.wait_for_angular(b)


But this line `WatirAngular.wait_for_angular(b)` is throwing this error

Uncaught exception: Timed out after 30000 ms
        WebDriverError@chrome://marionette/content/error.js:179:5
        ScriptTimeoutError@chrome://marionette/content/error.js:419:5
        evaluate.sandbox/timeoutPromise</scriptTimeoutID<@chrome://marionette/content/evaluate.js:101:16
        notify@resource://gre/modules/Timer.jsm:43:17
        C:/Ruby26/lib/ruby/gems/2.6.0/gems/selenium-webdriver-3.142.0/lib/selenium/webdriver/remote/response.rb:72:in `assert_ok'
        C:/Ruby26/lib/ruby/gems/2.6.0/gems/selenium-webdriver-3.142.0/lib/selenium/webdriver/remote/response.rb:34:in `initialize'
        C:/Ruby26/lib/ruby/gems/2.6.0/gems/selenium-webdriver-3.142.0/lib/selenium/webdriver/remote/http/common.rb:88:in `new'
        C:/Ruby26/lib/ruby/gems/2.6.0/gems/selenium-webdriver-3.142.0/lib/selenium/webdriver/remote/http/common.rb:88:in `create_response'
        C:/Ruby26/lib/ruby/gems/2.6.0/gems/selenium-webdriver-3.142.0/lib/selenium/webdriver/remote/http/default.rb:114:in `request'
        C:/Ruby26/lib/ruby/gems/2.6.0/gems/selenium-webdriver-3.142.0/lib/selenium/webdriver/remote/http/common.rb:64:in `call'
        C:/Ruby26/lib/ruby/gems/2.6.0/gems/selenium-webdriver-3.142.0/lib/selenium/webdriver/remote/bridge.rb:167:in `execute'
        C:/Ruby26/lib/ruby/gems/2.6.0/gems/selenium-webdriver-3.142.0/lib/selenium/webdriver/remote/w3c/bridge.rb:567:in `execute'
        C:/Ruby26/lib/ruby/gems/2.6.0/gems/selenium-webdriver-3.142.0/lib/selenium/webdriver/remote/w3c/bridge.rb:310:in `execute_async_script'
        C:/Ruby26/lib/ruby/gems/2.6.0/gems/selenium-webdriver-3.142.0/lib/selenium/webdriver/common/driver.rb:232:in `execute_async_script'
        C:/Ruby26/lib/ruby/gems/2.6.0/gems/watir_angular-0.4.1/lib/watir_angular.rb:13:in `wait_for_angular'
        C:/A/StingRay/AppData/example.rb:18:in `<top (required)>'

Do you have any idea as to why?

Titus Fortner

unread,
May 28, 2019, 10:28:06 AM5/28/19
to Watir General
I'm not sure, it might be a w3c change issue. Can you file an issue on github?

rajagopalan madasami

unread,
May 28, 2019, 11:57:15 AM5/28/19
to watir-...@googlegroups.com
You are asking me to file a bug in GitHub watir page ?

--
--
Before posting, please read https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
In short: search before you ask, be nice.
 
watir-...@googlegroups.com
http://groups.google.com/group/watir-general
watir-genera...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to watir-genera...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/watir-general/59d05acc-0d40-48f7-99d4-201bc66e520d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Titus Fortner

unread,
May 28, 2019, 1:04:39 PM5/28/19
to Watir General
Yeah put the details here. I'll see if I can reproduce it: https://github.com/titusfortner/watir_angular/issues/new

---
You received this message because you are subscribed to the Google Groups "Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to watir-...@googlegroups.com.

rajagopalan madasami

unread,
May 28, 2019, 1:09:51 PM5/28/19
to watir-...@googlegroups.com
Thank you very much, tomorrow morning I will give you all the detail . It's very important bfir me now because I started automating AngularJS application now. Another person bis automating protrator and I am doing the same in watir.


---
You received this message because you are subscribed to the Google Groups "Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to watir-genera...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/watir-general/f2ce33cd-11de-4035-aebe-ecff691dd402%40googlegroups.com.

Titus Fortner

unread,
May 28, 2019, 1:50:58 PM5/28/19
to Watir General
Couple things of interest. Protractor is a mostly "dead" project from Google right now. The automatic wait code in both it and watir_angular still work well for AngularJS, but some Angular 2+ components make it impossible to use it. For people who want to test in JavaScript, I recommend checking out webdriver.io.

Reply all
Reply to author
Forward
0 new messages