Method: Selenium::WebDriver::Element#as_json
- Defined in:
- lib/selenium/webdriver/common/element.rb
permalink #as_json ⇒ 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 - jonathanjulian.com/2010/04/rails-to_json-or-as_json/
375 376 377 |
# File 'lib/selenium/webdriver/common/element.rb', line 375 def as_json(*) @id.is_a?(Hash) ? @id : {ELEMENT_KEY => @id} end |