Re: [wtr-general] Re: Problem with angular WATIR

2019-05-28 Thread Titus Fortner
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.



On Tuesday, May 28, 2019 at 12:09:51 PM UTC-5, rajagopalan madasami wrote:
>
> 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.
>
> On Tue, 28 May, 2019, 10:34 PM Titus Fortner,  > wrote:
>
>> Yeah put the details here. I'll see if I can reproduce it: 
>> https://github.com/titusfortner/watir_angular/issues/new
>>
>> On Tuesday, May 28, 2019 at 10:57:15 AM UTC-5, rajagopalan madasami wrote:
>>>
>>> You are asking me to file a bug in GitHub watir page ?
>>>
>>> On Tue, 28 May, 2019, 7:58 PM Titus Fortner,  
>>> wrote:
>>>
 I'm not sure, it might be a w3c change issue. Can you file an issue on 
 github?


 On Tuesday, May 28, 2019 at 2:02:02 AM UTC-5, rajagopalan madasami 
 wrote:
>
> 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 3 ms
> WebDriverError@chrome://marionette/content/error.js:179:5
> ScriptTimeoutError@chrome://marionette/content/error.js:419:5
> 
> evaluate.sandbox/timeoutPromise 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 `'
>
>
> Do you have any idea as to why?
>
> -- 
 -- 
 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-...@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-...@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.

>>> -- 
>> -- 
>> 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-...@googlegroups.com 
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Wa

Re: [wtr-general] Re: Problem with angular WATIR

2019-05-28 Thread rajagopalan madasami
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.

On Tue, 28 May, 2019, 10:34 PM Titus Fortner, 
wrote:

> Yeah put the details here. I'll see if I can reproduce it:
> https://github.com/titusfortner/watir_angular/issues/new
>
> On Tuesday, May 28, 2019 at 10:57:15 AM UTC-5, rajagopalan madasami wrote:
>>
>> You are asking me to file a bug in GitHub watir page ?
>>
>> On Tue, 28 May, 2019, 7:58 PM Titus Fortner,  wrote:
>>
>>> I'm not sure, it might be a w3c change issue. Can you file an issue on
>>> github?
>>>
>>>
>>> On Tuesday, May 28, 2019 at 2:02:02 AM UTC-5, rajagopalan madasami wrote:

 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 3 ms
 WebDriverError@chrome://marionette/content/error.js:179:5
 ScriptTimeoutError@chrome://marionette/content/error.js:419:5
 
 evaluate.sandbox/timeoutPromise>>> 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 `'


 Do you have any idea as to why?

 --
>>> --
>>> 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-...@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-...@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.
>>>
>> --
> --
> 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-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@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-general+unsubscr...@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
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
Before posting, please read 
https

Re: [wtr-general] Re: Problem with angular WATIR

2019-05-28 Thread Titus Fortner
Yeah put the details here. I'll see if I can reproduce it: 
https://github.com/titusfortner/watir_angular/issues/new

On Tuesday, May 28, 2019 at 10:57:15 AM UTC-5, rajagopalan madasami wrote:
>
> You are asking me to file a bug in GitHub watir page ?
>
> On Tue, 28 May, 2019, 7:58 PM Titus Fortner,  > wrote:
>
>> I'm not sure, it might be a w3c change issue. Can you file an issue on 
>> github?
>>
>>
>> On Tuesday, May 28, 2019 at 2:02:02 AM UTC-5, rajagopalan madasami wrote:
>>>
>>> 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 3 ms
>>> WebDriverError@chrome://marionette/content/error.js:179:5
>>> ScriptTimeoutError@chrome://marionette/content/error.js:419:5
>>> 
>>> evaluate.sandbox/timeoutPromise>> 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 `'
>>>
>>>
>>> Do you have any idea as to why?
>>>
>>> -- 
>> -- 
>> 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-...@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-...@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.
>>
>

-- 
-- 
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-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@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-general+unsubscr...@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.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: How to call the custom tags?

2019-05-28 Thread rajagopalan madasami
I think you are right. Yes, I should have done that way. Let me try
tomorrow as soon as I reach office and let you know.

On Tue, 28 May, 2019, 7:52 PM Titus Fortner,  wrote:

> I'd need to see the underlying html to know for sure, but it looks like
> you want to specify the tag name of the following sibling
> `following_sibling(tag_name: 'div')`
>
>
>
> On Tuesday, May 28, 2019 at 8:45:37 AM UTC-5, rajagopalan madasami wrote:
>>
>> Justin,
>>
>> Can you please help me to write this code in watir?
>>
>> b.span(xpath: 
>> "//label[@title='Subject']/following-sibling::div/lf-select/div/span").click
>>
>>
>> I have tried this
>>
>> b.label(title: 'Subject').following_sibling.element(tag_name: 
>> 'lf-select').div.span.click
>>
>> But it's not working.
>>
>> Can you help me here?
>>
>>
>> On Tuesday, 28 May 2019 18:56:52 UTC+5:30, Justin Ko wrote:
>>>
>>> For custom elements, you will need to use the #element method:
>>>
>>> b.element(tag_name: 'lf-select')
>>>
>>> Justin
>>>
>>>
>>> On Tuesday, May 28, 2019 at 1:15:05 AM UTC-4, rajagopalan madasami wrote:

 Hi,

 I have a custom tag named `lf-select`

 Can't I call in WATIR like

 b.lf_select()

 Or something like that? Or Is there anyway?

>>> --
> --
> 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-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@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-general+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/watir-general/792fb46a-fcaf-44ef-a502-f11fa5d223fc%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@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-general+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/watir-general/CAPc%2BR9SCaQyvCyTis3qfQ72U-EkjXXO3sGci3jRSjMXUB0o3mA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [wtr-general] Re: Problem with angular WATIR

2019-05-28 Thread rajagopalan madasami
You are asking me to file a bug in GitHub watir page ?

On Tue, 28 May, 2019, 7:58 PM Titus Fortner,  wrote:

> I'm not sure, it might be a w3c change issue. Can you file an issue on
> github?
>
>
> On Tuesday, May 28, 2019 at 2:02:02 AM UTC-5, rajagopalan madasami wrote:
>>
>> 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 3 ms
>> WebDriverError@chrome://marionette/content/error.js:179:5
>> ScriptTimeoutError@chrome://marionette/content/error.js:419:5
>> 
>> evaluate.sandbox/timeoutPromise> 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 `'
>>
>>
>> Do you have any idea as to why?
>>
>> --
> --
> 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-general@googlegroups.com
> http://groups.google.com/group/watir-general
> watir-general+unsubscr...@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-general+unsubscr...@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.
>

-- 
-- 
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-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@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-general+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/watir-general/CAPc%2BR9SFAX8OiCCPP4%3DJwXsajEh5h%3DpTJTm-gE3GMYwWkPOAKA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Re: Problem with angular WATIR

2019-05-28 Thread Titus Fortner
I'm not sure, it might be a w3c change issue. Can you file an issue on 
github?


On Tuesday, May 28, 2019 at 2:02:02 AM UTC-5, rajagopalan madasami wrote:
>
> 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 3 ms
> WebDriverError@chrome://marionette/content/error.js:179:5
> ScriptTimeoutError@chrome://marionette/content/error.js:419:5
> 
> evaluate.sandbox/timeoutPromise 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 `'
>
>
> Do you have any idea as to why?
>
>

-- 
-- 
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-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@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-general+unsubscr...@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.


[wtr-general] Re: How to call the custom tags?

2019-05-28 Thread Titus Fortner
I'd need to see the underlying html to know for sure, but it looks like you 
want to specify the tag name of the following sibling 
`following_sibling(tag_name: 'div')`



On Tuesday, May 28, 2019 at 8:45:37 AM UTC-5, rajagopalan madasami wrote:
>
> Justin,
>
> Can you please help me to write this code in watir?
>
> b.span(xpath: 
> "//label[@title='Subject']/following-sibling::div/lf-select/div/span").click
>
>
> I have tried this
>
> b.label(title: 'Subject').following_sibling.element(tag_name: 
> 'lf-select').div.span.click
>
> But it's not working. 
>
> Can you help me here?
>
>
> On Tuesday, 28 May 2019 18:56:52 UTC+5:30, Justin Ko wrote:
>>
>> For custom elements, you will need to use the #element method:
>>
>> b.element(tag_name: 'lf-select')
>>
>> Justin
>>
>>
>> On Tuesday, May 28, 2019 at 1:15:05 AM UTC-4, rajagopalan madasami wrote:
>>>
>>> Hi,
>>>
>>> I have a custom tag named `lf-select`
>>>
>>> Can't I call in WATIR like
>>>
>>> b.lf_select()
>>>
>>> Or something like that? Or Is there anyway?
>>>
>>

-- 
-- 
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-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@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-general+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/watir-general/792fb46a-fcaf-44ef-a502-f11fa5d223fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Re: How to call the custom tags?

2019-05-28 Thread rajagopalan madasami
Justin,

Can you please help me to write this code in watir?

b.span(xpath: 
"//label[@title='Subject']/following-sibling::div/lf-select/div/span").click


I have tried this

b.label(title: 'Subject').following_sibling.element(tag_name: 
'lf-select').div.span.click

But it's not working. 

Can you help me here?


On Tuesday, 28 May 2019 18:56:52 UTC+5:30, Justin Ko wrote:
>
> For custom elements, you will need to use the #element method:
>
> b.element(tag_name: 'lf-select')
>
> Justin
>
>
> On Tuesday, May 28, 2019 at 1:15:05 AM UTC-4, rajagopalan madasami wrote:
>>
>> Hi,
>>
>> I have a custom tag named `lf-select`
>>
>> Can't I call in WATIR like
>>
>> b.lf_select()
>>
>> Or something like that? Or Is there anyway?
>>
>

-- 
-- 
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-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@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-general+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/watir-general/0f87364b-1962-41da-b95c-c42079620f6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Re: How to call the custom tags?

2019-05-28 Thread rajagopalan madasami
wow, that's beautiful, thanks.

On Tuesday, 28 May 2019 18:56:52 UTC+5:30, Justin Ko wrote:
>
> For custom elements, you will need to use the #element method:
>
> b.element(tag_name: 'lf-select')
>
> Justin
>
>
> On Tuesday, May 28, 2019 at 1:15:05 AM UTC-4, rajagopalan madasami wrote:
>>
>> Hi,
>>
>> I have a custom tag named `lf-select`
>>
>> Can't I call in WATIR like
>>
>> b.lf_select()
>>
>> Or something like that? Or Is there anyway?
>>
>

-- 
-- 
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-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@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-general+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/watir-general/0c8fbf77-f66a-454e-ac5d-8616b1448987%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Re: How to call the custom tags?

2019-05-28 Thread Justin Ko
For custom elements, you will need to use the #element method:

b.element(tag_name: 'lf-select')

Justin


On Tuesday, May 28, 2019 at 1:15:05 AM UTC-4, rajagopalan madasami wrote:
>
> Hi,
>
> I have a custom tag named `lf-select`
>
> Can't I call in WATIR like
>
> b.lf_select()
>
> Or something like that? Or Is there anyway?
>

-- 
-- 
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-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@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-general+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/watir-general/0fa2a316-cbf8-4cfd-bf04-95c7b342f32f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[wtr-general] Problem with angular WATIR

2019-05-28 Thread rajagopalan madasami
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 3 ms
WebDriverError@chrome://marionette/content/error.js:179:5
ScriptTimeoutError@chrome://marionette/content/error.js:419:5

evaluate.sandbox/timeoutPromise'


Do you have any idea as to why?

-- 
-- 
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-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@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-general+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/watir-general/59156fb2-9e8a-441f-944c-5b70d280cb18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.