module Selenium::WebDriver::Edge::Bridge
Public Instance Methods
commands(command)
click to toggle source
Calls superclass method
# File lib/selenium/webdriver/edge/bridge.rb, line 24 def commands(command) unsupported = %i[execute_script execute_async_script submit_element double_click mouse_down mouse_up mouse_move_to click send_keys_to_active_element get_window_handles get_current_window_handle get_window_size set_window_size get_window_position set_window_position maximize_window get_alert_text accept_alert dismiss_alert] if unsupported.include? command Remote::OSS::Bridge::COMMANDS[command] else super end end
maximize_window(handle = :current)
click to toggle source
# File lib/selenium/webdriver/edge/bridge.rb, line 68 def maximize_window(handle = :current) execute :maximize_window, window_handle: handle end
reposition_window(x, y, handle = :current)
click to toggle source
# File lib/selenium/webdriver/edge/bridge.rb, line 63 def reposition_window(x, y, handle = :current) execute :set_window_position, {window_handle: handle}, {x: x, y: y} end
resize_window(width, height, handle = :current)
click to toggle source
# File lib/selenium/webdriver/edge/bridge.rb, line 51 def resize_window(width, height, handle = :current) execute :set_window_size, {window_handle: handle}, {width: width, height: height} end
send_keys_to_active_element(key)
click to toggle source
# File lib/selenium/webdriver/edge/bridge.rb, line 37 def send_keys_to_active_element(key) execute :send_keys_to_active_element, {}, {value: key} end
window_handle()
click to toggle source
# File lib/selenium/webdriver/edge/bridge.rb, line 41 def window_handle execute :get_current_window_handle end
window_position(handle = :current)
click to toggle source
# File lib/selenium/webdriver/edge/bridge.rb, line 57 def window_position(handle = :current) data = execute :get_window_position, window_handle: handle Point.new data['x'], data['y'] end
window_size(handle = :current)
click to toggle source
# File lib/selenium/webdriver/edge/bridge.rb, line 45 def window_size(handle = :current) data = execute :get_window_size, window_handle: handle Dimension.new data['width'], data['height'] end