Method: Selenium::WebDriver::Element#to_json

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

#to_jsonObject

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.

Convert to a WebElement JSON Object for transmission over the wire.


365
366
367
# File 'lib/selenium/webdriver/common/element.rb', line 365

def to_json(*)
  JSON.generate as_json
end