Method: Selenium::WebDriver::Element#as_json

Defined in:
lib/selenium/webdriver/common/element.rb

#as_json(opts = nil) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

For Rails 3 - http://jonathanjulian.com/2010/04/rails-to_json-or-as_json/



252
253
254
# File 'lib/selenium/webdriver/common/element.rb', line 252

def as_json(opts = nil)
  { :ELEMENT => @id }
end