Skip to content

Commit

Permalink
Upgrade selenium-webdriver gem to 2.49.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rboykin committed Jan 19, 2016
1 parent a07d18a commit 688e1df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ end

group :test do
gem 'rspec', '2.99.0'
gem 'selenium-webdriver', '2.48.1'
gem 'selenium-webdriver', '2.49.0'
end
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ GEM
ruby-progressbar (1.7.5)
ruby_protobuf (0.4.11)
rubyzip (1.1.7)
selenium-webdriver (2.48.1)
selenium-webdriver (2.49.0)
childprocess (~> 0.5)
multi_json (~> 1.0)
rubyzip (~> 1.0)
Expand Down Expand Up @@ -89,7 +89,7 @@ DEPENDENCIES
rspec (= 2.99.0)
rubocop (= 0.36.0)
ruby_protobuf (= 0.4.11)
selenium-webdriver (= 2.48.1)
selenium-webdriver (= 2.49.0)
sequel (= 4.30.0)
sequel_pg (= 1.6.13)
sinatra (= 1.4.6)
Expand Down
6 changes: 5 additions & 1 deletion spec/integration/web/admin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ def check_allowscriptaccess_attribute(copy_node_id)
end

def refresh_button
@driver.find_element(id: 'MenuButtonRefresh').click
# TODO: Bug in selenium-webdriver 2.49.0. Entire item must be displayed for it to click. Workaround following two lines after commented out code
# @driver.find_element(id: 'MenuButtonRefresh').click
element = @driver.find_element(id: 'MenuButtonRefresh')
@driver.execute_script('arguments[0].click();', element)

true
end

Expand Down

0 comments on commit 688e1df

Please sign in to comment.