class Selenium::WebDriver::Remote::Bridge::WrappedParent

execute_script requires a JSON representation of the element id otherwise the element will not be sent correctly to the browser

Public Class Methods

new(id) click to toggle source
# File lib/angular_webdriver/protractor/webdriver_patch.rb, line 80
def initialize id
  @id = id
end

Public Instance Methods

to_json(*args) click to toggle source
# File lib/angular_webdriver/protractor/webdriver_patch.rb, line 84
def to_json *args
  { ELEMENT: @id }.to_json
end