Sometimes the driver and gem get out of whack. Also, Chrome auto-updates. 
So 3 things, Ruby gems, webdriver binary and the browser platform/version 
(Nobody expects the Spanish Inquisition.) Selenium-webdriver 3.13.0 was 
only released 2 days ago. You want to look at all of those.

If you're not using a Gemfile you may want to consider adding one to lock 
down the gem versions you're using (and make a note of the known good 
version of the webdriver executable you want to use with them.) To even 
further lock things down you *could* disable the Chrome browser 
auto-update, but of course that'd mean that you aren't always testing with 
the latest browser ver.

One other thing that sometimes causes problems is that you can have 
multiple, stale sessions running if you don't exit cleanly, which can 
interfere with getting a driver connection. I'm not sure exactly what error 
you get back for that, may not be this one. If it's happening on multiple 
systems that's not it.



On Thursday, June 28, 2018 at 5:53:25 AM UTC-7, christina wrote:
>
> This is the error
>
> c:\automation>ruby try.rb
> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.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 
> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/service.rb:72:in
>  
> `block in start'
>         from 
> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/socket_lock.rb:39:in
>  
> `locked'
>         from 
> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/service.rb:69:in
>  
> `start'
>         from 
> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/chrome/driver.rb:43:in
>  
> `initialize'
>         from 
> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/driver.rb:44:in
>  
> `new'
>         from 
> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/driver.rb:44:in
>  
> `for'
>         from 
> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver.rb:86:in
>  
> `for'
>         from 
> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/watir-6.11.0/lib/watir/browser.rb:48:in
>  
> `initialize'
>         from try.rb:7:in `new'
>         from try.rb:7:in `<main>'
>
> On Thu, Jun 28, 2018 at 8:46 AM, c w <[email protected] <javascript:>> 
> wrote:
>
>> Please tell me what ruby version you use.
>>
>> I upgraded the webdriver well all gems but I still get the error.
>>
>> I have no idea what to do in order to run on chrome.
>>
>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.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 
>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/service.rb:72:in
>>  
>> `block in start'
>>         from 
>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/socket_lock.rb:39:in
>>  
>> `locked'
>>         from 
>> C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/selenium-webdriver-3.13.0/lib/selenium/webdriver/common/service.rb:69:in
>>  
>> `start'
>>
>> On Thu, Jun 28, 2018 at 1:36 AM, Justin Ko <[email protected] 
>> <javascript:>> wrote:
>>
>>> The question regarding Chrom is still valid. Can anyone drive the chrome 
>>>> and goto an url on win 10?
>>>>
>>>
>>> Chrome works for me on Windows 10 Pro using:
>>> - Watir 6.11
>>> - Selenium-WebDriver 3.13
>>> - Chrome 67
>>> - Chromedriver 2.4
>>>
>>> Justin
>>>
>>> -- 
>>> -- 
>>> 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] <javascript:>
>>> http://groups.google.com/group/watir-general
>>> [email protected] <javascript:>
>>> --- 
>>> 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] <javascript:>.
>>> 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.

Reply via email to