mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Move evaluate script to driver
This commit is contained in:
parent
7358deb5d6
commit
3eea2c2639
2 changed files with 5 additions and 5 deletions
|
@ -11,6 +11,10 @@ class Capybara::Driver::Base
|
|||
raise "Not implemented"
|
||||
end
|
||||
|
||||
def evaluate_script(script)
|
||||
raise Capybara::NotSupportedByDriverError
|
||||
end
|
||||
|
||||
def wait?
|
||||
false
|
||||
end
|
||||
|
|
|
@ -171,11 +171,7 @@ module Capybara
|
|||
end
|
||||
|
||||
def evaluate_script(script)
|
||||
begin
|
||||
driver.evaluate_script(script)
|
||||
rescue NoMethodError
|
||||
raise NotSupportedByDriverError
|
||||
end
|
||||
driver.evaluate_script(script)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue