Is anyone else that tends to work with a mac and Chrome having problems 
with the latest chromedriver?  after installing it all my scripts started 
failing.  Rolling back to the older version got things working again.

Details:

I have a script that is working pretty well and is generally very reliable. 
I do most of my script development on a mac with OSX 10.8.4 using chrome, 
cucumber, watir-webdriver, and the test-factory gem for page and data 
objects.   All has been well so far.

  I recently upgraded chrome on my system and figured it would be a good 
idea to update chromedriver also since it was now like about 6 months old. 
 After doing so every script started failing. Always with the same error.  

     unexpected response, code=404, content-type=""
      unknown command: 
session/ccc759fed3a262faf632dd11ca4067b2/element/name 
(Selenium::WebDriver::Error::WebDriverError)
      ./lib/data_objects/agent.rb:29:in `block in signed_in?'
      ./lib/data_objects/agent.rb:28:in `signed_in?'
      ./features/step_definitions/signin_and_signup.rb:60:in `/^I am signed 
in as a TCC Employee$/'
      features/no_js_errors.feature:113:in `Given I am signed in as a TCC 
Employee'

Due to the nature of my scripts it was all at the same spot, which is part 
of my login step which checks to see if the right user is logged in, if not 
calls logout and logs in the needed user. That's line 29 in the error 
above, which is the central line in this method

 def signed_in?
    on CommonHeader do |page|
      return page.session_links.exists? ? page.current_user == 
"#{@firstname} #{@lastname}" : false
    end
  end

 page.session_links.exists? amounts to  "b.ul(:id => 
"session-links").exists?" 

which is checking to see of the UI element that holds the current user's 
name is present on the page.  A pretty simple call, and I expect it to fail 
at this point as nobody is logged in when the script starts.  Not rocket 
science, a simple 'exists' call.   Which btw works perfectly well if I 
invoke IRB, but fails universally when stuff is run via cucumber.

Replacing the shiny new chromedriver with the deprecated version from 6 
months old makes everything go back to functioning as expected.  

As far as I can tell the rest of my stuff is up to date
  Cucumber 1.3.3
  Selenium-webdriver 2.33.0
  Watir-webdriver 0.6.4
  Test-factory 0.2.9

Anyone else seen this or seen anyone having a similar issue? 

-- 
-- 
Before posting, please read http://watir.com/support. 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/groups/opt_out.


Reply via email to