lib/appium_lib/common/patch.rb in appium_lib-0.4.0 vs lib/appium_lib/common/patch.rb in appium_lib-0.4.1

- old
+ new

@@ -1,5 +1,25 @@ # encoding: utf-8 + +# Add status to WebDriver +# https://code.google.com/p/selenium/issues/detail?id=5669 +class Selenium::WebDriver::Driver + def status + bridge.status + end +end + +class Selenium::WebDriver::Remote::Bridge + def status + raw_execute :status + end +end + +class Selenium::WebDriver::Remote::Bridge + command :status, :get, 'status' +end +# end Add status to WebDriver + module Appium::Common # Implement useful features for element. class Selenium::WebDriver::Element # Note: For testing .text should be used over value, and name. \ No newline at end of file