Browse files

Added current_url to selenium driver to avoid stack overflow when cur…

…rent_url called on driver
  • Loading branch information...
1 parent 801f6d2 commit 07f32d64d44f1e591e7f95edf0d09111a38202aa @DylanLacey DylanLacey committed Apr 18, 2013
Showing with 5 additions and 1 deletion.
  1. +4 −0 lib/sauce/selenium.rb
  2. +1 −1 sauce.gemspec
View
4 lib/sauce/selenium.rb
@@ -45,6 +45,10 @@ def session_id
@driver.send(:bridge).session_id
end
+ def current_url
+ @driver.current_url
+ end
+
def stop
@driver.quit
end
View
2 sauce.gemspec
@@ -4,7 +4,7 @@ require File.expand_path('../lib/sauce/version', __FILE__)
Gem::Specification.new do |s|
s.name = 'sauce'
- s.version = "#{Sauce::MAJOR_VERSION}.1"
+ s.version = "#{Sauce::MAJOR_VERSION}.2"
s.authors = ["Dylan Lacey", "Steven Hazel", "R. Tyler Croy", "Santiago Suarez Ordoñez", "Eric Allen", "Sean Grove"]
s.homepage = 'http://github.com/sauce-labs/sauce_ruby'
s.email = 'help@saucelabs.com'

0 comments on commit 07f32d6

Please sign in to comment.