Excellent! Thank you! I made it working.
The question regarding Chrom is still valid. Can anyone drive the chrome and goto an url on win 10? On Mon, Jun 25, 2018 at 3:49 PM, rajagopalan madasami < [email protected]> wrote: > This means your element is not visible. > > On Tue 26 Jun, 2018, 1:17 AM c w, <[email protected]> wrote: > >> The problem is that I cannot move forward as I get this error >> >> element located, but timed out after 30 seconds, waiting for >> #<Watir::Anchor: located: true; {:xpath=>"//*[@id=\"Given_Names\"]", >> :tag_name=>"a"}> to be present (Watir::Exception::UnknownObjectException) >> ./features/support/pages/peopleDependentBeneficiaryPage.rb:31:in >> `set_dep_given_namesz' >> >> >> Because of this I was thinking to try another browser... >> >> And advise is greatly appreciated! >> >> On Mon, Jun 25, 2018 at 3:20 PM, c w <[email protected]> wrote: >> >>> Hi all, >>> >>> I try to use chrome instead of firefox, >>> but I am getting >>> >>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3. >>> 12.0/lib/selenium/webdriver/common/service.rb:142:in >>> `connect_until_stable': unable to connect to chromedriver 127.0.0.1:9515 >>> (Selenium::WebDriver::Error::WebDriverError) >>> from >>> >>> >>> >>> I try to use this basic try,rb test file for fast testing. In firefox >>> works but is not in Chrome. >>> >>> ruby try.rb >>> >>> >>> require 'watir' >>> require 'webdrivers' >>> >>> #@browser = Watir::Browser.new :firefox >>> @browser = Watir::Browser.new :chrome >>> >>> @browser.goto "https://www.google.com/" >>> >>> >>> I am using Win 10 >>> My browser version is : >>> Version 67.0.3396.99 ( >>> and I use chrome driver 2.40 >>> >>> I have it on class path as well I use the gem webdrivers. >>> >>> So can you run the scripts on Win 10 on chrome? >>> >>> >>> Thank you! >>> >>> >>> >> -- >> -- >> 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. >> >> [email protected] >> http://groups.google.com/group/watir-general >> [email protected] >> --- >> 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 [email protected]. >> 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. > > [email protected] > http://groups.google.com/group/watir-general > [email protected] > --- > 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 [email protected]. > 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. [email protected] http://groups.google.com/group/watir-general [email protected] --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
