Re: [wtr-general] has anyone experience with executing javascript and extracting datalayer?

2018-10-05 Thread 'gary' via Watir General
:334:in >>> >>> `each' >>> C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.0.2/lib/watir/browser.rb:334:in >>> >>> `wrap_elements_in' >>> C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/watir-6.0.2/lib/watir/browser.rb:332:in >>> >>&g

[wtr-general] has anyone experience with executing javascript and extracting datalayer?

2018-10-03 Thread 'gary' via Watir General
hi, I'm having trouble converting some selenium scripts to watir, lol please don't ask me why, anyway, the basic selenium script below works a treat: require 'selenium-webdriver' $b=Selenium::WebDriver.for :chrome $b.get'mywebsite' # click cookie message overlay sleep(3)

[wtr-general] .exists? visible? and .present?

2016-11-28 Thread 'gary' via Watir General
A question which i've found cropping up in a few places and at times appears controversial, not sure why, but i'm also struggling to find an answer for, and in the absence of an answer how does anybody else do this. To put it simply how to confirm if an element is in the users viewport, not if

[wtr-general] Re: Couldn't start the mozilla using WATIR 6.0.2

2016-11-28 Thread 'gary' via Watir General
is it the latest geckodriver and the latest v. of firefox? On Friday, 25 November 2016 16:28:43 UTC, Raja gopalan wrote: > > I have written the following code >> >> >> require 'watir' >> b=Watir::Browser.new :firefox >> >> b.goto 'www.google.com' > > > It opens the firefox but it's not entering

Re: [wtr-general] browser closing on error

2016-11-28 Thread 'gary' via Watir General
works a treat Titus, thanks again. G On Thursday, 24 November 2016 13:52:32 UTC, Titus Fortner wrote: > > Sorry, that needs to be Selenium::WebDriver::Remote::Capabilities. Forgot > the remote piece. -- -- Before posting, please read http://watir.com/support. In short: search before you

Re: [wtr-general] browser closing on error

2016-11-24 Thread 'gary' via Watir General
ll the chromedriver process. > If with detatch == true it doesn't force all Chrome browsers opened by that > driver to also close. They will of course close if you have your code set > to execute `browser.close`. > > On Wed, Nov 23, 2016 at 8:04 AM, 'gary' via Watir General < > watir-...

[wtr-general] browser closing on error

2016-11-23 Thread 'gary' via Watir General
hi again, I'm now running on the latest for everything, with thanks to Titus and Alex. Ruby 2.6.8 & watir v6. I have noticed that whenever my scripts error the browser now closes automajically. This is handy if I'm running multiple scripts over night for example (even though I had a way to deal

[wtr-general] Re: how to install prev versions of watir

2016-11-16 Thread 'gary' via Watir General
will do thanks On Wednesday, 16 November 2016 15:48:20 UTC, Titus Fortner wrote: > > File a bug on watir-scroll. Alex just needs to switch reference from > watir-webdriver to watir. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Re: how to install prev versions of watir

2016-11-16 Thread 'gary' via Watir General
awesome, thanks On Tuesday, 15 November 2016 15:44:13 UTC, Titus Fortner wrote: > > The watir-webdriver gem is also deprecated. > Use watir > 6.0 (which is based on the watir-webdriver code) > > The latest version of Watir attempts to use monotomic time where supported > and it looks like we

[wtr-general] Re: how to install prev versions of watir

2016-11-16 Thread 'gary' via Watir General
great thanks, btw running watir returns the following message so i assume it's on the cards: C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require': `require "watir-webdriver"` is deprecated. Please, use `require "watir"`. Have found a workaround for Time.now which is

[wtr-general] how to install prev versions of watir

2016-11-15 Thread 'gary' via Watir General
so, i had to spin up a new vm for some regression tests and went through the normal installation process using gem install watir and behold we now have the wonderful version 6... unfortunately nothing seems to work in my scripts now, watir-webdriver is depracated, doesn't know what Time is,