module Selenium::WebDriver::Firefox::Features
Constants
- FIREFOX_COMMANDS
Public Instance Methods
Source
# File lib/selenium/webdriver/firefox/features.rb, line 32 def command_list FIREFOX_COMMANDS.merge(self.class::COMMANDS) end
Source
# File lib/selenium/webdriver/firefox/features.rb, line 36 def commands(command) command_list[command] end
Source
# File lib/selenium/webdriver/firefox/features.rb, line 64 def context execute :get_context end
Source
# File lib/selenium/webdriver/firefox/features.rb, line 60 def context=(context) execute :set_context, {}, {context: context} end
Source
# File lib/selenium/webdriver/firefox/features.rb, line 56 def full_screenshot execute :full_page_screenshot end
Source
# File lib/selenium/webdriver/firefox/features.rb, line 40 def install_addon(path, temporary) addon = if File.directory?(path) Zipper.zip(path) else File.open(path, 'rb') { |crx_file| Base64.strict_encode64 crx_file.read } end payload = {addon: addon} payload[:temporary] = temporary unless temporary.nil? execute :install_addon, {}, payload end
Source
# File lib/selenium/webdriver/firefox/features.rb, line 52 def uninstall_addon(id) execute :uninstall_addon, {}, {id: id} end