module Selenium::WebDriver::Firefox::Features

Constants

FIREFOX_COMMANDS

Public Instance Methods

commands(command) click to toggle source
# File lib/selenium/webdriver/firefox/features.rb, line 33
def commands(command)
  FIREFOX_COMMANDS[command] || self.class::COMMANDS[command]
end
context() click to toggle source
# File lib/selenium/webdriver/firefox/features.rb, line 60
def context
  execute :get_context
end
context=(context) click to toggle source
# File lib/selenium/webdriver/firefox/features.rb, line 56
def context=(context)
  execute :set_context, {}, {context: context}
end
full_screenshot() click to toggle source
# File lib/selenium/webdriver/firefox/features.rb, line 52
def full_screenshot
  execute :full_page_screenshot
end
install_addon(path, temporary) click to toggle source
# File lib/selenium/webdriver/firefox/features.rb, line 37
def install_addon(path, temporary)
  if @file_detector
    local_file = @file_detector.call(path)
    path = upload(local_file) if local_file
  end

  payload = {path: path}
  payload[:temporary] = temporary unless temporary.nil?
  execute :install_addon, {}, payload
end
uninstall_addon(id) click to toggle source
# File lib/selenium/webdriver/firefox/features.rb, line 48
def uninstall_addon(id)
  execute :uninstall_addon, {}, {id: id}
end