How to use action method of Selenium.WebDriver.Remote Package

Best Selenium code snippet using Selenium.WebDriver.Remote.action

selenium-webdriver@4.1.0.rbi

Source:selenium-webdriver@4.1.0.rbi Github

copy

Full Screen

...37end38class Selenium::WebDriver::ActionBuilder39 include ::Selenium::WebDriver::KeyActions40 include ::Selenium::WebDriver::PointerActions41 # Initialize a W3C Action Builder. Differs from previous by requiring a bridge and allowing asynchronous actions.42 # The W3C implementation allows asynchronous actions per device. e.g. A key can be pressed at the same time that43 # the mouse is moving. Keep in mind that pauses must be added for other devices in order to line up the actions44 # correctly when using asynchronous.45 #46 # @param bridge [Selenium::WebDriver::Remote::Bridge] the bridge for the current driver instance47 # @param mouse [Selenium::WebDriver::Interactions::PointerInput] PointerInput for the mouse.48 # @param keyboard [Selenium::WebDriver::Interactions::KeyInput] KeyInput for the keyboard.49 # @param async [Boolean] Whether to perform the actions asynchronously per device. Defaults to false for50 # backwards compatibility.51 # @return [ActionBuilder] A self reference.52 def initialize(bridge, mouse, keyboard, async = T.unsafe(nil)); end53 # Adds a KeyInput device54 #55 # @example Add a key input device56 #57 # builder = device.action58 # builder.add_key_input('keyboard2')59 # @param name [String] name for the device60 # @return [Interactions::KeyInput] The key input added61 def add_key_input(name); end62 # Adds a PointerInput device of the given kind63 #64 # @example Add a touch pointer input device65 #66 # builder = device.action67 # builder.add_pointer_input('touch', :touch)68 # @param name [String] name for the device69 # @param kind [Symbol] kind of pointer device to create70 # @return [Interactions::PointerInput] The pointer input added71 def add_pointer_input(kind, name); end72 # Clears all actions from the builder.73 def clear_all_actions; end74 # Returns the value of attribute devices.75 def devices; end76 # Retrieves the input device for the given name77 #78 # @param name [String] name of the input device79 # @return [Selenium::WebDriver::Interactions::InputDevice] input device with given name80 def get_device(name); end81 # Retrieves the current KeyInput device82 #83 # @return [Selenium::WebDriver::Interactions::InputDevice] current KeyInput device84 def key_inputs; end85 # Creates a pause for the given device of the given duration. If no duration is given, the pause will only wait86 # for all actions to complete in that tick.87 #88 # @example Send keys to an element89 #90 # action_builder = driver.action91 # keyboard = action_builder.key_input92 # el = driver.find_element(id: "some_id")93 # driver.action.click(el).pause(keyboard).pause(keyboard).pause(keyboard).send_keys('keys').perform94 # @param device [InputDevice] Input device to pause95 # @param duration [Float] Duration to pause96 # @return [ActionBuilder] A self reference.97 def pause(device, duration = T.unsafe(nil)); end98 # Creates multiple pauses for the given device of the given duration.99 #100 # @example Send keys to an element101 #102 # action_builder = driver.action103 # keyboard = action_builder.key_input104 # el = driver.find_element(id: "some_id")105 # driver.action.click(el).pauses(keyboard, 3).send_keys('keys').perform106 # @param device [InputDevice] Input device to pause107 # @param number [Integer] of pauses to add for the device108 # @param duration [Float] Duration to pause109 # @return [ActionBuilder] A self reference.110 def pauses(device, number, duration = T.unsafe(nil)); end111 # Executes the actions added to the builder.112 def perform; end113 # Retrieves the current PointerInput devices114 #115 # @return [Array] array of current PointerInput devices116 def pointer_inputs; end117 # Releases all action states from the browser.118 def release_actions; end119 private120 # Adds an InputDevice121 def add_input(device); end122 # Adds pauses for all devices but the given devices123 #124 # @param action_devices [Array[InputDevice]] Array of Input Devices performing an action in this tick.125 def tick(*action_devices); end126end127class Selenium::WebDriver::Alert128 # @return [Alert] a new instance of Alert129 def initialize(bridge); end130 def accept; end131 def dismiss; end132 def send_keys(keys); end133 def text; end134end135module Selenium::WebDriver::Atoms136 private137 def execute_atom(function_name, *arguments); end138 def read_atom(function); end139end140module Selenium::WebDriver::Chrome141 class << self142 def driver_path; end143 def driver_path=(path); end144 def path; end145 def path=(path); end146 end147end148# Driver implementation for Chrome.149#150# @api private151class Selenium::WebDriver::Chrome::Driver < ::Selenium::WebDriver::Driver152 # @api private153 def browser; end154 private155 # @api private156 def devtools_address; end157 # @api private158 def devtools_url; end159 # @api private160 def devtools_version; end161end162# @api private163Selenium::WebDriver::Chrome::Driver::EXTENSIONS = T.let(T.unsafe(nil), Array)164module Selenium::WebDriver::Chrome::Features165 def available_log_types; end166 def cast_issue_message; end167 def cast_sink_to_use=(name); end168 def cast_sinks; end169 def commands(command); end170 def delete_network_conditions; end171 def launch_app(id); end172 def log(type); end173 def network_conditions; end174 def network_conditions=(conditions); end175 def send_command(command_params); end176 def set_permission(name, value); end177 def start_cast_tab_mirroring(name); end178 def stop_casting(name); end179end180Selenium::WebDriver::Chrome::Features::CHROME_COMMANDS = T.let(T.unsafe(nil), Hash)181class Selenium::WebDriver::Chrome::Options < ::Selenium::WebDriver::Options182 # Create a new Options instance.183 #184 # @example185 # options = Selenium::WebDriver::Chrome::Options.new(args: ['start-maximized', 'user-data-dir=/tmp/temp_profile'])186 # driver = Selenium::WebDriver.for(:chrome, capabilities: options)187 # @option opts188 # @option opts189 # @option opts190 # @option opts191 # @option opts192 # @option opts193 # @option opts194 # @option opts195 # @option opts196 # @option opts197 # @option opts198 # @option opts199 # @option opts200 # @param :profile [Profile] An instance of a Chrome::Profile Class201 # @param :encoded_extensions [Array] List of extensions that do not need to be Base64 encoded202 # @param opts [Hash] the pre-defined options to create the Chrome::Options with203 # @return [Options] a new instance of Options204 def initialize(profile: T.unsafe(nil), **opts); end205 # Add a command-line argument to use when starting Chrome.206 #207 # @example Start Chrome maximized208 # options = Selenium::WebDriver::Chrome::Options.new209 # options.add_argument('start-maximized')210 # @param arg [String] The command-line argument to add211 def add_argument(arg); end212 # Add emulation device information213 #214 # see: http://chromedriver.chromium.org/mobile-emulation215 #216 # @example Start Chrome in mobile emulation mode by device name217 # options = Selenium::WebDriver::Chrome::Options.new218 # options.add_emulation(device_name: 'iPhone 6')219 # @example Start Chrome in mobile emulation mode by device metrics220 # options = Selenium::WebDriver::Chrome::Options.new221 # options.add_emulation(device_metrics: {width: 400, height: 800, pixelRatio: 1, touch: true})222 # @option opts223 # @option opts224 # @option opts225 # @param opts [Hash] the pre-defined options for adding mobile emulation values226 def add_emulation(**opts); end227 # Add an extension by Base64-encoded string.228 #229 # @example230 # options = Selenium::WebDriver::Chrome::Options.new231 # options.add_encoded_extension(encoded_string)232 # @param encoded [String] The Base64-encoded string of the .crx file233 def add_encoded_extension(encoded); end234 # Add an extension by local path.235 #236 # @example237 # options = Selenium::WebDriver::Chrome::Options.new238 # options.add_extension('/path/to/extension.crx')239 # @param path [String] The local path to the .crx file240 def add_extension(path); end241 # Add a preference that is only applied to the user profile in use.242 #243 # @example Set the default homepage244 # options = Selenium::WebDriver::Chrome::Options.new245 # options.add_preference('homepage', 'http://www.seleniumhq.com/')246 # @param name [String] Key of the preference247 # @param value [Boolean, String, Integer] Value of the preference248 def add_preference(name, value); end249 # Enables mobile browser use on Android.250 #251 # @param package [String] The package name of the Chrome or WebView app.252 # @param serial_number [String] The device serial number on which to launch the Chrome or WebView app.253 # @param use_running_app [String] When true uses an already-running Chrome or WebView app,254 # instead of launching the app with a clear data directory.255 # @param activity [String] Name of the Activity hosting the WebView (Not available on Chrome Apps).256 # @see https://chromedriver.chromium.org/getting-started/getting-started---android257 def enable_android(package: T.unsafe(nil), serial_number: T.unsafe(nil), use_running_app: T.unsafe(nil), activity: T.unsafe(nil)); end258 # NOTE: special handling of 'extensions' to validate when set instead of when used259 def extensions; end260 # Add an extension by local path.261 #262 # @example263 # extensions = ['/path/to/extension.crx', '/path/to/other.crx']264 # options = Selenium::WebDriver::Chrome::Options.new265 # options.extensions = extensions266 # @param :extensions [Array<String>] A list of paths to (.crx) Chrome extensions to install on startup267 def extensions=(extensions); end268 # Run Chrome in headless mode.269 #270 # @example Enable headless mode271 # options = Selenium::WebDriver::Chrome::Options.new272 # options.headless!273 def headless!; end274 # Returns the value of attribute logging_prefs.275 def logging_prefs; end276 # Sets the attribute logging_prefs277 #278 # @param value the value to set the attribute logging_prefs to.279 def logging_prefs=(_arg0); end280 # Returns the value of attribute profile.281 def profile; end282 # Sets the attribute profile283 #284 # @param value the value to set the attribute profile to.285 def profile=(_arg0); end286 private287 def binary_path; end288 # @return [Boolean]289 def camelize?(key); end290 def enable_logging(browser_options); end291 def encode_extension(path); end292 def process_browser_options(browser_options); end293 # @raise [Error::WebDriverError]294 def validate_extension(path); end295end296Selenium::WebDriver::Chrome::Options::BROWSER = T.let(T.unsafe(nil), String)297# see: http://chromedriver.chromium.org/capabilities298Selenium::WebDriver::Chrome::Options::CAPABILITIES = T.let(T.unsafe(nil), Hash)299Selenium::WebDriver::Chrome::Options::KEY = T.let(T.unsafe(nil), String)300# @private301class Selenium::WebDriver::Chrome::Profile302 include ::Selenium::WebDriver::ProfileHelper303 extend ::Selenium::WebDriver::ProfileHelper::ClassMethods304 # @return [Profile] a new instance of Profile305 def initialize(model = T.unsafe(nil)); end306 def [](key); end307 # Set a preference in the profile.308 #309 # See https://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/pref_names.cc310 def []=(key, value); end311 def add_encoded_extension(encoded); end312 # @raise [Error::WebDriverError]313 def add_extension(path); end314 def as_json(*_arg0); end315 def directory; end316 def layout_on_disk; end317 private318 def prefs; end319 def prefs_file_for(dir); end320 def read_model_prefs; end321 def write_prefs_to(dir); end322end323class Selenium::WebDriver::Chrome::Service < ::Selenium::WebDriver::Service324 private325 # NOTE: This processing is deprecated326 def extract_service_args(driver_opts); end327end328Selenium::WebDriver::Chrome::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)329Selenium::WebDriver::Chrome::Service::EXECUTABLE = T.let(T.unsafe(nil), String)330Selenium::WebDriver::Chrome::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)331Selenium::WebDriver::Chrome::Service::SHUTDOWN_SUPPORTED = T.let(T.unsafe(nil), TrueClass)332class Selenium::WebDriver::DevTools333 # @return [DevTools] a new instance of DevTools334 def initialize(url:); end335 def callbacks; end336 def close; end337 def method_missing(method, *_args); end338 # @raise [Error::WebDriverError]339 def send_cmd(method, **params); end340 private341 def attach_socket_listener; end342 def callback_thread(params); end343 def error_message(error); end344 def incoming_frame; end345 def next_id; end346 def process_frame(frame); end347 def process_handshake; end348 # @return [Boolean]349 def respond_to_missing?(method, *_args); end350 def socket; end351 def start_session; end352 def wait; end353 def ws; end354end355class Selenium::WebDriver::DevTools::ConsoleEvent356 # @return [ConsoleEvent] a new instance of ConsoleEvent357 def initialize(type:, timestamp:, args:); end358 # Returns the value of attribute args.359 def args; end360 # Sets the attribute args361 #362 # @param value the value to set the attribute args to.363 def args=(_arg0); end364 # Returns the value of attribute timestamp.365 def timestamp; end366 # Sets the attribute timestamp367 #368 # @param value the value to set the attribute timestamp to.369 def timestamp=(_arg0); end370 # Returns the value of attribute type.371 def type; end372 # Sets the attribute type373 #374 # @param value the value to set the attribute type to.375 def type=(_arg0); end376end377class Selenium::WebDriver::DevTools::ExceptionEvent378 # @return [ExceptionEvent] a new instance of ExceptionEvent379 def initialize(description:, timestamp:, stacktrace:); end380 # Returns the value of attribute description.381 def description; end382 # Sets the attribute description383 #384 # @param value the value to set the attribute description to.385 def description=(_arg0); end386 # Returns the value of attribute stacktrace.387 def stacktrace; end388 # Sets the attribute stacktrace389 #390 # @param value the value to set the attribute stacktrace to.391 def stacktrace=(_arg0); end392 # Returns the value of attribute timestamp.393 def timestamp; end394 # Sets the attribute timestamp395 #396 # @param value the value to set the attribute timestamp to.397 def timestamp=(_arg0); end398end399class Selenium::WebDriver::DevTools::MutationEvent400 # @return [MutationEvent] a new instance of MutationEvent401 def initialize(element:, attribute_name:, current_value:, old_value:); end402 # Returns the value of attribute attribute_name.403 def attribute_name; end404 # Sets the attribute attribute_name405 #406 # @param value the value to set the attribute attribute_name to.407 def attribute_name=(_arg0); end408 # Returns the value of attribute current_value.409 def current_value; end410 # Sets the attribute current_value411 #412 # @param value the value to set the attribute current_value to.413 def current_value=(_arg0); end414 # Returns the value of attribute element.415 def element; end416 # Sets the attribute element417 #418 # @param value the value to set the attribute element to.419 def element=(_arg0); end420 # Returns the value of attribute old_value.421 def old_value; end422 # Sets the attribute old_value423 #424 # @param value the value to set the attribute old_value to.425 def old_value=(_arg0); end426end427class Selenium::WebDriver::DevTools::PinnedScript428 # @return [PinnedScript] a new instance of PinnedScript429 def initialize(script); end430 # @api private431 def callable; end432 # Returns the value of attribute devtools_identifier.433 def devtools_identifier; end434 # Sets the attribute devtools_identifier435 #436 # @param value the value to set the attribute devtools_identifier to.437 def devtools_identifier=(_arg0); end438 # Returns the value of attribute key.439 def key; end440 # Sets the attribute key441 #442 # @param value the value to set the attribute key to.443 def key=(_arg0); end444 # @api private445 def remove; end446 # Returns the value of attribute script.447 def script; end448 # Sets the attribute script449 #450 # @param value the value to set the attribute script to.451 def script=(_arg0); end452 # @api private453 def to_json(*_arg0); end454end455Selenium::WebDriver::DevTools::RESPONSE_WAIT_INTERVAL = T.let(T.unsafe(nil), Float)456Selenium::WebDriver::DevTools::RESPONSE_WAIT_TIMEOUT = T.let(T.unsafe(nil), Integer)457class Selenium::WebDriver::DevTools::Request458 # @return [Request] a new instance of Request459 def initialize(id:, url:, method:, headers:, post_data:); end460 def ==(other); end461 # Returns the value of attribute headers.462 def headers; end463 # Sets the attribute headers464 #465 # @param value the value to set the attribute headers to.466 def headers=(_arg0); end467 # Returns the value of attribute id.468 def id; end469 def inspect; end470 # Returns the value of attribute method.471 def method; end472 # Sets the attribute method473 #474 # @param value the value to set the attribute method to.475 def method=(_arg0); end476 # Returns the value of attribute post_data.477 def post_data; end478 # Sets the attribute post_data479 #480 # @param value the value to set the attribute post_data to.481 def post_data=(_arg0); end482 # Returns the value of attribute url.483 def url; end484 # Sets the attribute url485 #486 # @param value the value to set the attribute url to.487 def url=(_arg0); end488 class << self489 # Creates request from DevTools message.490 #491 # @api private492 def from(id, params); end493 end494end495class Selenium::WebDriver::DevTools::Response496 # @return [Response] a new instance of Response497 def initialize(id:, code:, body:, headers:); end498 def ==(other); end499 # Returns the value of attribute body.500 def body; end501 # Sets the attribute body502 #503 # @param value the value to set the attribute body to.504 def body=(_arg0); end505 # Returns the value of attribute code.506 def code; end507 # Sets the attribute code508 #509 # @param value the value to set the attribute code to.510 def code=(_arg0); end511 # Returns the value of attribute headers.512 def headers; end513 # Sets the attribute headers514 #515 # @param value the value to set the attribute headers to.516 def headers=(_arg0); end517 # Returns the value of attribute id.518 def id; end519 def inspect; end520 class << self521 # Creates response from DevTools message.522 #523 # @api private524 def from(id, encoded_body, params); end525 end526end527class Selenium::WebDriver::Dimension < ::Struct528 # Returns the value of attribute height529 #530 # @return [Object] the current value of height531 def height; end532 # Sets the attribute height533 #534 # @param value [Object] the value to set the attribute height to.535 # @return [Object] the newly set value536 def height=(_); end537 # Returns the value of attribute width538 #539 # @return [Object] the current value of width540 def width; end541 # Sets the attribute width542 #543 # @param value [Object] the value to set the attribute width to.544 # @return [Object] the newly set value545 def width=(_); end546 class << self547 def [](*_arg0); end548 def inspect; end549 def keyword_init?; end550 def members; end551 def new(*_arg0); end552 end553end554# The main class through which you control the browser.555#556# @see SearchContext557# @see Navigation558# @see TargetLocator559# @see Options560class Selenium::WebDriver::Driver561 include ::Selenium::WebDriver::SearchContext562 include ::Selenium::WebDriver::TakesScreenshot563 # A new Driver instance with the given bridge.564 # End users should use Selenium::WebDriver.for instead of using this directly.565 #566 # @api private567 # @return [Driver] a new instance of Driver568 def initialize(bridge: T.unsafe(nil), listener: T.unsafe(nil), **opts); end569 # Get the first element matching the given selector. If given a570 # String or Symbol, it will be used as the id of the element.571 #572 # Examples:573 #574 # driver['someElementId'] #=> #<WebDriver::Element:0x1011c3b88>575 # driver[:tag_name => 'div'] #=> #<WebDriver::Element:0x1011c3b88>576 #577 # @param sel [String, Hash] id or selector578 # @return [WebDriver::Element]579 def [](sel); end580 # @return [ActionBuilder]581 # @see ActionBuilder582 def action; end583 # driver.all(class: 'bar') #=> [#<WebDriver::Element:0x1011c3b88, ...]584 def all(*args); end585 def browser; end586 def capabilities; end587 # Close the current window, or the browser if no windows are left.588 def close; end589 # Get the URL of the current page590 #591 # @return [String]592 def current_url; end593 # Execute an asynchronous piece of JavaScript in the context of the594 # currently selected frame or window. Unlike executing595 # execute_script (synchronous JavaScript), scripts596 # executed with this method must explicitly signal they are finished by597 # invoking the provided callback. This callback is always injected into the598 # executed function as the last argument.599 #600 # @param script [String] JavaScript source to execute601 # @param args [WebDriver::Element, Integer, Float, Boolean, NilClass, String, Array] Arguments to the script. May be empty.602 # @return [WebDriver::Element, Integer, Float, Boolean, NilClass, String, Array]603 def execute_async_script(script, *args); end604 # Execute the given JavaScript605 #606 # @param script [String] JavaScript source to execute607 # @param args [WebDriver::Element, Integer, Float, Boolean, NilClass, String, Array] Arguments will be available in the given script in the 'arguments' pseudo-array.608 # @return [WebDriver::Element, Integer, Float, Boolean, NilClass, String, Array] The value returned from the script.609 def execute_script(script, *args); end610 # driver.first(id: 'foo')611 def first(*args); end612 # Opens the specified URL in the browser.613 def get(url); end614 def inspect; end615 def keyboard; end616 # @return [Manager]617 # @see Manager618 def manage; end619 def mouse; end620 # @return [Navigation]621 # @see Navigation622 def navigate; end623 # Get the source of the current page624 #625 # @return [String]626 def page_source; end627 # Quit the browser628 def quit; end629 # @api private630 # @see SearchContext631 def ref; end632 # Execute the given JavaScript633 #634 # @param script [String] JavaScript source to execute635 # @param args [WebDriver::Element, Integer, Float, Boolean, NilClass, String, Array] Arguments will be available in the given script in the 'arguments' pseudo-array.636 # @return [WebDriver::Element, Integer, Float, Boolean, NilClass, String, Array] The value returned from the script.637 #638 # driver.script('function() { ... };')639 def script(script, *args); end640 # information about whether a remote end is in a state in which it can create new sessions,641 # and may include additional meta information.642 #643 # @return [Hash]644 def status; end645 # @return [TargetLocator]646 # @see TargetLocator647 def switch_to; end648 # Get the title of the current page649 #650 # @return [String]651 def title; end652 # Get the current window handle653 #654 # @return [String]655 def window_handle; end656 # Get the window handles of open browser windows.657 #658 # @return [Array]659 # @see TargetLocator#window660 def window_handles; end661 private662 def add_extensions(browser); end663 # Returns the value of attribute bridge.664 def bridge; end665 # @raise [ArgumentError]666 def create_bridge(**opts); end667 def generate_capabilities(cap_array); end668 def screenshot; end669 def service_url(opts); end670 class << self671 # @api private672 # @return [Driver]673 # @see Selenium::WebDriver.for674 def for(browser, opts = T.unsafe(nil)); end675 end676end677# @api private678module Selenium::WebDriver::DriverExtensions; end679module Selenium::WebDriver::DriverExtensions::DownloadsFiles680 # Sets download path for Chromium.681 #682 # @param path [String]683 def download_path=(path); end684end685module Selenium::WebDriver::DriverExtensions::FullPageScreenshot686 # Save a PNG screenshot of the full page to the given path687 #688 # @api public689 def save_full_page_screenshot(path); end690 private691 def full_screenshot; end692end693module Selenium::WebDriver::DriverExtensions::HasAddons694 # Installs addon.695 #696 # @param path [String] Full path to addon file697 # @param temporary [Boolean]698 # @return [String] identifier of installed addon699 def install_addon(path, temporary = T.unsafe(nil)); end700 # Uninstalls addon.701 #702 # @param id [String] Identifier of installed addon703 def uninstall_addon(id); end704end705module Selenium::WebDriver::DriverExtensions::HasApplePermissions706 # Returns permissions.707 #708 # @return [Hash]709 def permissions; end710 # Sets permissions.711 #712 # @example713 # driver.permissions = {'getUserMedia' => true}714 # @param permissions [Hash<Symbol, Boolean>]715 def permissions=(permissions); end716end717module Selenium::WebDriver::DriverExtensions::HasAuthentication718 # Registers basic authentication handler which is automatically719 # used whenever browser gets an authentication required response.720 # This currently relies on DevTools so is only supported in721 # Chromium browsers.722 #723 # @example Authenticate any request724 # driver.register(username: 'admin', password: '123456')725 # @example Authenticate based on URL726 # driver.register(username: 'admin1', password: '123456', uri: /mysite1\.com/)727 # driver.register(username: 'admin2', password: '123456', uri: /mysite2\.com/)728 # @param username [String]729 # @param password [String]730 # @param uri [Regexp] to associate the credentials with731 def register(username:, password:, uri: T.unsafe(nil)); end732 private733 def auth_handlers; end734 def authenticate(request_id, url); end735end736module Selenium::WebDriver::DriverExtensions::HasCDP737 # Returns network conditions.738 #739 # @return [Hash]740 def execute_cdp(cmd, **params); end741end742module Selenium::WebDriver::DriverExtensions::HasCasting743 # Gets error messages when there is any issue in a Cast session.744 #745 # @return [String] the error message746 def cast_issue_message; end747 # Sets a specific sink, using its name, as a Cast session receiver target.748 #749 # @param name [String] the sink to use as the target750 def cast_sink_to_use=(name); end751 # What devices ("sinks") are available to be cast to.752 #753 # @return [Array] list of sinks available for casting with id and name values754 def cast_sinks; end755 # Starts a tab mirroring session on a specific receiver target.756 #757 # @param name [String] the sink to use as the target758 def start_cast_tab_mirroring(name); end759 # Stops the existing Cast session on a specific receiver target.760 #761 # @param name [String] the sink to stop the Cast session762 def stop_casting(name); end763end764module Selenium::WebDriver::DriverExtensions::HasContext765 def context; end766 # Sets the context that Selenium commands are running in using767 # a `with` statement. The state of the context on the server is768 # saved before entering the block, and restored upon exiting it.769 #770 # @param name [String] which permission to set771 # @param value [String] what to set the permission to772 def context=(value); end773end774module Selenium::WebDriver::DriverExtensions::HasDebugger775 # Attaches debugger to session.776 #777 # @example778 # driver.attach_debugger779 # driver.execute_script('debugger')780 # @return [Hash]781 def attach_debugger; end782end783module Selenium::WebDriver::DriverExtensions::HasDevTools784 # Retrieves connection to DevTools.785 #786 # @return [DevTools]787 def devtools; end788end789module Selenium::WebDriver::DriverExtensions::HasLaunching790 # Launches Chromium app specified by id.791 #792 # @param id [String]793 def launch_app(id); end794end795module Selenium::WebDriver::DriverExtensions::HasLocation796 # @raise [Error::UnsupportedOperationError]797 def location; end798 # @raise [Error::UnsupportedOperationError]799 def location=(*_arg0); end800 # @raise [Error::UnsupportedOperationError]801 def set_location; end802end803module Selenium::WebDriver::DriverExtensions::HasLogEvents804 include ::Selenium::WebDriver::Atoms805 # Registers listener to be called whenever browser receives806 # a new Console API message such as console.log() or an unhandled807 # exception.808 #809 # This currently relies on DevTools so is only supported in810 # Chromium browsers.811 #812 # @example Collect console messages813 # logs = []814 # driver.on_log_event(:console) do |event|815 # logs.push(event)816 # end817 # @example Collect JavaScript exceptions818 # exceptions = []819 # driver.on_log_event(:exception) do |event|820 # exceptions.push(event)821 # end822 # @example Collect DOM mutations823 # mutations = []824 # driver.on_log_event(:mutation) do |event|825 # mutations.push(event)826 # end827 # @param kind [Symbol] :console, :exception or :mutation828 # @param block [#call] which is called when event happens829 # @raise [Error::WebDriverError]830 # @yieldparam [DevTools::ConsoleEvent, DevTools::ExceptionEvent, DevTools::MutationEvent]831 def on_log_event(kind, &block); end832 private833 def log_console_events; end834 def log_exception_events; end835 def log_listeners; end836 def log_mutation_event(params); end837 def log_mutation_events; end838 def mutation_listener; end839end840Selenium::WebDriver::DriverExtensions::HasLogEvents::KINDS = T.let(T.unsafe(nil), Array)841module Selenium::WebDriver::DriverExtensions::HasLogs842 def logs; end843end844module Selenium::WebDriver::DriverExtensions::HasNetworkConditions845 # Resets Chromium network emulation settings.846 def delete_network_conditions; end847 # Returns network conditions.848 #849 # @return [Hash]850 def network_conditions; end851 # Sets network conditions852 #853 # @option conditions854 # @option conditions855 # @option conditions856 # @option conditions857 # @option conditions858 # @param conditions [Hash]859 def network_conditions=(conditions); end860end861module Selenium::WebDriver::DriverExtensions::HasNetworkConnection862 # @raise [Error::UnsupportedOperationError]863 def network_connection_type; end864 # @raise [Error::UnsupportedOperationError]865 def network_connection_type=(*_arg0); end866end867module Selenium::WebDriver::DriverExtensions::HasNetworkInterception868 # Intercepts requests coming from browser allowing869 # to either pass them through like proxy or provide870 # a stubbed response instead.871 #872 # @example Log requests and pass through873 # driver.intercept do |request, &continue|874 # puts "#{request.method} #{request.url}"875 # continue.call(request)876 # end877 # @example Stub requests for images878 # driver.intercept do |request, &continue|879 # if request.url.match?(/\.png$/)880 # request.url = 'https://upload.wikimedia.org/wikipedia/commons/d/d5/Selenium_Logo.png'881 # end882 # continue.call(request)883 # end884 # @example Log responses and pass through885 # driver.intercept do |request, &continue|886 # continue.call(request) do |response|887 # puts "#{response.code} #{response.body}"888 # end889 # end890 # @example Mutate specific response891 # driver.intercept do |request, &continue|892 # continue.call(request) do |response|893 # response.body << 'Added by Selenium!' if request.url.include?('/myurl')894 # end895 # end896 # @param block [Proc] which is called when request is intercepted897 # @yieldparam request [DevTools::Request]898 # @yieldparam continue [Proc] block which proceeds with the request and optionally yields response899 def intercept(&block); end900 private901 def fetch_response_body(id); end902 def intercept_request(id, params, &block); end903 # @yield [mutable]904 def intercept_response(id, params); end905 def pending_response_requests; end906end907module Selenium::WebDriver::DriverExtensions::HasPermissions908 # Set one permission.909 #910 # @param name [String] which permission to set911 # @param value [String] what to set the permission to912 def add_permission(name, value); end913 # Set multiple permissions.914 #915 # @param opt [Hash] key/value pairs to set permissions916 def add_permissions(opt); end917end918module Selenium::WebDriver::DriverExtensions::HasPinnedScripts919 # Pins JavaScript snippet that is available during the whole920 # session on every page. This allows to store and call921 # scripts without sending them over the wire every time.922 #923 # @example924 # script = driver.pin_script('return window.location.href')925 # driver.execute_script(script)926 # # navigate to a new page927 # driver.execute_script(script)928 # @param script [String]929 # @return [DevTools::PinnedScript]930 def pin_script(script); end931 # Returns the list of all pinned scripts.932 #933 # @return [Array<DevTools::PinnedScript>]934 def pinned_scripts; end935 # Unpins script making it undefined for the subsequent calls.936 #937 # @param [DevTools::PinnedScript]938 def unpin_script(script); end939end940module Selenium::WebDriver::DriverExtensions::HasRemoteStatus941 def remote_status; end942end943# @api private944module Selenium::WebDriver::DriverExtensions::HasSessionId945 # @api public946 # @return [String] the session id947 def session_id; end948end949# @api private950module Selenium::WebDriver::DriverExtensions::HasWebStorage951 # @api private952 def local_storage; end953 # @api private954 def session_storage; end955end956# @api private957module Selenium::WebDriver::DriverExtensions::PrintsPage958 # Return a Base64 encoded Print Page as a string959 #960 # @api public961 # @see https://w3c.github.io/webdriver/#print-page962 def print_page(**options); end963 # Save a page as a PDF to the given path964 #965 # @api public966 # @example Save Printed Page967 # driver.save_print_page('../printed_page.pdf')968 # @param path [String] to where the pdf should be saved969 def save_print_page(path, **options); end970end971# @api private972module Selenium::WebDriver::DriverExtensions::UploadsFiles973 # Set the file detector to pass local files to a remote WebDriver.974 #975 # The detector is an object that responds to #call, and when called976 # will determine if the given string represents a file. If it does,977 # the path to the file on the local file system should be returned,978 # otherwise nil or false.979 #980 # Example:981 #982 # driver = Selenium::WebDriver.for :remote983 # driver.file_detector = lambda do |args|984 # # args => ["/path/to/file"]985 # str = args.first.to_s986 # str if File.exist?(str)987 # end988 #989 # driver.find_element(:id => "upload").send_keys "/path/to/file"990 #991 # By default, no file detection is performed.992 #993 # @api public994 # @raise [ArgumentError]995 def file_detector=(detector); end996end997module Selenium::WebDriver::Edge998 class << self999 def path; end1000 def path=(path); end1001 end1002end1003# Driver implementation for Microsoft Edge.1004#1005# @api private1006class Selenium::WebDriver::Edge::Driver < ::Selenium::WebDriver::Chrome::Driver1007 # @api private1008 def browser; end1009 private1010 # @api private1011 def devtools_address; end1012end1013module Selenium::WebDriver::Edge::Features1014 include ::Selenium::WebDriver::Chrome::Features1015 def commands(command); end1016end1017Selenium::WebDriver::Edge::Features::EDGE_COMMANDS = T.let(T.unsafe(nil), Hash)1018class Selenium::WebDriver::Edge::Options < ::Selenium::WebDriver::Chrome::Options1019 protected1020 def enable_logging(browser_options); end1021 private1022 def binary_path; end1023end1024Selenium::WebDriver::Edge::Options::BROWSER = T.let(T.unsafe(nil), String)1025Selenium::WebDriver::Edge::Options::KEY = T.let(T.unsafe(nil), String)1026# @private1027class Selenium::WebDriver::Edge::Profile < ::Selenium::WebDriver::Chrome::Profile; end1028class Selenium::WebDriver::Edge::Service < ::Selenium::WebDriver::Chrome::Service; end1029Selenium::WebDriver::Edge::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)1030Selenium::WebDriver::Edge::Service::EXECUTABLE = T.let(T.unsafe(nil), String)1031Selenium::WebDriver::Edge::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)1032Selenium::WebDriver::Edge::Service::SHUTDOWN_SUPPORTED = T.let(T.unsafe(nil), TrueClass)1033class Selenium::WebDriver::Element1034 include ::Selenium::WebDriver::SearchContext1035 include ::Selenium::WebDriver::TakesScreenshot1036 # Creates a new Element1037 #1038 # @api private1039 # @return [Element] a new instance of Element1040 def initialize(bridge, id); end1041 def ==(other); end1042 # This method attempts to provide the most likely desired current value for the attribute1043 # of the element, even when that desired value is actually a JavaScript property.1044 # It is implemented with a custom JavaScript atom. To obtain the exact value of the attribute or property,1045 # use #dom_attribute or #property methods respectively.1046 #1047 # More exactly, this method will return the value of the property with the given name,1048 # if it exists. If it does not, then the value of the attribute with the given name is returned.1049 # If neither exists, null is returned.1050 #1051 # The "style" attribute is converted as best can be to a text representation with a trailing semi-colon.1052 #1053 # The following are deemed to be "boolean" attributes, and will return either "true" or "false":1054 #1055 # async, autofocus, autoplay, checked, compact, complete, controls, declare, defaultchecked,1056 # defaultselected, defer, disabled, draggable, ended, formnovalidate, hidden, indeterminate,1057 # iscontenteditable, ismap, itemscope, loop, multiple, muted, nohref, noresize, noshade, novalidate,1058 # nowrap, open, paused, pubdate, readonly, required, reversed, scoped, seamless, seeking,1059 # selected, spellcheck, truespeed, willvalidate1060 #1061 # Finally, the following commonly mis-capitalized attribute/property names are evaluated as expected:1062 #1063 # When the value of "class" is requested, the "className" property is returned.1064 # When the value of "readonly" is requested, the "readOnly" property is returned.1065 #1066 # @param name [String] attribute name1067 # @return [String, nil] attribute value1068 # @see #dom_attribute1069 # @see #property element['class'] or element[:class] #=> "someclass"1070 def [](name); end1071 # Gets the computed WAI-ARIA label of element.1072 #1073 # @return [String]1074 def accessible_name; end1075 # element.all(class: 'bar')1076 def all(*args); end1077 # Gets the computed WAI-ARIA role of element1078 #1079 # @return [String]1080 def aria_role; end1081 # For Rails 3 - http://jonathanjulian.com/2010/04/rails-to_json-or-as_json/1082 #1083 # @api private1084 def as_json(*_arg0); end1085 # This method attempts to provide the most likely desired current value for the attribute1086 # of the element, even when that desired value is actually a JavaScript property.1087 # It is implemented with a custom JavaScript atom. To obtain the exact value of the attribute or property,1088 # use #dom_attribute or #property methods respectively.1089 #1090 # More exactly, this method will return the value of the property with the given name,1091 # if it exists. If it does not, then the value of the attribute with the given name is returned.1092 # If neither exists, null is returned.1093 #1094 # The "style" attribute is converted as best can be to a text representation with a trailing semi-colon.1095 #1096 # The following are deemed to be "boolean" attributes, and will return either "true" or "false":1097 #1098 # async, autofocus, autoplay, checked, compact, complete, controls, declare, defaultchecked,1099 # defaultselected, defer, disabled, draggable, ended, formnovalidate, hidden, indeterminate,1100 # iscontenteditable, ismap, itemscope, loop, multiple, muted, nohref, noresize, noshade, novalidate,1101 # nowrap, open, paused, pubdate, readonly, required, reversed, scoped, seamless, seeking,1102 # selected, spellcheck, truespeed, willvalidate1103 #1104 # Finally, the following commonly mis-capitalized attribute/property names are evaluated as expected:1105 #1106 # When the value of "class" is requested, the "className" property is returned.1107 # When the value of "readonly" is requested, the "readOnly" property is returned.1108 #1109 # @param name [String] attribute name1110 # @return [String, nil] attribute value1111 # @see #dom_attribute1112 # @see #property1113 def attribute(name); end1114 # If this element is a text entry element, this will clear the value. Has no effect on other1115 # elements. Text entry elements are INPUT and TEXTAREA elements.1116 #1117 # Note that the events fired by this event may not be as you'd expect. In particular, we don't1118 # fire any keyboard or mouse events. If you want to ensure keyboard events are1119 # fired, consider using #send_keys with the backspace key. To ensure you get a change event,1120 # consider following with a call to #send_keys with the tab key.1121 def clear; end1122 # Click this element. If this causes a new page to load, this method will1123 # attempt to block until the page has loaded. At this point, you should1124 # discard all references to this element and any further operations1125 # performed on this element will raise a StaleElementReferenceError1126 # unless you know that the element and the page will still be present. If1127 # click() causes a new page to be loaded via an event or is done by1128 # sending a native event then the method will *not* wait for it to be1129 # loaded and the caller should verify that a new page has been loaded.1130 #1131 # There are some preconditions for an element to be clicked. The element1132 # must be visible and it must have a height and width greater then 0.1133 #1134 # Equivalent to:1135 # driver.action.click(element)1136 #1137 # @example Click on a button1138 #1139 # driver.find_element(tag_name: "button").click1140 # @raise [StaleElementReferenceError] if the element no longer exists as1141 # defined1142 def click; end1143 # Get the value of the given CSS property1144 #1145 # Note that shorthand CSS properties (e.g. background, font, border, border-top, margin,1146 # margin-top, padding, padding-top, list-style, outline, pause, cue) are not returned,1147 # in accordance with the DOM CSS2 specification - you should directly access the longhand1148 # properties (e.g. background-color) to access the desired values.1149 #1150 # @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration1151 def css_value(prop); end1152 # Is the element displayed?1153 #1154 # @return [Boolean]1155 def displayed?; end1156 # Gets the value of a declared HTML attribute of this element.1157 #1158 # As opposed to the #attribute method, this method1159 # only returns attributes declared in the element's HTML markup.1160 #1161 # If the attribute is not set, nil is returned.1162 #1163 # @param name [String] attribute name1164 # @return [String, nil] attribute value1165 # @see #attribute1166 # @see #property1167 def dom_attribute(name); end1168 # Is the element enabled?1169 #1170 # @return [Boolean]1171 def enabled?; end1172 def eql?(other); end1173 # element.first(id: 'foo')1174 def first(*args); end1175 def hash; end1176 def inspect; end1177 # Get the location of this element.1178 #1179 # @return [WebDriver::Point]1180 def location; end1181 # Determine an element's location on the screen once it has been scrolled into view.1182 #1183 # @return [WebDriver::Point]1184 def location_once_scrolled_into_view; end1185 # Gets the value of a JavaScript property of this element1186 # This will return the current value,1187 # even if this has been modified after the page has been loaded.1188 # If the value is not set, nil is returned.1189 #1190 # @param name [String] property name1191 # @return [String, nil] property value1192 def property(name); end1193 # Get the dimensions and coordinates of this element.1194 #1195 # @return [WebDriver::Rectangle]1196 def rect; end1197 # @api private1198 # @see SearchContext1199 def ref; end1200 # Is the element selected?1201 #1202 # @return [Boolean]1203 def selected?; end1204 # Send keystrokes to this element1205 #1206 # Examples:1207 #1208 # element.send_keys "foo" #=> value: 'foo'1209 # element.send_keys "tet", :arrow_left, "s" #=> value: 'test'1210 # element.send_keys [:control, 'a'], :space #=> value: ' '1211 #1212 # @param args [String, Symbol, Array] keystrokes to send1213 # @see Keys::KEYS1214 def send_key(*args); end1215 # Send keystrokes to this element1216 #1217 # Examples:1218 #1219 # element.send_keys "foo" #=> value: 'foo'1220 # element.send_keys "tet", :arrow_left, "s" #=> value: 'test'1221 # element.send_keys [:control, 'a'], :space #=> value: ' '1222 #1223 # @param args [String, Symbol, Array] keystrokes to send1224 # @see Keys::KEYS1225 def send_keys(*args); end1226 # Returns the shadow root of an element.1227 #1228 # @return [WebDriver::ShadowRoot]1229 def shadow_root; end1230 # Get the size of this element1231 #1232 # @return [WebDriver::Dimension]1233 def size; end1234 # Get the value of the given CSS property1235 #1236 # Note that shorthand CSS properties (e.g. background, font, border, border-top, margin,1237 # margin-top, padding, padding-top, list-style, outline, pause, cue) are not returned,1238 # in accordance with the DOM CSS2 specification - you should directly access the longhand1239 # properties (e.g. background-color) to access the desired values.1240 #1241 # @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleDeclaration1242 def style(prop); end1243 # Submit this element1244 def submit; end1245 # Get the tag name of the element.1246 #1247 # @example Get the tagname of an INPUT element(returns "input")1248 #1249 # driver.find_element(xpath: "//input").tag_name1250 # @return [String] The tag name of this element.1251 def tag_name; end1252 # Get the text content of this element1253 #1254 # @return [String]1255 def text; end1256 # Convert to a WebElement JSON Object for transmission over the wire.1257 #1258 # @api private1259 # @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#basic-terms-and-concepts1260 def to_json(*_arg0); end1261 private1262 # Returns the value of attribute bridge.1263 def bridge; end1264 def screenshot; end1265 # @return [Boolean]1266 def selectable?; end1267end1268Selenium::WebDriver::Element::ELEMENT_KEY = T.let(T.unsafe(nil), String)1269module Selenium::WebDriver::Error1270 class << self1271 # Returns exception from its string representation.1272 #1273 # @param error [String, nil]1274 def for_error(error); end1275 end1276end1277# A command failed because the referenced shadow root is no longer attached to the DOM.1278class Selenium::WebDriver::Error::DetachedShadowRootError < ::Selenium::WebDriver::Error::WebDriverError; end1279# The Element Click command could not be completed because the element receiving the events1280# is obscuring the element that was requested clicked.1281class Selenium::WebDriver::Error::ElementClickInterceptedError < ::Selenium::WebDriver::Error::WebDriverError; end1282# A command could not be completed because the element is not pointer or keyboard1283# interactable.1284class Selenium::WebDriver::Error::ElementNotInteractableError < ::Selenium::WebDriver::Error::WebDriverError; end1285# A command could not be completed because TLS certificate is expired1286# or invalid.1287class Selenium::WebDriver::Error::InsecureCertificateError < ::Selenium::WebDriver::Error::WebDriverError; end1288# The arguments passed to a command are either invalid or malformed.1289class Selenium::WebDriver::Error::InvalidArgumentError < ::Selenium::WebDriver::Error::WebDriverError; end1290# An illegal attempt was made to set a cookie under a different domain than the current page.1291class Selenium::WebDriver::Error::InvalidCookieDomainError < ::Selenium::WebDriver::Error::WebDriverError; end1292# The target element is in an invalid state, rendering it impossible to interact with, for1293# example if you click a disabled element.1294class Selenium::WebDriver::Error::InvalidElementStateError < ::Selenium::WebDriver::Error::WebDriverError; end1295# Argument was an invalid selector.1296class Selenium::WebDriver::Error::InvalidSelectorError < ::Selenium::WebDriver::Error::WebDriverError; end1297# Occurs if the given session id is not in the list of active sessions, meaning the session1298# either does not exist or that it's not active.1299class Selenium::WebDriver::Error::InvalidSessionIdError < ::Selenium::WebDriver::Error::WebDriverError; end1300# An error occurred while executing JavaScript supplied by the user.1301class Selenium::WebDriver::Error::JavascriptError < ::Selenium::WebDriver::Error::WebDriverError; end1302# The target for mouse interaction is not in the browser's viewport and cannot be brought1303# into that viewport.1304class Selenium::WebDriver::Error::MoveTargetOutOfBoundsError < ::Selenium::WebDriver::Error::WebDriverError; end1305# An attempt was made to operate on a modal dialog when one was not open:1306class Selenium::WebDriver::Error::NoSuchAlertError < ::Selenium::WebDriver::Error::WebDriverError; end1307# No cookie matching the given path name was found amongst the associated cookies of the1308# current browsing context's active document.1309class Selenium::WebDriver::Error::NoSuchCookieError < ::Selenium::WebDriver::Error::WebDriverError; end1310# An element could not be located on the page using the given search parameters.1311class Selenium::WebDriver::Error::NoSuchElementError < ::Selenium::WebDriver::Error::WebDriverError; end1312# A command to switch to a frame could not be satisfied because the frame could not be found.1313class Selenium::WebDriver::Error::NoSuchFrameError < ::Selenium::WebDriver::Error::WebDriverError; end1314# The element does not have a shadow root.1315class Selenium::WebDriver::Error::NoSuchShadowRootError < ::Selenium::WebDriver::Error::WebDriverError; end1316# A command to switch to a window could not be satisfied because1317# the window could not be found.1318class Selenium::WebDriver::Error::NoSuchWindowError < ::Selenium::WebDriver::Error::WebDriverError; end1319# A script did not complete before its timeout expired.1320class Selenium::WebDriver::Error::ScriptTimeoutError < ::Selenium::WebDriver::Error::WebDriverError; end1321class Selenium::WebDriver::Error::ServerError < ::StandardError1322 # @return [ServerError] a new instance of ServerError1323 def initialize(response); end1324end1325# A new session could not be created.1326class Selenium::WebDriver::Error::SessionNotCreatedError < ::Selenium::WebDriver::Error::WebDriverError; end1327# A command failed because the referenced element is no longer attached to the DOM.1328class Selenium::WebDriver::Error::StaleElementReferenceError < ::Selenium::WebDriver::Error::WebDriverError; end1329# An operation did not complete before its timeout expired.1330class Selenium::WebDriver::Error::TimeoutError < ::Selenium::WebDriver::Error::WebDriverError; end1331# A screen capture was made impossible.1332class Selenium::WebDriver::Error::UnableToCaptureScreenError < ::Selenium::WebDriver::Error::WebDriverError; end1333# A command to set a cookie's value could not be satisfied.1334class Selenium::WebDriver::Error::UnableToSetCookieError < ::Selenium::WebDriver::Error::WebDriverError; end1335# A modal dialog was open, blocking this operation.1336class Selenium::WebDriver::Error::UnexpectedAlertOpenError < ::Selenium::WebDriver::Error::WebDriverError; end1337# A command could not be executed because the remote end is not aware of it.1338class Selenium::WebDriver::Error::UnknownCommandError < ::Selenium::WebDriver::Error::WebDriverError; end1339# An unknown error occurred in the remote end while processing the command.1340class Selenium::WebDriver::Error::UnknownError < ::Selenium::WebDriver::Error::WebDriverError; end1341# The requested command matched a known URL but did not match an method for that URL.1342class Selenium::WebDriver::Error::UnknownMethodError < ::Selenium::WebDriver::Error::WebDriverError; end1343# Indicates that a command that should have executed properly cannot be supported for some1344# reason.1345class Selenium::WebDriver::Error::UnsupportedOperationError < ::Selenium::WebDriver::Error::WebDriverError; end1346class Selenium::WebDriver::Error::WebDriverError < ::StandardError; end1347# @api private1348module Selenium::WebDriver::FileReaper1349 class << self1350 # @api private1351 def <<(file); end1352 # @api private1353 # @raise [Error::WebDriverError]1354 def reap(file); end1355 # @api private1356 def reap!; end1357 # @api private1358 def reap=(_arg0); end1359 # @api private1360 # @return [Boolean]1361 def reap?; end1362 # @api private1363 def tmp_files; end1364 end1365end1366module Selenium::WebDriver::Firefox1367 class << self1368 def driver_path; end1369 def driver_path=(path); end1370 def path; end1371 def path=(path); end1372 end1373end1374Selenium::WebDriver::Firefox::DEFAULT_ASSUME_UNTRUSTED_ISSUER = T.let(T.unsafe(nil), TrueClass)1375Selenium::WebDriver::Firefox::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)1376# Mozilla Automation Team asked to only support 851377# until WebDriver Bidi is available.1378Selenium::WebDriver::Firefox::DEVTOOLS_VERSION = T.let(T.unsafe(nil), Integer)1379# Driver implementation for Firefox using GeckoDriver.1380#1381# @api private1382class Selenium::WebDriver::Firefox::Driver < ::Selenium::WebDriver::Driver1383 # @api private1384 def browser; end1385 private1386 # @api private1387 def devtools_url; end1388 # @api private1389 def devtools_version; end1390end1391# @api private1392Selenium::WebDriver::Firefox::Driver::EXTENSIONS = T.let(T.unsafe(nil), Array)1393# @api private1394class Selenium::WebDriver::Firefox::Extension1395 # @api private1396 # @raise [Error::WebDriverError]1397 # @return [Extension] a new instance of Extension1398 def initialize(path); end1399 # @api private1400 def write_to(extensions_dir); end1401 private1402 # @api private1403 def applications_gecko_id(manifest); end1404 # @api private1405 def create_root; end1406 # @api private1407 def name_and_version(manifest); end1408 # @api private1409 def read_id(directory); end1410 # @api private1411 # @raise [Error::WebDriverError]1412 def read_id_from_install_rdf(directory); end1413 # @api private1414 def read_id_from_manifest_json(directory); end1415end1416# @api private1417Selenium::WebDriver::Firefox::Extension::NAMESPACE = T.let(T.unsafe(nil), String)1418module Selenium::WebDriver::Firefox::Features1419 def commands(command); end1420 def context; end1421 def context=(context); end1422 def full_screenshot; end1423 def install_addon(path, temporary); end1424 def uninstall_addon(id); end1425end1426Selenium::WebDriver::Firefox::Features::FIREFOX_COMMANDS = T.let(T.unsafe(nil), Hash)1427class Selenium::WebDriver::Firefox::Options < ::Selenium::WebDriver::Options1428 # Create a new Options instance, only for W3C-capable versions of Firefox.1429 #1430 # @example1431 # options = Selenium::WebDriver::Firefox::Options.new(args: ['--host=127.0.0.1'])1432 # driver = Selenium::WebDriver.for :firefox, capabilities: options1433 # @option opts1434 # @option opts1435 # @option opts1436 # @option opts1437 # @option opts1438 # @option opts1439 # @param opts [Hash] the pre-defined options to create the Firefox::Options with1440 # @return [Options] a new instance of Options1441 def initialize(log_level: T.unsafe(nil), **opts); end1442 # Add a command-line argument to use when starting Firefox.1443 #1444 # @example Start geckodriver on a specific host1445 # options = Selenium::WebDriver::Firefox::Options.new1446 # options.add_argument('--host=127.0.0.1')1447 # @param arg [String] The command-line argument to add1448 def add_argument(arg); end1449 # Add a preference that is only applied to the user profile in use.1450 #1451 # @example Set the default homepage1452 # options = Selenium::WebDriver::Firefox::Options.new1453 # options.add_preference('browser.startup.homepage', 'http://www.seleniumhq.com/')1454 # @param name [String] Key of the preference1455 # @param value [Boolean, String, Integer] Value of the preference1456 def add_preference(name, value); end1457 # Returns the value of attribute debugger_address.1458 def debugger_address; end1459 # Sets the attribute debugger_address1460 #1461 # @param value the value to set the attribute debugger_address to.1462 def debugger_address=(_arg0); end1463 # Enables mobile browser use on Android.1464 #1465 # @param package [String] The package name of the Chrome or WebView app.1466 # @param serial_number [String] The serial number of the device on which to launch the application.1467 # If not specified and multiple devices are attached, an error will be returned.1468 # @param activity [String] The fully qualified class name of the activity to be launched.1469 # @param intent_arguments [Array] Arguments to launch the intent with.1470 # @see https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions#android1471 def enable_android(package: T.unsafe(nil), serial_number: T.unsafe(nil), activity: T.unsafe(nil), intent_arguments: T.unsafe(nil)); end1472 # Run Firefox in headless mode.1473 #1474 # @example Enable headless mode1475 # options = Selenium::WebDriver::Firefox::Options.new1476 # options.headless!1477 def headless!; end1478 def log_level; end1479 def log_level=(level); end1480 # NOTE: special handling of 'profile' to validate when set instead of when used1481 def profile; end1482 # Sets Firefox profile.1483 #1484 # @example Set the custom profile1485 # profile = Selenium::WebDriver::Firefox::Profile.new1486 # options = Selenium::WebDriver::Firefox::Options.new1487 # options.profile = profile1488 # @example Use existing profile1489 # options = Selenium::WebDriver::Firefox::Options.new1490 # options.profile = 'myprofile'1491 # @param profile [Profile, String] Profile to be used1492 def profile=(profile); end1493 private1494 # @return [Boolean]1495 def camelize?(key); end1496 def process_browser_options(browser_options); end1497 def process_profile(profile); end1498end1499Selenium::WebDriver::Firefox::Options::BROWSER = T.let(T.unsafe(nil), String)1500# see: https://firefox-source-docs.mozilla.org/testing/geckodriver/Capabilities.html1501Selenium::WebDriver::Firefox::Options::CAPABILITIES = T.let(T.unsafe(nil), Hash)1502Selenium::WebDriver::Firefox::Options::KEY = T.let(T.unsafe(nil), String)1503class Selenium::WebDriver::Firefox::Profile1504 include ::Selenium::WebDriver::ProfileHelper1505 extend ::Selenium::WebDriver::ProfileHelper::ClassMethods1506 # Create a new Profile instance1507 #1508 # @example User configured profile1509 #1510 # profile = Selenium::WebDriver::Firefox::Profile.new1511 # profile['network.proxy.http'] = 'localhost'1512 # profile['network.proxy.http_port'] = 90901513 #1514 # driver = Selenium::WebDriver.for :firefox, :profile => profile1515 # @return [Profile] a new instance of Profile1516 def initialize(model = T.unsafe(nil)); end1517 # Set a preference for this particular profile.1518 #1519 # @see http://kb.mozillazine.org/About:config_entries1520 # @see http://preferential.mozdev.org/preferences.html1521 def []=(key, value); end1522 # Add the extension (directory, .zip or .xpi) at the given path to the profile.1523 def add_extension(path, name = T.unsafe(nil)); end1524 def as_json; end1525 def layout_on_disk; end1526 # Sets the attribute load_no_focus_lib1527 #1528 # @param value the value to set the attribute load_no_focus_lib to.1529 def load_no_focus_lib=(_arg0); end1530 # Returns the value of attribute log_file.1531 def log_file; end1532 def log_file=(file); end1533 # Returns the value of attribute name.1534 def name; end1535 def port=(port); end1536 # @raise [TypeError]1537 def proxy=(proxy); end1538 # Sets the attribute secure_ssl1539 #1540 # @param value the value to set the attribute secure_ssl to.1541 def secure_ssl=(_arg0); end1542 private1543 def delete_extensions_cache(directory); end1544 def delete_lock_files(directory); end1545 def extension_name_for(path); end1546 def install_extensions(directory); end1547 def read_model_prefs; end1548 def read_user_prefs(path); end1549 def set_manual_proxy_preference(key, value); end1550 # @return [Boolean]1551 def stringified?(str); end1552 def update_user_prefs_in(directory); end1553 def write_prefs(prefs, path); end1554 class << self1555 def decoded(json); end1556 # @raise [Error::WebDriverError]1557 def from_name(name); end1558 def ini; end1559 end1560end1561Selenium::WebDriver::Firefox::Profile::DEFAULT_PREFERENCES = T.let(T.unsafe(nil), Hash)1562Selenium::WebDriver::Firefox::Profile::VALID_PREFERENCE_TYPES = T.let(T.unsafe(nil), Array)1563# @api private1564class Selenium::WebDriver::Firefox::ProfilesIni1565 # @api private1566 # @return [ProfilesIni] a new instance of ProfilesIni1567 def initialize; end1568 # @api private1569 def [](name); end1570 # @api private1571 def refresh; end1572 private1573 # @api private1574 def parse; end1575 # @api private1576 def path_for(name, is_relative, path); end1577end1578class Selenium::WebDriver::Firefox::Service < ::Selenium::WebDriver::Service1579 private1580 # NOTE: This processing is deprecated1581 def extract_service_args(driver_opts); end1582end1583Selenium::WebDriver::Firefox::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)1584Selenium::WebDriver::Firefox::Service::EXECUTABLE = T.let(T.unsafe(nil), String)1585Selenium::WebDriver::Firefox::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)1586module Selenium::WebDriver::HTML5; end1587class Selenium::WebDriver::HTML5::LocalStorage1588 include ::Enumerable1589 include ::Selenium::WebDriver::HTML5::SharedWebStorage1590 # @api private1591 # @return [LocalStorage] a new instance of LocalStorage1592 def initialize(bridge); end1593 def [](key); end1594 def []=(key, value); end1595 def clear; end1596 def delete(key); end1597 def keys; end1598 def size; end1599end1600class Selenium::WebDriver::HTML5::SessionStorage1601 include ::Enumerable1602 include ::Selenium::WebDriver::HTML5::SharedWebStorage1603 # @api private1604 # @return [SessionStorage] a new instance of SessionStorage1605 def initialize(bridge); end1606 def [](key); end1607 def []=(key, value); end1608 def clear; end1609 def delete(key); end1610 def keys; end1611 def size; end1612end1613module Selenium::WebDriver::HTML5::SharedWebStorage1614 include ::Enumerable1615 def each; end1616 # @return [Boolean]1617 def empty?; end1618 # @raise [KeyError]1619 def fetch(key); end1620 # @return [Boolean]1621 def has_key?(key); end1622 # @return [Boolean]1623 def key?(key); end1624 # @return [Boolean]1625 def member?(key); end1626end1627module Selenium::WebDriver::IE1628 class << self1629 def driver_path; end1630 def driver_path=(path); end1631 end1632end1633# Driver implementation for Internet Explorer supporting1634# both OSS and W3C dialects of JSON wire protocol.1635#1636# @api private1637class Selenium::WebDriver::IE::Driver < ::Selenium::WebDriver::Driver1638 # @api private1639 def browser; end1640end1641# @api private1642Selenium::WebDriver::IE::Driver::EXTENSIONS = T.let(T.unsafe(nil), Array)1643class Selenium::WebDriver::IE::Options < ::Selenium::WebDriver::Options1644 # Create a new Options instance1645 #1646 # @example1647 # options = Selenium::WebDriver::IE::Options.new(args: ['--host=127.0.0.1'])1648 # driver = Selenium::WebDriver.for(:ie, capabilities: options)1649 # @example1650 # options = Selenium::WebDriver::IE::Options.new1651 # options.element_scroll_behavior = Selenium::WebDriver::IE::Options::SCROLL_BOTTOM1652 # driver = Selenium::WebDriver.for(:ie, capabilities: options)1653 # @option opts1654 # @option opts1655 # @option opts1656 # @option opts1657 # @option opts1658 # @option opts1659 # @option opts1660 # @option opts1661 # @option opts1662 # @option opts1663 # @option opts1664 # @option opts1665 # @option opts1666 # @option opts1667 # @option opts1668 # @option opts1669 # @param opts [Hash] the pre-defined options1670 # @return [Options] a new instance of Options1671 def initialize(**opts); end1672 # Add a command-line argument to use when starting Internet Explorer.1673 #1674 # @param arg [String] The command-line argument to add1675 def add_argument(arg); end1676 # Returns the value of attribute args.1677 def args; end1678 private1679 def process_browser_options(browser_options); end1680end1681Selenium::WebDriver::IE::Options::BROWSER = T.let(T.unsafe(nil), String)1682Selenium::WebDriver::IE::Options::CAPABILITIES = T.let(T.unsafe(nil), Hash)1683Selenium::WebDriver::IE::Options::KEY = T.let(T.unsafe(nil), String)1684Selenium::WebDriver::IE::Options::SCROLL_BOTTOM = T.let(T.unsafe(nil), Integer)1685Selenium::WebDriver::IE::Options::SCROLL_TOP = T.let(T.unsafe(nil), Integer)1686class Selenium::WebDriver::IE::Service < ::Selenium::WebDriver::Service1687 private1688 # NOTE: This processing is deprecated1689 def extract_service_args(driver_opts); end1690end1691Selenium::WebDriver::IE::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)1692Selenium::WebDriver::IE::Service::EXECUTABLE = T.let(T.unsafe(nil), String)1693Selenium::WebDriver::IE::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)1694Selenium::WebDriver::IE::Service::SHUTDOWN_SUPPORTED = T.let(T.unsafe(nil), TrueClass)1695module Selenium::WebDriver::Interactions1696 class << self1697 def key(name); end1698 def none(name = T.unsafe(nil)); end1699 def pointer(kind, **kwargs); end1700 end1701end1702class Selenium::WebDriver::Interactions::InputDevice1703 # @return [InputDevice] a new instance of InputDevice1704 def initialize(name = T.unsafe(nil)); end1705 # Returns the value of attribute actions.1706 def actions; end1707 # @raise [TypeError]1708 def add_action(action); end1709 def clear_actions; end1710 def create_pause(duration = T.unsafe(nil)); end1711 # Returns the value of attribute name.1712 def name; end1713 # Determine if only pauses are present1714 #1715 # @return [Boolean]1716 def no_actions?; end1717end1718class Selenium::WebDriver::Interactions::Interaction1719 # @return [Interaction] a new instance of Interaction1720 def initialize(source); end1721 # Returns the value of attribute source.1722 def source; end1723end1724Selenium::WebDriver::Interactions::Interaction::PAUSE = T.let(T.unsafe(nil), Symbol)1725Selenium::WebDriver::Interactions::KEY = T.let(T.unsafe(nil), Symbol)1726class Selenium::WebDriver::Interactions::KeyInput < ::Selenium::WebDriver::Interactions::InputDevice1727 def create_key_down(key); end1728 def create_key_up(key); end1729 def encode; end1730 def type; end1731end1732Selenium::WebDriver::Interactions::KeyInput::SUBTYPES = T.let(T.unsafe(nil), Hash)1733class Selenium::WebDriver::Interactions::KeyInput::TypingInteraction < ::Selenium::WebDriver::Interactions::Interaction1734 # @return [TypingInteraction] a new instance of TypingInteraction1735 def initialize(source, type, key); end1736 # @raise [TypeError]1737 def assert_type(type); end1738 def encode; end1739 # Returns the value of attribute type.1740 def type; end1741end1742Selenium::WebDriver::Interactions::NONE = T.let(T.unsafe(nil), Symbol)1743class Selenium::WebDriver::Interactions::NoneInput < ::Selenium::WebDriver::Interactions::InputDevice1744 def encode; end1745 def type; end1746end1747Selenium::WebDriver::Interactions::POINTER = T.let(T.unsafe(nil), Symbol)1748class Selenium::WebDriver::Interactions::Pause < ::Selenium::WebDriver::Interactions::Interaction1749 # @return [Pause] a new instance of Pause1750 def initialize(source, duration = T.unsafe(nil)); end1751 def encode; end1752 def type; end1753end1754# Move1755class Selenium::WebDriver::Interactions::PointerCancel < ::Selenium::WebDriver::Interactions::Interaction1756 def encode; end1757 def type; end1758end1759class Selenium::WebDriver::Interactions::PointerInput < ::Selenium::WebDriver::Interactions::InputDevice1760 # @return [PointerInput] a new instance of PointerInput1761 def initialize(kind, name: T.unsafe(nil)); end1762 # @raise [TypeError]1763 def assert_kind(pointer); end1764 def create_pointer_cancel; end1765 def create_pointer_down(button); end1766 def create_pointer_move(duration: T.unsafe(nil), x: T.unsafe(nil), y: T.unsafe(nil), element: T.unsafe(nil), origin: T.unsafe(nil)); end1767 def create_pointer_up(button); end1768 def encode; end1769 # Returns the value of attribute kind.1770 def kind; end1771 def type; end1772end1773Selenium::WebDriver::Interactions::PointerInput::KIND = T.let(T.unsafe(nil), Hash)1774# PointerPress1775class Selenium::WebDriver::Interactions::PointerMove < ::Selenium::WebDriver::Interactions::Interaction1776 # @return [PointerMove] a new instance of PointerMove1777 def initialize(source, duration, x, y, element: T.unsafe(nil), origin: T.unsafe(nil)); end1778 def encode; end1779 def type; end1780end1781Selenium::WebDriver::Interactions::PointerMove::ORIGINS = T.let(T.unsafe(nil), Array)1782Selenium::WebDriver::Interactions::PointerMove::POINTER = T.let(T.unsafe(nil), Symbol)1783Selenium::WebDriver::Interactions::PointerMove::VIEWPORT = T.let(T.unsafe(nil), Symbol)1784# PointerInput1785class Selenium::WebDriver::Interactions::PointerPress < ::Selenium::WebDriver::Interactions::Interaction1786 # @return [PointerPress] a new instance of PointerPress1787 def initialize(source, direction, button); end1788 # @raise [ArgumentError]1789 def assert_button(button); end1790 # @raise [TypeError]1791 def assert_direction(direction); end1792 def encode; end1793 def type; end1794end1795Selenium::WebDriver::Interactions::PointerPress::BUTTONS = T.let(T.unsafe(nil), Hash)1796Selenium::WebDriver::Interactions::PointerPress::DIRECTIONS = T.let(T.unsafe(nil), Hash)1797Selenium::WebDriver::Interactions::SOURCE_TYPES = T.let(T.unsafe(nil), Array)1798module Selenium::WebDriver::KeyActions1799 # Performs a key press. Does not release the key - subsequent interactions may assume it's kept pressed.1800 # Note that the key is never released implicitly - either ActionBuilder#key_up(key) or ActionBuilder#release_actions1801 # must be called to release the key.1802 #1803 # @example Press a key1804 #1805 # driver.action.key_down(:control).perform1806 # @example Press a key on an element1807 #1808 # el = driver.find_element(id: "some_id")1809 # driver.action.key_down(el, :shift).perform1810 # @overload key_down1811 # @overload key_down1812 # @return [ActionBuilder] A self reference1813 def key_down(*args, device: T.unsafe(nil)); end1814 # Performs a key release.1815 # Releasing a non-depressed key will yield undefined behaviour.1816 #1817 # @example Release a key1818 #1819 # driver.action.key_up(:shift).perform1820 # @example Release a key from an element1821 #1822 # el = driver.find_element(id: "some_id")1823 # driver.action.key_up(el, :alt).perform1824 # @overload key_up1825 # @overload key_up1826 # @return [ActionBuilder] A self reference1827 def key_up(*args, device: T.unsafe(nil)); end1828 # Sends keys to the active element. This differs from calling1829 # Element#send_keys(keys) on the active element in two ways:1830 #1831 # * The modifier keys included in this call are not released.1832 # * There is no attempt to re-focus the element - so send_keys(:tab) for switching elements should work.1833 #1834 # @example Send the text "help" to an element1835 #1836 # el = driver.find_element(id: "some_id")1837 # driver.action.send_keys(el, "help").perform1838 # @example Send the text "help" to the currently focused element1839 #1840 # driver.action.send_keys("help").perform1841 # @overload send_keys1842 # @overload send_keys1843 # @return [ActionBuilder] A self reference1844 def send_keys(*args, device: T.unsafe(nil)); end1845 private1846 # @api private1847 # @option args1848 # @option args1849 # @overload key_down1850 # @overload key_down1851 # @param args [Array]1852 # @param action [Symbol] The name of the key action to perform1853 # @param device [Symbol, String] optional name of the KeyInput device to press the key on1854 # @return [ActionBuilder] A self reference1855 def key_action(*args, action: T.unsafe(nil), device: T.unsafe(nil)); end1856end1857module Selenium::WebDriver::Keys1858 class << self1859 # @api private1860 # @raise [Error::UnsupportedOperationError]1861 def [](key); end1862 # @api private1863 def encode(keys); end1864 # @api private1865 def encode_key(key); end1866 end1867end1868# @see Element#send_keys1869# @see http://www.google.com.au/search?&q=unicode+pua&btnK=Search1870Selenium::WebDriver::Keys::KEYS = T.let(T.unsafe(nil), Hash)1871class Selenium::WebDriver::Location < ::Struct1872 # Returns the value of attribute altitude1873 #1874 # @return [Object] the current value of altitude1875 def altitude; end1876 # Sets the attribute altitude1877 #1878 # @param value [Object] the value to set the attribute altitude to.1879 # @return [Object] the newly set value1880 def altitude=(_); end1881 # Returns the value of attribute latitude1882 #1883 # @return [Object] the current value of latitude1884 def latitude; end1885 # Sets the attribute latitude1886 #1887 # @param value [Object] the value to set the attribute latitude to.1888 # @return [Object] the newly set value1889 def latitude=(_); end1890 # Returns the value of attribute longitude1891 #1892 # @return [Object] the current value of longitude1893 def longitude; end1894 # Sets the attribute longitude1895 #1896 # @param value [Object] the value to set the attribute longitude to.1897 # @return [Object] the newly set value1898 def longitude=(_); end1899 class << self1900 def [](*_arg0); end1901 def inspect; end1902 def keyword_init?; end1903 def members; end1904 def new(*_arg0); end1905 end1906end1907class Selenium::WebDriver::LogEntry1908 # @return [LogEntry] a new instance of LogEntry1909 def initialize(level, timestamp, message); end1910 def as_json(*_arg0); end1911 # Returns the value of attribute level.1912 def level; end1913 # Returns the value of attribute message.1914 def message; end1915 def time; end1916 # Returns the value of attribute timestamp.1917 def timestamp; end1918 def to_s; end1919end1920# @example Enable full logging1921# Selenium::WebDriver.logger.level = :debug1922# @example Log to file1923# Selenium::WebDriver.logger.output = 'selenium.log'1924# @example Use logger manually1925# Selenium::WebDriver.logger.info('This is info message')1926# Selenium::WebDriver.logger.warn('This is warning message')1927class Selenium::WebDriver::Logger1928 extend ::Forwardable1929 # @param progname [String] Allow child projects to use Selenium's Logger pattern1930 # @return [Logger] a new instance of Logger1931 def initialize(progname = T.unsafe(nil)); end1932 def close(*args, **_arg1, &block); end1933 def debug(*args, **_arg1, &block); end1934 def debug?(*args, **_arg1, &block); end1935 # Marks code as deprecated with/without replacement.1936 #1937 # @param old [String]1938 # @param new [String, nil]1939 # @param id [Symbol, Array<Symbol>]1940 # @param reference [String]1941 # @yield appends additional message to end of provided template1942 def deprecate(old, new = T.unsafe(nil), id: T.unsafe(nil), reference: T.unsafe(nil), &block); end1943 def error(*args, **_arg1, &block); end1944 def error?(*args, **_arg1, &block); end1945 def fatal(*args, **_arg1, &block); end1946 def fatal?(*args, **_arg1, &block); end1947 # Will not log the provided ID.1948 #1949 # @param id [Array, Symbol]1950 def ignore(id); end1951 def info(*args, **_arg1, &block); end1952 def info?(*args, **_arg1, &block); end1953 # Returns IO object used by logger internally.1954 #1955 # Normally, we would have never needed it, but we want to1956 # use it as IO object for all child processes to ensure their1957 # output is redirected there.1958 #1959 # It is only used in debug level, in other cases output is suppressed.1960 #1961 # @api private1962 def io; end1963 def level(*args, **_arg1, &block); end1964 def level=(*args, **_arg1, &block); end1965 # Changes logger output to a new IO.1966 #1967 # @param io [String]1968 def output=(io); end1969 # Overrides default #warn to skip ignored messages by provided id1970 #1971 # @param message [String]1972 # @param id [Symbol, Array<Sybmol>]1973 # @yield see #deprecate1974 def warn(message, id: T.unsafe(nil)); end1975 def warn?(*args, **_arg1, &block); end1976 private1977 def create_logger(name); end1978 def default_level; end1979end1980class Selenium::WebDriver::Logs1981 # @api private1982 # @return [Logs] a new instance of Logs1983 def initialize(bridge); end1984 def available_types; end1985 def get(type); end1986end1987class Selenium::WebDriver::Manager1988 # @api private1989 # @return [Manager] a new instance of Manager1990 def initialize(bridge); end1991 # Add a cookie to the browser1992 #1993 # @option opts1994 # @option opts1995 # @option opts1996 # @option opts1997 # @option opts1998 # @option opts1999 # @param opts [Hash] the options to create a cookie with.2000 # @raise [ArgumentError] if :name or :value is not specified2001 def add_cookie(opts = T.unsafe(nil)); end2002 # Get all cookies2003 #2004 # @return [Array<Hash>] list of cookies2005 def all_cookies; end2006 # Get the cookie with the given name2007 #2008 # @param name [String] the name of the cookie2009 # @return [Hash, nil] the cookie, or nil if it wasn't found.2010 def cookie_named(name); end2011 # Delete all cookies2012 def delete_all_cookies; end2013 # Delete the cookie with the given name2014 #2015 # @param name [String] the name of the cookie to delete2016 def delete_cookie(name); end2017 def logs; end2018 # @param type [Symbol] Supports two values: :tab and :window.2019 # @return [String] The value of the window handle2020 def new_window(type = T.unsafe(nil)); end2021 def timeouts; end2022 def window; end2023 private2024 def convert_cookie(cookie); end2025 def datetime_at(int); end2026 def seconds_from(obj); end2027 def strip_port(str); end2028end2029Selenium::WebDriver::Manager::SECONDS_PER_DAY = T.let(T.unsafe(nil), Float)2030class Selenium::WebDriver::Navigation2031 # @return [Navigation] a new instance of Navigation2032 def initialize(bridge); end2033 # Move back a single entry in the browser's history.2034 def back; end2035 # Move forward a single entry in the browser's history.2036 def forward; end2037 # Refresh the current page.2038 def refresh; end2039 # Navigate to the given URL2040 def to(url); end2041end2042class Selenium::WebDriver::Options2043 # @return [Options] a new instance of Options2044 def initialize(options: T.unsafe(nil), **opts); end2045 def ==(other); end2046 # Add a new option not yet handled by bindings.2047 #2048 # @example Leave Chrome open when chromedriver is killed2049 # options = Selenium::WebDriver::Chrome::Options.new2050 # options.add_option(:detach, true)2051 # @param name [String, Symbol] Name of the option2052 # @param value [Boolean, String, Integer] Value of the option2053 def add_option(name, value = T.unsafe(nil)); end2054 # @api private2055 def as_json(*_arg0); end2056 def eql?(other); end2057 # Returns the value of attribute options.2058 def options; end2059 # Sets the attribute options2060 #2061 # @param value the value to set the attribute options to.2062 def options=(_arg0); end2063 private2064 def camel_case(str); end2065 # @return [Boolean]2066 def camelize?(_key); end2067 # @raise [TypeError]2068 def convert_json_key(key, camelize: T.unsafe(nil)); end2069 def generate_as_json(value, camelize_keys: T.unsafe(nil)); end2070 def process_browser_options(_browser_options); end2071 def process_json_hash(value, camelize_keys); end2072 def process_w3c_options(options); end2073 # @return [Boolean]2074 def w3c?(key); end2075 class << self2076 def chrome(**opts); end2077 # Returns the value of attribute driver_path.2078 def driver_path; end2079 def edge(**opts); end2080 def firefox(**opts); end2081 def ie(**opts); end2082 def internet_explorer(**opts); end2083 def microsoftedge(**opts); end2084 def safari(**opts); end2085 def set_capabilities; end2086 end2087end2088Selenium::WebDriver::Options::W3C_OPTIONS = T.let(T.unsafe(nil), Array)2089# @api private2090module Selenium::WebDriver::Platform2091 private2092 # @api private2093 def assert_executable(path); end2094 # @api private2095 def assert_file(path); end2096 # @api private2097 def bitsize; end2098 # @api private2099 def ci; end2100 # @api private2101 def cygwin?; end2102 # @api private2103 def cygwin_path(path, **opts); end2104 # @api private2105 def engine; end2106 # @api private2107 def exit_hook; end2108 # @api private2109 def find_binary(*binary_names); end2110 # @api private2111 def find_in_program_files(*binary_names); end2112 # @api private2113 def home; end2114 # @api private2115 def interfaces; end2116 # @api private2117 def ip; end2118 # @api private2119 def jruby?; end2120 # @api private2121 def linux?; end2122 # @api private2123 def localhost; end2124 # @api private2125 def mac?; end2126 # @api private2127 def make_writable(file); end2128 # @api private2129 def null_device; end2130 # @api private2131 def os; end2132 # @api private2133 def ruby_version; end2134 # @api private2135 def unix_path(path); end2136 # @api private2137 def windows?; end2138 # @api private2139 def windows_path(path); end2140 # @api private2141 def wrap_in_quotes_if_necessary(str); end2142 # @api private2143 def wsl?; end2144 class << self2145 # @api private2146 # @raise [Error::WebDriverError]2147 def assert_executable(path); end2148 # @api private2149 # @raise [Error::WebDriverError]2150 def assert_file(path); end2151 # @api private2152 def bitsize; end2153 # @api private2154 def ci; end2155 # @api private2156 # @return [Boolean]2157 def cygwin?; end2158 # @api private2159 def cygwin_path(path, **opts); end2160 # @api private2161 def engine; end2162 # @api private2163 def exit_hook; end2164 # @api private2165 def find_binary(*binary_names); end2166 # @api private2167 def find_in_program_files(*binary_names); end2168 # @api private2169 def home; end2170 # @api private2171 def interfaces; end2172 # @api private2173 def ip; end2174 # @api private2175 # @return [Boolean]2176 def jruby?; end2177 # @api private2178 # @return [Boolean]2179 def linux?; end2180 # @api private2181 # @raise [Error::WebDriverError]2182 def localhost; end2183 # @api private2184 # @return [Boolean]2185 def mac?; end2186 # @api private2187 def make_writable(file); end2188 # @api private2189 def null_device; end2190 # @api private2191 def os; end2192 # @api private2193 def ruby_version; end2194 # @api private2195 def unix_path(path); end2196 # @api private2197 # @return [Boolean]2198 def windows?; end2199 # @api private2200 def windows_path(path); end2201 # @api private2202 def wrap_in_quotes_if_necessary(str); end2203 # @api private2204 # @return [Boolean]2205 def wsl?; end2206 end2207end2208class Selenium::WebDriver::Point < ::Struct2209 # Returns the value of attribute x2210 #2211 # @return [Object] the current value of x2212 def x; end2213 # Sets the attribute x2214 #2215 # @param value [Object] the value to set the attribute x to.2216 # @return [Object] the newly set value2217 def x=(_); end2218 # Returns the value of attribute y2219 #2220 # @return [Object] the current value of y2221 def y; end2222 # Sets the attribute y2223 #2224 # @param value [Object] the value to set the attribute y to.2225 # @return [Object] the newly set value2226 def y=(_); end2227 class << self2228 def [](*_arg0); end2229 def inspect; end2230 def keyword_init?; end2231 def members; end2232 def new(*_arg0); end2233 end2234end2235module Selenium::WebDriver::PointerActions2236 # Clicks in the middle of the given element. Equivalent to:2237 #2238 # driver.action.move_to(element).click2239 #2240 # When no element is passed, the current mouse position will be clicked.2241 #2242 # @example Clicking on an element2243 #2244 # el = driver.find_element(id: "some_id")2245 # driver.action.click(el).perform2246 # @example Clicking at the current mouse position2247 #2248 # driver.action.click.perform2249 # @param element [Selenium::WebDriver::Element] An optional element to click.2250 # @param device [Symbol || String] optional name of the PointerInput device with the button2251 # that will be clicked2252 # @return [ActionBuilder] A self reference.2253 def click(element = T.unsafe(nil), device: T.unsafe(nil)); end2254 # Clicks (without releasing) in the middle of the given element. This is2255 # equivalent to:2256 #2257 # driver.action.move_to(element).click_and_hold2258 #2259 # @example Clicking and holding on some element2260 #2261 # el = driver.find_element(id: "some_id")2262 # driver.action.click_and_hold(el).perform2263 # @param element [Selenium::WebDriver::Element] the element to move to and click.2264 # @param device [Symbol || String] optional name of the PointerInput device to click with2265 # @return [ActionBuilder] A self reference.2266 def click_and_hold(element = T.unsafe(nil), device: T.unsafe(nil)); end2267 # Performs a context-click at middle of the given element. First performs2268 # a move_to to the location of the element.2269 #2270 # When no element is passed, the current mouse position will be context-clicked.2271 #2272 # @example Context-click at middle of given element2273 #2274 # el = driver.find_element(id: "some_id")2275 # driver.action.context_click(el).perform2276 # @example Context-clicking at the current mouse position2277 #2278 # driver.action.context_click.perform2279 # @param element [Selenium::WebDriver::Element] An element to context click.2280 # @param device [Symbol || String] optional name of the PointerInput device with the button2281 # that will be context-clicked2282 # @return [ActionBuilder] A self reference.2283 def context_click(element = T.unsafe(nil), device: T.unsafe(nil)); end2284 # The overridable duration for movement used by methods in this module2285 def default_move_duration; end2286 # Sets the attribute default_move_duration2287 #2288 # @param value the value to set the attribute default_move_duration to.2289 def default_move_duration=(_arg0); end2290 # Performs a double-click at middle of the given element. Equivalent to:2291 #2292 # driver.action.move_to(element).double_click2293 #2294 # When no element is passed, the current mouse position will be double-clicked.2295 #2296 # @example Double-click an element2297 #2298 # el = driver.find_element(id: "some_id")2299 # driver.action.double_click(el).perform2300 # @example Double-clicking at the current mouse position2301 #2302 # driver.action.double_click.perform2303 # @param element [Selenium::WebDriver::Element] An optional element to move to.2304 # @param device [Symbol || String] optional name of the PointerInput device with the button2305 # that will be double-clicked2306 # @return [ActionBuilder] A self reference.2307 def double_click(element = T.unsafe(nil), device: T.unsafe(nil)); end2308 # A convenience method that performs click-and-hold at the location of the2309 # source element, moves to the location of the target element, then2310 # releases the mouse.2311 #2312 # @example Drag and drop one element onto another2313 #2314 # el1 = driver.find_element(id: "some_id1")2315 # el2 = driver.find_element(id: "some_id2")2316 # driver.action.drag_and_drop(el1, el2).perform2317 # @param source [Selenium::WebDriver::Element] element to emulate button down at.2318 # @param target [Selenium::WebDriver::Element] element to move to and release the2319 # mouse at.2320 # @param device [Symbol || String] optional name of the PointerInput device with the button2321 # that will perform the drag and drop2322 # @return [ActionBuilder] A self reference.2323 def drag_and_drop(source, target, device: T.unsafe(nil)); end2324 # A convenience method that performs click-and-hold at the location of2325 # the source element, moves by a given offset, then releases the mouse.2326 #2327 # @example Drag and drop an element by offset2328 #2329 # el = driver.find_element(id: "some_id1")2330 # driver.action.drag_and_drop_by(el, 100, 100).perform2331 # @param source [Selenium::WebDriver::Element] Element to emulate button down at.2332 # @param right_by [Integer] horizontal move offset.2333 # @param down_by [Integer] vertical move offset.2334 # @param device [Symbol || String] optional name of the PointerInput device with the button2335 # that will perform the drag and drop2336 # @return [ActionBuilder] A self reference.2337 def drag_and_drop_by(source, right_by, down_by, device: T.unsafe(nil)); end2338 # Moves the mouse from its current position by the given offset.2339 # If the coordinates provided are outside the viewport (the mouse will2340 # end up outside the browser window) then the viewport is scrolled to2341 # match.2342 #2343 # @example Move the mouse to a certain offset from its current position2344 #2345 # driver.action.move_by(100, 100).perform2346 # @param right_by [Integer] horizontal offset. A negative value means moving the mouse left.2347 # @param down_by [Integer] vertical offset. A negative value means moving the mouse up.2348 # @param device [Symbol || String] optional name of the PointerInput device to move2349 # @raise [MoveTargetOutOfBoundsError] if the provided offset is outside the document's boundaries.2350 # @return [ActionBuilder] A self reference.2351 def move_by(right_by, down_by, device: T.unsafe(nil)); end2352 # Moves the mouse to the middle of the given element. The element is scrolled into2353 # view and its location is calculated using getBoundingClientRect. Then the2354 # mouse is moved to optional offset coordinates from the element.2355 #2356 # This is adapted to be backward compatible from non- actions. calculates offset from the center point2357 # of the element2358 #2359 # Note that when using offsets, both coordinates need to be passed.2360 #2361 # @example Scroll element into view and move the mouse to it2362 #2363 # el = driver.find_element(id: "some_id")2364 # driver.action.move_to(el).perform2365 # @example2366 #2367 # el = driver.find_element(id: "some_id")2368 # driver.action.move_to(el, 100, 100).perform2369 # @param element [Selenium::WebDriver::Element] to move to.2370 # @param right_by [Integer] Optional offset from the top-left corner. A negative value means2371 # coordinates to the left of the element.2372 # @param down_by [Integer] Optional offset from the top-left corner. A negative value means2373 # coordinates above the element.2374 # @param device [Symbol || String] optional name of the PointerInput device to move.2375 # @return [ActionBuilder] A self reference.2376 def move_to(element, right_by = T.unsafe(nil), down_by = T.unsafe(nil), device: T.unsafe(nil)); end2377 # Moves the mouse to a given location in the viewport.2378 # If the coordinates provided are outside the viewport (the mouse will2379 # end up outside the browser window) then the viewport is scrolled to2380 # match.2381 #2382 # @example Move the mouse to a certain position in the viewport2383 #2384 # driver.action.move_to_location(100, 100).perform2385 # @param x [Integer] horizontal position. Equivalent to a css 'left' value.2386 # @param y [Integer] vertical position. Equivalent to a css 'top' value.2387 # @param device [Symbol || String] optional name of the PointerInput device to move2388 # @raise [MoveTargetOutOfBoundsError] if the provided x or y value is outside the document's boundaries.2389 # @return [ActionBuilder] A self reference.2390 def move_to_location(x, y, device: T.unsafe(nil)); end2391 # Presses (without releasing) at the current location of the PointerInput device. This is equivalent to:2392 #2393 # driver.action.click_and_hold(nil)2394 #2395 # @example Clicking and holding at the current location2396 #2397 # driver.action.pointer_down(:left).perform2398 # @param button [Selenium::WebDriver::Interactions::PointerPress::BUTTONS] the button to press.2399 # @param device [Symbol || String] optional name of the PointerInput device with the button2400 # that will be pressed2401 # @return [ActionBuilder] A self reference.2402 def pointer_down(button, device: T.unsafe(nil)); end2403 # Releases the pressed mouse button at the current mouse location of the PointerInput device.2404 #2405 # @example Releasing a button after clicking and holding2406 #2407 # driver.action.pointer_down(:left).pointer_up(:left).perform2408 # @param button [Selenium::WebDriver::Interactions::PointerPress::BUTTONS] the button to release.2409 # @param device [Symbol || String] optional name of the PointerInput device with the button that will2410 # be released2411 # @return [ActionBuilder] A self reference.2412 def pointer_up(button, device: T.unsafe(nil)); end2413 # Releases the depressed left mouse button at the current mouse location.2414 #2415 # @example Releasing an element after clicking and holding it2416 #2417 # el = driver.find_element(id: "some_id")2418 # driver.action.click_and_hold(el).release.perform2419 # @param device [Symbol || String] optional name of the PointerInput device with the button2420 # that will be released2421 # @return [ActionBuilder] A self reference.2422 def release(device: T.unsafe(nil)); end2423 private2424 def button_action(button, action: T.unsafe(nil), device: T.unsafe(nil)); end2425 def get_pointer(device = T.unsafe(nil)); end2426end2427class Selenium::WebDriver::PortProber2428 class << self2429 def above(port); end2430 # @return [Boolean]2431 def free?(port); end2432 end2433end2434Selenium::WebDriver::PortProber::IGNORED_ERRORS = T.let(T.unsafe(nil), Array)2435# Common methods for Chrome::Profile and Firefox::Profile2436# Includers must implement #layout_on_disk2437#2438# @api private2439module Selenium::WebDriver::ProfileHelper2440 mixes_in_class_methods ::Selenium::WebDriver::ProfileHelper::ClassMethods2441 # @api private2442 def as_json(*_arg0); end2443 # @api private2444 def encoded; end2445 # @api private2446 def to_json(*_arg0); end2447 private2448 # @api private2449 def create_tmp_copy(directory); end2450 # @api private2451 # @raise [Errno::ENOENT]2452 def verify_model(model); end2453 class << self2454 # @api private2455 def decoded(json); end2456 # @api private2457 # @private2458 def included(base); end2459 end2460end2461# @api private2462module Selenium::WebDriver::ProfileHelper::ClassMethods2463 # @api private2464 def from_json(json); end2465end2466class Selenium::WebDriver::Proxy2467 # @raise [ArgumentError]2468 # @return [Proxy] a new instance of Proxy2469 def initialize(opts = T.unsafe(nil)); end2470 def ==(other); end2471 def as_json(*_arg0); end2472 def auto_detect; end2473 def auto_detect=(bool); end2474 def eql?(other); end2475 def ftp; end2476 def ftp=(value); end2477 def http; end2478 def http=(value); end2479 def no_proxy; end2480 def no_proxy=(value); end2481 def pac; end2482 def pac=(url); end2483 def socks; end2484 def socks=(value); end2485 def socks_password; end2486 def socks_password=(value); end2487 def socks_username; end2488 def socks_username=(value); end2489 def socks_version; end2490 def socks_version=(value); end2491 def ssl; end2492 def ssl=(value); end2493 def to_json(*_arg0); end2494 def type; end2495 def type=(type); end2496 class << self2497 def json_create(data); end2498 end2499end2500Selenium::WebDriver::Proxy::ALLOWED = T.let(T.unsafe(nil), Hash)2501Selenium::WebDriver::Proxy::TYPES = T.let(T.unsafe(nil), Hash)2502class Selenium::WebDriver::Rectangle < ::Struct2503 # Returns the value of attribute height2504 #2505 # @return [Object] the current value of height2506 def height; end2507 # Sets the attribute height2508 #2509 # @param value [Object] the value to set the attribute height to.2510 # @return [Object] the newly set value2511 def height=(_); end2512 # Returns the value of attribute width2513 #2514 # @return [Object] the current value of width2515 def width; end2516 # Sets the attribute width2517 #2518 # @param value [Object] the value to set the attribute width to.2519 # @return [Object] the newly set value2520 def width=(_); end2521 # Returns the value of attribute x2522 #2523 # @return [Object] the current value of x2524 def x; end2525 # Sets the attribute x2526 #2527 # @param value [Object] the value to set the attribute x to.2528 # @return [Object] the newly set value2529 def x=(_); end2530 # Returns the value of attribute y2531 #2532 # @return [Object] the current value of y2533 def y; end2534 # Sets the attribute y2535 #2536 # @param value [Object] the value to set the attribute y to.2537 # @return [Object] the newly set value2538 def y=(_); end2539 class << self2540 def [](*_arg0); end2541 def inspect; end2542 def keyword_init?; end2543 def members; end2544 def new(*_arg0); end2545 end2546end2547module Selenium::WebDriver::Remote; end2548# https://w3c.github.io/webdriver/#endpoints2549#2550# @api private2551class Selenium::WebDriver::Remote::Bridge2552 include ::Selenium::WebDriver::Atoms2553 # Initializes the bridge with the given server URL2554 #2555 # @api private2556 # @param :url [String, URI] url for the remote server2557 # @param :http_client [Object] an HTTP client instance that implements the same protocol as Http::Default2558 # @return [Bridge] a new instance of Bridge2559 def initialize(url:, http_client: T.unsafe(nil)); end2560 # alerts2561 def accept_alert; end2562 # actions2563 def action(async = T.unsafe(nil)); end2564 # actions2565 def actions(async = T.unsafe(nil)); end2566 # finding elements2567 def active_element; end2568 def add_cookie(cookie); end2569 def alert=(keys); end2570 def alert_text; end2571 def browser; end2572 # Returns the value of attribute capabilities.2573 def capabilities; end2574 def clear_element(element); end2575 def clear_local_storage; end2576 def clear_session_storage; end2577 def click_element(element); end2578 def close; end2579 def cookie(name); end2580 def cookies; end2581 # Creates session.2582 #2583 # @raise [Error::WebDriverError]2584 def create_session(capabilities); end2585 def delete_all_cookies; end2586 def delete_cookie(name); end2587 def dismiss_alert; end2588 def element_aria_label(element); end2589 def element_aria_role(element); end2590 def element_attribute(element, name); end2591 # @return [Boolean]2592 def element_displayed?(element); end2593 def element_dom_attribute(element, name); end2594 # @return [Boolean]2595 def element_enabled?(element); end2596 def element_location(element); end2597 def element_location_once_scrolled_into_view(element); end2598 def element_property(element, name); end2599 def element_rect(element); end2600 def element_screenshot(element); end2601 # @return [Boolean]2602 def element_selected?(element); end2603 def element_size(element); end2604 # element properties2605 def element_tag_name(element); end2606 def element_text(element); end2607 def element_value(element); end2608 def element_value_of_css_property(element, prop); end2609 def execute_async_script(script, *args); end2610 # javascript execution2611 def execute_script(script, *args); end2612 # Returns the value of attribute file_detector.2613 def file_detector; end2614 # Sets the attribute file_detector2615 #2616 # @param value the value to set the attribute file_detector to.2617 def file_detector=(_arg0); end2618 def find_element_by(how, what, parent_ref = T.unsafe(nil)); end2619 def find_elements_by(how, what, parent_ref = T.unsafe(nil)); end2620 def full_screen_window; end2621 def get(url); end2622 # navigation2623 def go_back; end2624 def go_forward; end2625 # Returns the value of attribute http.2626 def http; end2627 # Sets the attribute http2628 #2629 # @param value the value to set the attribute http to.2630 def http=(_arg0); end2631 # @raise [Error::UnsupportedOperationError]2632 def keyboard; end2633 # HTML 52634 def local_storage_item(key, value = T.unsafe(nil)); end2635 def local_storage_keys; end2636 def local_storage_size; end2637 # cookies2638 def manage; end2639 def maximize_window(handle = T.unsafe(nil)); end2640 def minimize_window; end2641 # @raise [Error::UnsupportedOperationError]2642 def mouse; end2643 # Create a new top-level browsing context2644 # https://w3c.github.io/webdriver/#new-window2645 #2646 # @param type [String] Supports two values: 'tab' and 'window'.2647 # Use 'tab' if you'd like the new window to share an OS-level window2648 # with the current browsing context.2649 # Use 'window' otherwise2650 # @return [Hash] Containing 'handle' with the value of the window handle2651 # and 'type' with the value of the created window type2652 def new_window(type); end2653 def page_source; end2654 def print_page(options = T.unsafe(nil)); end2655 def quit; end2656 def refresh; end2657 def release_actions; end2658 def remove_local_storage_item(key); end2659 def remove_session_storage_item(key); end2660 def reposition_window(x, y); end2661 # @raise [Error::WebDriverError]2662 def resize_window(width, height, handle = T.unsafe(nil)); end2663 def screenshot; end2664 def send_actions(data); end2665 def send_keys_to_element(element, keys); end2666 # Returns the current session ID.2667 def session_id; end2668 def session_storage_item(key, value = T.unsafe(nil)); end2669 def session_storage_keys; end2670 def session_storage_size; end2671 def set_window_rect(x: T.unsafe(nil), y: T.unsafe(nil), width: T.unsafe(nil), height: T.unsafe(nil)); end2672 def shadow_root(element); end2673 def status; end2674 def submit_element(element); end2675 # finding elements2676 def switch_to_active_element; end2677 def switch_to_default_content; end2678 def switch_to_frame(id); end...

Full Screen

Full Screen

selenium-webdriver@3.142.7.rbi

Source:selenium-webdriver@3.142.7.rbi Github

copy

Full Screen

...144class Selenium::WebDriver::Driver145 include ::Selenium::WebDriver::SearchContext146 def initialize(bridge, listener: T.unsafe(nil)); end147 def [](sel); end148 def action; end149 def all(*args); end150 def browser; end151 def capabilities; end152 def close; end153 def current_url; end154 def execute_async_script(script, *args); end155 def execute_script(script, *args); end156 def first(*args); end157 def get(url); end158 def inspect; end159 def keyboard; end160 def manage; end161 def mouse; end162 def navigate; end163 def page_source; end164 def quit; end165 def ref; end166 def script(script, *args); end167 def switch_to; end168 def title; end169 def window_handle; end170 def window_handles; end171 private172 def bridge; end173 def service_url(opts); end174 class << self175 def for(browser, opts = T.unsafe(nil)); end176 end177end178module Selenium::WebDriver::DriverExtensions; end179module Selenium::WebDriver::DriverExtensions::DownloadsFiles180 def download_path=(path); end181end182module Selenium::WebDriver::DriverExtensions::HasAddons183 def install_addon(path, temporary = T.unsafe(nil)); end184 def uninstall_addon(id); end185end186module Selenium::WebDriver::DriverExtensions::HasDebugger187 def attach_debugger; end188end189module Selenium::WebDriver::DriverExtensions::HasLocation190 def location; end191 def location=(loc); end192 def set_location(lat, lon, alt); end193end194module Selenium::WebDriver::DriverExtensions::HasNetworkConditions195 def network_conditions; end196 def network_conditions=(conditions); end197end198module Selenium::WebDriver::DriverExtensions::HasNetworkConnection199 def network_connection_type; end200 def network_connection_type=(connection_type); end201 private202 def type_to_values; end203 def valid_type?(type); end204 def values_to_type; end205end206module Selenium::WebDriver::DriverExtensions::HasPermissions207 def permissions; end208 def permissions=(permissions); end209end210module Selenium::WebDriver::DriverExtensions::HasRemoteStatus211 def remote_status; end212end213module Selenium::WebDriver::DriverExtensions::HasSessionId214 def session_id; end215end216module Selenium::WebDriver::DriverExtensions::HasTouchScreen217 def touch; end218 private219 def touch_screen; end220end221module Selenium::WebDriver::DriverExtensions::HasWebStorage222 def local_storage; end223 def session_storage; end224end225module Selenium::WebDriver::DriverExtensions::Rotatable226 def orientation; end227 def rotate(orientation); end228 def rotation=(orientation); end229end230Selenium::WebDriver::DriverExtensions::Rotatable::ORIENTATIONS = T.let(T.unsafe(nil), Array)231module Selenium::WebDriver::DriverExtensions::TakesScreenshot232 def save_screenshot(png_path); end233 def screenshot_as(format); end234end235module Selenium::WebDriver::DriverExtensions::UploadsFiles236 def file_detector=(detector); end237end238module Selenium::WebDriver::Edge239 class << self240 def driver_path; end241 def driver_path=(path); end242 end243end244module Selenium::WebDriver::Edge::Bridge245 def commands(command); end246 def maximize_window(handle = T.unsafe(nil)); end247 def reposition_window(x, y, handle = T.unsafe(nil)); end248 def resize_window(width, height, handle = T.unsafe(nil)); end249 def send_keys_to_active_element(key); end250 def window_handle; end251 def window_position(handle = T.unsafe(nil)); end252 def window_size(handle = T.unsafe(nil)); end253end254class Selenium::WebDriver::Edge::Driver < ::Selenium::WebDriver::Driver255 include ::Selenium::WebDriver::DriverExtensions::TakesScreenshot256 def initialize(opts = T.unsafe(nil)); end257 def browser; end258 def quit; end259end260class Selenium::WebDriver::Edge::Options261 def initialize(**opts); end262 def add_extension_path(path); end263 def as_json(*_arg0); end264 def extension_paths; end265 def in_private; end266 def in_private=(_arg0); end267 def start_page; end268 def start_page=(_arg0); end269end270class Selenium::WebDriver::Edge::Service < ::Selenium::WebDriver::Service271 private272 def extract_service_args(driver_opts); end273end274class Selenium::WebDriver::Element275 include ::Selenium::WebDriver::SearchContext276 def initialize(bridge, id); end277 def ==(other); end278 def [](name); end279 def all(*args); end280 def as_json(*_arg0); end281 def attribute(name); end282 def clear; end283 def click; end284 def css_value(prop); end285 def displayed?; end286 def enabled?; end287 def eql?(other); end288 def first(*args); end289 def hash; end290 def inspect; end291 def location; end292 def location_once_scrolled_into_view; end293 def property(name); end294 def rect; end295 def ref; end296 def selected?; end297 def send_key(*args); end298 def send_keys(*args); end299 def size; end300 def style(prop); end301 def submit; end302 def tag_name; end303 def text; end304 def to_json(*_arg0); end305 private306 def bridge; end307 def selectable?; end308end309module Selenium::WebDriver::Error310 class << self311 def const_missing(const_name); end312 def for_code(code); end313 end314end315Selenium::WebDriver::Error::DEPRECATED_ERRORS = T.let(T.unsafe(nil), Hash)316Selenium::WebDriver::Error::ERRORS = T.let(T.unsafe(nil), Hash)317class Selenium::WebDriver::Error::ElementClickInterceptedError < ::Selenium::WebDriver::Error::WebDriverError; end318Selenium::WebDriver::Error::ElementNotDisplayedError = Selenium::WebDriver::Error::ElementNotInteractableError319class Selenium::WebDriver::Error::ElementNotInteractableError < ::Selenium::WebDriver::Error::WebDriverError; end320Selenium::WebDriver::Error::ElementNotSelectableError = Selenium::WebDriver::Error::ElementNotInteractableError321Selenium::WebDriver::Error::ElementNotVisibleError = Selenium::WebDriver::Error::ElementNotInteractableError322Selenium::WebDriver::Error::ExpectedError = Selenium::WebDriver::Error::WebDriverError323Selenium::WebDriver::Error::IMEEngineActivationFailedError = Selenium::WebDriver::Error::WebDriverError324Selenium::WebDriver::Error::IMENotAvailableError = Selenium::WebDriver::Error::WebDriverError325Selenium::WebDriver::Error::IndexOutOfBoundsError = Selenium::WebDriver::Error::WebDriverError326class Selenium::WebDriver::Error::InsecureCertificateError < ::Selenium::WebDriver::Error::WebDriverError; end327class Selenium::WebDriver::Error::InvalidArgumentError < ::Selenium::WebDriver::Error::WebDriverError; end328class Selenium::WebDriver::Error::InvalidCookieDomainError < ::Selenium::WebDriver::Error::WebDriverError; end329Selenium::WebDriver::Error::InvalidElementCoordinatesError = Selenium::WebDriver::Error::WebDriverError330Selenium::WebDriver::Error::InvalidElementStateError = Selenium::WebDriver::Error::ElementNotInteractableError331class Selenium::WebDriver::Error::InvalidSelectorError < ::Selenium::WebDriver::Error::WebDriverError; end332class Selenium::WebDriver::Error::InvalidSessionIdError < ::Selenium::WebDriver::Error::WebDriverError; end333Selenium::WebDriver::Error::InvalidXpathSelectorError = Selenium::WebDriver::Error::InvalidSelectorError334Selenium::WebDriver::Error::InvalidXpathSelectorReturnTyperError = Selenium::WebDriver::Error::InvalidSelectorError335class Selenium::WebDriver::Error::JavascriptError < ::Selenium::WebDriver::Error::WebDriverError; end336class Selenium::WebDriver::Error::MoveTargetOutOfBoundsError < ::Selenium::WebDriver::Error::WebDriverError; end337Selenium::WebDriver::Error::NoAlertOpenError = Selenium::WebDriver::Error::NoSuchAlertError338Selenium::WebDriver::Error::NoAlertPresentError = Selenium::WebDriver::Error::NoSuchAlertError339Selenium::WebDriver::Error::NoCollectionError = Selenium::WebDriver::Error::WebDriverError340Selenium::WebDriver::Error::NoScriptResultError = Selenium::WebDriver::Error::WebDriverError341Selenium::WebDriver::Error::NoStringError = Selenium::WebDriver::Error::WebDriverError342Selenium::WebDriver::Error::NoStringLengthError = Selenium::WebDriver::Error::WebDriverError343Selenium::WebDriver::Error::NoStringWrapperError = Selenium::WebDriver::Error::WebDriverError344class Selenium::WebDriver::Error::NoSuchAlertError < ::Selenium::WebDriver::Error::WebDriverError; end345Selenium::WebDriver::Error::NoSuchCollectionError = Selenium::WebDriver::Error::WebDriverError346class Selenium::WebDriver::Error::NoSuchCookieError < ::Selenium::WebDriver::Error::WebDriverError; end347Selenium::WebDriver::Error::NoSuchDocumentError = Selenium::WebDriver::Error::WebDriverError348Selenium::WebDriver::Error::NoSuchDriverError = Selenium::WebDriver::Error::WebDriverError349class Selenium::WebDriver::Error::NoSuchElementError < ::Selenium::WebDriver::Error::WebDriverError; end350class Selenium::WebDriver::Error::NoSuchFrameError < ::Selenium::WebDriver::Error::WebDriverError; end351class Selenium::WebDriver::Error::NoSuchWindowError < ::Selenium::WebDriver::Error::WebDriverError; end352class Selenium::WebDriver::Error::NullPointerError < ::Selenium::WebDriver::Error::WebDriverError; end353Selenium::WebDriver::Error::ObsoleteElementError = Selenium::WebDriver::Error::StaleElementReferenceError354Selenium::WebDriver::Error::ScriptTimeOutError = Selenium::WebDriver::Error::ScriptTimeoutError355class Selenium::WebDriver::Error::ScriptTimeoutError < ::Selenium::WebDriver::Error::WebDriverError; end356class Selenium::WebDriver::Error::ServerError < ::StandardError357 def initialize(response); end358end359class Selenium::WebDriver::Error::SessionNotCreatedError < ::Selenium::WebDriver::Error::WebDriverError; end360class Selenium::WebDriver::Error::StaleElementReferenceError < ::Selenium::WebDriver::Error::WebDriverError; end361Selenium::WebDriver::Error::TimeOutError = Selenium::WebDriver::Error::TimeoutError362class Selenium::WebDriver::Error::TimeoutError < ::Selenium::WebDriver::Error::WebDriverError; end363class Selenium::WebDriver::Error::UnableToCaptureScreenError < ::Selenium::WebDriver::Error::WebDriverError; end364class Selenium::WebDriver::Error::UnableToSetCookieError < ::Selenium::WebDriver::Error::WebDriverError; end365class Selenium::WebDriver::Error::UnexpectedAlertOpenError < ::Selenium::WebDriver::Error::WebDriverError; end366Selenium::WebDriver::Error::UnexpectedJavascriptError = Selenium::WebDriver::Error::JavascriptError367Selenium::WebDriver::Error::UnhandledAlertError = Selenium::WebDriver::Error::UnexpectedAlertOpenError368Selenium::WebDriver::Error::UnhandledError = Selenium::WebDriver::Error::UnknownError369class Selenium::WebDriver::Error::UnknownCommandError < ::Selenium::WebDriver::Error::WebDriverError; end370class Selenium::WebDriver::Error::UnknownError < ::Selenium::WebDriver::Error::WebDriverError; end371class Selenium::WebDriver::Error::UnknownMethodError < ::Selenium::WebDriver::Error::WebDriverError; end372class Selenium::WebDriver::Error::UnsupportedOperationError < ::Selenium::WebDriver::Error::WebDriverError; end373class Selenium::WebDriver::Error::WebDriverError < ::StandardError; end374Selenium::WebDriver::Error::XPathLookupError = Selenium::WebDriver::Error::InvalidSelectorError375module Selenium::WebDriver::FileReaper376 class << self377 def <<(file); end378 def reap(file); end379 def reap!; end380 def reap=(_arg0); end381 def reap?; end382 def tmp_files; end383 end384end385module Selenium::WebDriver::Firefox386 class << self387 def driver_path; end388 def driver_path=(path); end389 def path=(path); end390 end391end392class Selenium::WebDriver::Firefox::Binary393 def quit; end394 def start_with(profile, profile_path, *args); end395 def wait; end396 private397 def execute(*extra_args); end398 def modify_link_library_path(profile_path); end399 class << self400 def path; end401 def path=(path); end402 def reset_path!; end403 def version; end404 private405 def macosx_path; end406 def windows_path; end407 def windows_registry_path; end408 end409end410Selenium::WebDriver::Firefox::Binary::NO_FOCUS_LIBRARIES = T.let(T.unsafe(nil), Array)411Selenium::WebDriver::Firefox::Binary::NO_FOCUS_LIBRARY_NAME = T.let(T.unsafe(nil), String)412Selenium::WebDriver::Firefox::Binary::QUIT_TIMEOUT = T.let(T.unsafe(nil), Integer)413Selenium::WebDriver::Firefox::Binary::WAIT_TIMEOUT = T.let(T.unsafe(nil), Integer)414Selenium::WebDriver::Firefox::DEFAULT_ASSUME_UNTRUSTED_ISSUER = T.let(T.unsafe(nil), TrueClass)415Selenium::WebDriver::Firefox::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)416module Selenium::WebDriver::Firefox::Driver417 class << self418 def new(**opts); end419 private420 def marionette?(opts); end421 end422end423class Selenium::WebDriver::Firefox::Extension424 def initialize(path); end425 def write_to(extensions_dir); end426 private427 def create_root; end428 def read_id(directory); end429 def read_id_from_install_rdf(directory); end430 def read_id_from_manifest_json(directory); end431end432Selenium::WebDriver::Firefox::Extension::NAMESPACE = T.let(T.unsafe(nil), String)433class Selenium::WebDriver::Firefox::Launcher434 def initialize(binary, port, profile = T.unsafe(nil)); end435 def assert_profile; end436 def connect_until_stable; end437 def create_profile; end438 def fetch_profile; end439 def find_free_port; end440 def launch; end441 def quit; end442 def socket_lock; end443 def start; end444 def url; end445end446Selenium::WebDriver::Firefox::Launcher::SOCKET_LOCK_TIMEOUT = T.let(T.unsafe(nil), Integer)447Selenium::WebDriver::Firefox::Launcher::STABLE_CONNECTION_TIMEOUT = T.let(T.unsafe(nil), Integer)448module Selenium::WebDriver::Firefox::Legacy; end449class Selenium::WebDriver::Firefox::Legacy::Driver < ::Selenium::WebDriver::Driver450 include ::Selenium::WebDriver::DriverExtensions::TakesScreenshot451 def initialize(opts = T.unsafe(nil)); end452 def browser; end453 def quit; end454end455module Selenium::WebDriver::Firefox::Marionette; end456module Selenium::WebDriver::Firefox::Marionette::Bridge457 def commands(command); end458 def install_addon(path, temporary); end459 def uninstall_addon(id); end460end461Selenium::WebDriver::Firefox::Marionette::Bridge::COMMANDS = T.let(T.unsafe(nil), Hash)462class Selenium::WebDriver::Firefox::Marionette::Driver < ::Selenium::WebDriver::Driver463 include ::Selenium::WebDriver::DriverExtensions::HasAddons464 include ::Selenium::WebDriver::DriverExtensions::HasWebStorage465 include ::Selenium::WebDriver::DriverExtensions::TakesScreenshot466 def initialize(opts = T.unsafe(nil)); end467 def browser; end468 def quit; end469 private470 def create_capabilities(opts); end471end472class Selenium::WebDriver::Firefox::Options < ::Selenium::WebDriver::Common::Options473 def initialize(**opts); end474 def add_argument(arg); end475 def add_option(name, value); end476 def add_preference(name, value); end477 def args; end478 def as_json(*_arg0); end479 def binary; end480 def binary=(_arg0); end481 def headless!; end482 def log_level; end483 def log_level=(_arg0); end484 def options; end485 def prefs; end486 def profile; end487 def profile=(profile); end488 private489 def process_profile(profile); end490end491Selenium::WebDriver::Firefox::Options::KEY = T.let(T.unsafe(nil), String)492class Selenium::WebDriver::Firefox::Profile493 include ::Selenium::WebDriver::ProfileHelper494 extend ::Selenium::WebDriver::ProfileHelper::ClassMethods495 def initialize(model = T.unsafe(nil)); end496 def []=(key, value); end497 def add_extension(path, name = T.unsafe(nil)); end498 def add_webdriver_extension; end499 def assume_untrusted_certificate_issuer=(bool); end500 def assume_untrusted_certificate_issuer?; end501 def encoded; end502 def layout_on_disk; end503 def load_no_focus_lib=(_arg0); end504 def load_no_focus_lib?; end505 def log_file; end506 def log_file=(file); end507 def name; end508 def native_events=(_arg0); end509 def native_events?; end510 def port=(port); end511 def proxy=(proxy); end512 def secure_ssl=(_arg0); end513 def secure_ssl?; end514 private515 def delete_extensions_cache(directory); end516 def delete_lock_files(directory); end517 def extension_name_for(path); end518 def install_extensions(directory); end519 def read_model_prefs; end520 def read_user_prefs(path); end521 def set_manual_proxy_preference(key, value); end522 def update_user_prefs_in(directory); end523 def write_prefs(prefs, path); end524 class << self525 def default_preferences; end526 def from_name(name); end527 def ini; end528 end529end530Selenium::WebDriver::Firefox::Profile::VALID_PREFERENCE_TYPES = T.let(T.unsafe(nil), Array)531Selenium::WebDriver::Firefox::Profile::WEBDRIVER_EXTENSION_PATH = T.let(T.unsafe(nil), String)532Selenium::WebDriver::Firefox::Profile::WEBDRIVER_PREFS = T.let(T.unsafe(nil), Hash)533class Selenium::WebDriver::Firefox::ProfilesIni534 def initialize; end535 def [](name); end536 def refresh; end537 private538 def parse; end539 def path_for(name, is_relative, path); end540end541class Selenium::WebDriver::Firefox::Service < ::Selenium::WebDriver::Service542 private543 def extract_service_args(driver_opts); end544end545module Selenium::WebDriver::Firefox::Util546 private547 def app_data_path; end548 def stringified?(str); end549 class << self550 def app_data_path; end551 def stringified?(str); end552 end553end554module Selenium::WebDriver::HTML5; end555class Selenium::WebDriver::HTML5::LocalStorage556 include ::Enumerable557 include ::Selenium::WebDriver::HTML5::SharedWebStorage558 def initialize(bridge); end559 def [](key); end560 def []=(key, value); end561 def clear; end562 def delete(key); end563 def keys; end564 def size; end565end566class Selenium::WebDriver::HTML5::SessionStorage567 include ::Enumerable568 include ::Selenium::WebDriver::HTML5::SharedWebStorage569 def initialize(bridge); end570 def [](key); end571 def []=(key, value); end572 def clear; end573 def delete(key); end574 def keys; end575 def size; end576end577module Selenium::WebDriver::HTML5::SharedWebStorage578 include ::Enumerable579 def each; end580 def empty?; end581 def fetch(key); end582 def has_key?(key); end583 def key?(key); end584 def member?(key); end585end586module Selenium::WebDriver::IE587 class << self588 def driver_path; end589 def driver_path=(path); end590 end591end592class Selenium::WebDriver::IE::Driver < ::Selenium::WebDriver::Driver593 include ::Selenium::WebDriver::DriverExtensions::HasWebStorage594 include ::Selenium::WebDriver::DriverExtensions::TakesScreenshot595 def initialize(opts = T.unsafe(nil)); end596 def browser; end597 def quit; end598 private599 def create_capabilities(opts); end600end601class Selenium::WebDriver::IE::Options < ::Selenium::WebDriver::Common::Options602 def initialize(**opts); end603 def add_argument(arg); end604 def add_option(name, value); end605 def args; end606 def as_json(*_arg0); end607 def browser_attach_timeout; end608 def browser_attach_timeout=(value); end609 def element_scroll_behavior; end610 def element_scroll_behavior=(value); end611 def ensure_clean_session; end612 def ensure_clean_session=(value); end613 def file_upload_dialog_timeout; end614 def file_upload_dialog_timeout=(value); end615 def force_create_process_api; end616 def force_create_process_api=(value); end617 def force_shell_windows_api; end618 def force_shell_windows_api=(value); end619 def full_page_screenshot; end620 def full_page_screenshot=(value); end621 def ignore_protected_mode_settings; end622 def ignore_protected_mode_settings=(value); end623 def ignore_zoom_level; end624 def ignore_zoom_level=(value); end625 def initial_browser_url; end626 def initial_browser_url=(value); end627 def native_events; end628 def native_events=(value); end629 def options; end630 def persistent_hover; end631 def persistent_hover=(value); end632 def require_window_focus; end633 def require_window_focus=(value); end634 def use_per_process_proxy; end635 def use_per_process_proxy=(value); end636 def validate_cookie_document_type; end637 def validate_cookie_document_type=(value); end638end639Selenium::WebDriver::IE::Options::CAPABILITIES = T.let(T.unsafe(nil), Hash)640Selenium::WebDriver::IE::Options::KEY = T.let(T.unsafe(nil), String)641Selenium::WebDriver::IE::Options::SCROLL_BOTTOM = T.let(T.unsafe(nil), Integer)642Selenium::WebDriver::IE::Options::SCROLL_TOP = T.let(T.unsafe(nil), Integer)643class Selenium::WebDriver::IE::Service < ::Selenium::WebDriver::Service644 private645 def extract_service_args(driver_opts); end646end647module Selenium::WebDriver::Interactions648 class << self649 def key(name); end650 def none(name = T.unsafe(nil)); end651 def pointer(kind, **kwargs); end652 end653end654class Selenium::WebDriver::Interactions::InputDevice655 def initialize(name = T.unsafe(nil)); end656 def actions; end657 def add_action(action); end658 def clear_actions; end659 def create_pause(duration = T.unsafe(nil)); end660 def name; end661 def no_actions?; end662end663class Selenium::WebDriver::Interactions::Interaction664 def initialize(source); end665 def source; end666end667Selenium::WebDriver::Interactions::Interaction::PAUSE = T.let(T.unsafe(nil), Symbol)668Selenium::WebDriver::Interactions::KEY = T.let(T.unsafe(nil), Symbol)669class Selenium::WebDriver::Interactions::KeyInput < ::Selenium::WebDriver::Interactions::InputDevice670 def create_key_down(key); end671 def create_key_up(key); end672 def encode; end673 def type; end674end675Selenium::WebDriver::Interactions::KeyInput::SUBTYPES = T.let(T.unsafe(nil), Hash)676class Selenium::WebDriver::Interactions::KeyInput::TypingInteraction < ::Selenium::WebDriver::Interactions::Interaction677 def initialize(source, type, key); end678 def assert_type(type); end679 def encode; end680 def type; end681end682Selenium::WebDriver::Interactions::NONE = T.let(T.unsafe(nil), Symbol)683class Selenium::WebDriver::Interactions::NoneInput < ::Selenium::WebDriver::Interactions::InputDevice684 def encode; end685 def type; end686end687Selenium::WebDriver::Interactions::POINTER = T.let(T.unsafe(nil), Symbol)688class Selenium::WebDriver::Interactions::Pause < ::Selenium::WebDriver::Interactions::Interaction689 def initialize(source, duration = T.unsafe(nil)); end690 def encode; end691 def type; end692end693class Selenium::WebDriver::Interactions::PointerCancel < ::Selenium::WebDriver::Interactions::Interaction694 def encode; end695 def type; end696end697class Selenium::WebDriver::Interactions::PointerInput < ::Selenium::WebDriver::Interactions::InputDevice698 def initialize(kind, name: T.unsafe(nil)); end699 def assert_kind(pointer); end700 def create_pointer_cancel; end701 def create_pointer_down(button); end702 def create_pointer_move(duration: T.unsafe(nil), x: T.unsafe(nil), y: T.unsafe(nil), element: T.unsafe(nil), origin: T.unsafe(nil)); end703 def create_pointer_up(button); end704 def encode; end705 def kind; end706 def type; end707end708Selenium::WebDriver::Interactions::PointerInput::KIND = T.let(T.unsafe(nil), Hash)709class Selenium::WebDriver::Interactions::PointerMove < ::Selenium::WebDriver::Interactions::Interaction710 def initialize(source, duration, x, y, element: T.unsafe(nil), origin: T.unsafe(nil)); end711 def encode; end712 def type; end713end714Selenium::WebDriver::Interactions::PointerMove::ORIGINS = T.let(T.unsafe(nil), Array)715Selenium::WebDriver::Interactions::PointerMove::POINTER = T.let(T.unsafe(nil), Symbol)716Selenium::WebDriver::Interactions::PointerMove::VIEWPORT = T.let(T.unsafe(nil), Symbol)717class Selenium::WebDriver::Interactions::PointerPress < ::Selenium::WebDriver::Interactions::Interaction718 def initialize(source, direction, button); end719 def assert_button(button); end720 def assert_direction(direction); end721 def encode; end722 def type; end723end724Selenium::WebDriver::Interactions::PointerPress::BUTTONS = T.let(T.unsafe(nil), Hash)725Selenium::WebDriver::Interactions::PointerPress::DIRECTIONS = T.let(T.unsafe(nil), Hash)726Selenium::WebDriver::Interactions::SOURCE_TYPES = T.let(T.unsafe(nil), Array)727module Selenium::WebDriver::KeyActions728 def key_down(*args, device: T.unsafe(nil)); end729 def key_up(*args, device: T.unsafe(nil)); end730 def send_keys(*args, device: T.unsafe(nil)); end731 private732 def key_action(*args, action: T.unsafe(nil), device: T.unsafe(nil)); end733end734class Selenium::WebDriver::Keyboard735 def initialize(bridge); end736 def press(key); end737 def release(key); end738 def send_keys(*keys); end739 private740 def assert_modifier(key); end741end742Selenium::WebDriver::Keyboard::MODIFIERS = T.let(T.unsafe(nil), Array)743module Selenium::WebDriver::Keys744 class << self745 def [](key); end746 def encode(keys); end747 def encode_key(key); end748 end749end750Selenium::WebDriver::Keys::KEYS = T.let(T.unsafe(nil), Hash)751class Selenium::WebDriver::Location < ::Struct752 def altitude; end753 def altitude=(_); end754 def latitude; end755 def latitude=(_); end756 def longitude; end757 def longitude=(_); end758 class << self759 def [](*_arg0); end760 def inspect; end761 def members; end762 def new(*_arg0); end763 end764end765class Selenium::WebDriver::LogEntry766 def initialize(level, timestamp, message); end767 def as_json(*_arg0); end768 def level; end769 def message; end770 def time; end771 def timestamp; end772 def to_s; end773end774class Selenium::WebDriver::Logger775 extend ::Forwardable776 def initialize; end777 def close(*args, &block); end778 def debug(*args, &block); end779 def debug?(*args, &block); end780 def deprecate(old, new = T.unsafe(nil)); end781 def error(*args, &block); end782 def error?(*args, &block); end783 def fatal(*args, &block); end784 def fatal?(*args, &block); end785 def info(*args, &block); end786 def info?(*args, &block); end787 def io; end788 def level(*args, &block); end789 def level=(*args, &block); end790 def output=(io); end791 def warn(*args, &block); end792 def warn?(*args, &block); end793 private794 def create_logger(output); end795 def default_level; end796end797class Selenium::WebDriver::Logs798 def initialize(bridge); end799 def available_types; end800 def get(type); end801end802class Selenium::WebDriver::Manager803 def initialize(bridge); end804 def add_cookie(opts = T.unsafe(nil)); end805 def all_cookies; end806 def cookie_named(name); end807 def delete_all_cookies; end808 def delete_cookie(name); end809 def logs; end810 def new_window(type = T.unsafe(nil)); end811 def timeouts; end812 def window; end813 private814 def convert_cookie(cookie); end815 def datetime_at(int); end816 def seconds_from(obj); end817 def strip_port(str); end818end819Selenium::WebDriver::Manager::SECONDS_PER_DAY = T.let(T.unsafe(nil), Float)820class Selenium::WebDriver::Mouse821 def initialize(bridge); end822 def click(element = T.unsafe(nil)); end823 def context_click(element = T.unsafe(nil)); end824 def double_click(element = T.unsafe(nil)); end825 def down(element = T.unsafe(nil)); end826 def move_by(right_by, down_by); end827 def move_to(element, right_by = T.unsafe(nil), down_by = T.unsafe(nil)); end828 def up(element = T.unsafe(nil)); end829 private830 def assert_element(element); end831 def move_if_needed(element); end832end833class Selenium::WebDriver::Navigation834 def initialize(bridge); end835 def back; end836 def forward; end837 def refresh; end838 def to(url); end839end840module Selenium::WebDriver::Platform841 private842 def assert_executable(path); end843 def assert_file(path); end844 def bitsize; end845 def ci; end846 def cygwin?; end847 def cygwin_path(path, **opts); end848 def engine; end849 def exit_hook; end850 def find_binary(*binary_names); end851 def find_in_program_files(*binary_names); end852 def home; end853 def interfaces; end854 def ip; end855 def jruby?; end856 def linux?; end857 def localhost; end858 def mac?; end859 def make_writable(file); end860 def null_device; end861 def os; end862 def ruby_version; end863 def unix_path(path); end864 def windows?; end865 def windows_path(path); end866 def wrap_in_quotes_if_necessary(str); end867 def wsl?; end868 class << self869 def assert_executable(path); end870 def assert_file(path); end871 def bitsize; end872 def ci; end873 def cygwin?; end874 def cygwin_path(path, **opts); end875 def engine; end876 def exit_hook; end877 def find_binary(*binary_names); end878 def find_in_program_files(*binary_names); end879 def home; end880 def interfaces; end881 def ip; end882 def jruby?; end883 def linux?; end884 def localhost; end885 def mac?; end886 def make_writable(file); end887 def null_device; end888 def os; end889 def ruby_version; end890 def unix_path(path); end891 def windows?; end892 def windows_path(path); end893 def wrap_in_quotes_if_necessary(str); end894 def wsl?; end895 end896end897class Selenium::WebDriver::Point < ::Struct898 def x; end899 def x=(_); end900 def y; end901 def y=(_); end902 class << self903 def [](*_arg0); end904 def inspect; end905 def members; end906 def new(*_arg0); end907 end908end909module Selenium::WebDriver::PointerActions910 def click(element = T.unsafe(nil), device: T.unsafe(nil)); end911 def click_and_hold(element = T.unsafe(nil), device: T.unsafe(nil)); end912 def context_click(element = T.unsafe(nil), device: T.unsafe(nil)); end913 def default_move_duration; end914 def default_move_duration=(_arg0); end915 def double_click(element = T.unsafe(nil), device: T.unsafe(nil)); end916 def drag_and_drop(source, target, device: T.unsafe(nil)); end917 def drag_and_drop_by(source, right_by, down_by, device: T.unsafe(nil)); end918 def move_by(right_by, down_by, device: T.unsafe(nil)); end919 def move_to(element, right_by = T.unsafe(nil), down_by = T.unsafe(nil), device: T.unsafe(nil)); end920 def move_to_location(x, y, device: T.unsafe(nil)); end921 def pointer_down(button, device: T.unsafe(nil)); end922 def pointer_up(button, device: T.unsafe(nil)); end923 def release(device: T.unsafe(nil)); end924 private925 def button_action(button, action: T.unsafe(nil), device: T.unsafe(nil)); end926 def get_pointer(device = T.unsafe(nil)); end927end928class Selenium::WebDriver::PortProber929 class << self930 def above(port); end931 def free?(port); end932 end933end934Selenium::WebDriver::PortProber::IGNORED_ERRORS = T.let(T.unsafe(nil), Array)935module Selenium::WebDriver::ProfileHelper936 mixes_in_class_methods ::Selenium::WebDriver::ProfileHelper::ClassMethods937 def as_json(*_arg0); end938 def to_json(*_arg0); end939 private940 def create_tmp_copy(directory); end941 def verify_model(model); end942 class << self943 def included(base); end944 end945end946module Selenium::WebDriver::ProfileHelper::ClassMethods947 def from_json(json); end948end949class Selenium::WebDriver::Proxy950 def initialize(opts = T.unsafe(nil)); end951 def ==(other); end952 def as_json(*_arg0); end953 def auto_detect; end954 def auto_detect=(bool); end955 def eql?(other); end956 def ftp; end957 def ftp=(value); end958 def http; end959 def http=(value); end960 def no_proxy; end961 def no_proxy=(value); end962 def pac; end963 def pac=(url); end964 def socks; end965 def socks=(value); end966 def socks_password; end967 def socks_password=(value); end968 def socks_username; end969 def socks_username=(value); end970 def socks_version; end971 def socks_version=(value); end972 def ssl; end973 def ssl=(value); end974 def to_json(*_arg0); end975 def type; end976 def type=(type); end977 class << self978 def json_create(data); end979 end980end981Selenium::WebDriver::Proxy::ALLOWED = T.let(T.unsafe(nil), Hash)982Selenium::WebDriver::Proxy::TYPES = T.let(T.unsafe(nil), Hash)983class Selenium::WebDriver::Rectangle < ::Struct984 def height; end985 def height=(_); end986 def width; end987 def width=(_); end988 def x; end989 def x=(_); end990 def y; end991 def y=(_); end992 class << self993 def [](*_arg0); end994 def inspect; end995 def members; end996 def new(*_arg0); end997 end998end999module Selenium::WebDriver::Remote; end1000class Selenium::WebDriver::Remote::Bridge1001 include ::Selenium::WebDriver::Atoms1002 include ::Selenium::WebDriver::BridgeHelper1003 def initialize(opts = T.unsafe(nil)); end1004 def browser; end1005 def capabilities; end1006 def context; end1007 def context=(_arg0); end1008 def create_session(desired_capabilities, options = T.unsafe(nil)); end1009 def dialect; end1010 def file_detector; end1011 def file_detector=(_arg0); end1012 def http; end1013 def http=(_arg0); end1014 def session_id; end1015 private1016 def commands(command); end1017 def escaper; end1018 def execute(command, opts = T.unsafe(nil), command_hash = T.unsafe(nil)); end1019 def merged_capabilities(oss_capabilities, options = T.unsafe(nil)); end1020 class << self1021 def handshake(**opts); end1022 end1023end1024Selenium::WebDriver::Remote::Bridge::COMMANDS = T.let(T.unsafe(nil), Hash)1025Selenium::WebDriver::Remote::Bridge::PORT = T.let(T.unsafe(nil), Integer)1026class Selenium::WebDriver::Remote::Capabilities1027 def initialize(opts = T.unsafe(nil)); end1028 def ==(other); end1029 def [](key); end1030 def []=(key, value); end1031 def as_json(*_arg0); end1032 def browser_name; end1033 def browser_name=(value); end1034 def css_selectors_enabled; end1035 def css_selectors_enabled=(value); end1036 def css_selectors_enabled?; end1037 def eql?(other); end1038 def firefox_profile; end1039 def firefox_profile=(value); end1040 def javascript_enabled; end1041 def javascript_enabled=(value); end1042 def javascript_enabled?; end1043 def merge!(other); end1044 def native_events; end1045 def native_events=(value); end1046 def native_events?; end1047 def platform; end1048 def platform=(value); end1049 def proxy; end1050 def proxy=(proxy); end1051 def rotatable; end1052 def rotatable=(value); end1053 def rotatable?; end1054 def takes_screenshot; end1055 def takes_screenshot=(value); end1056 def takes_screenshot?; end1057 def to_json(*_arg0); end1058 def version; end1059 def version=(value); end1060 protected1061 def capabilities; end1062 private1063 def camel_case(str); end1064 class << self1065 def chrome(opts = T.unsafe(nil)); end1066 def edge(opts = T.unsafe(nil)); end1067 def firefox(opts = T.unsafe(nil)); end1068 def firefox_legacy(opts = T.unsafe(nil)); end1069 def htmlunit(opts = T.unsafe(nil)); end1070 def htmlunitwithjs(opts = T.unsafe(nil)); end1071 def ie(opts = T.unsafe(nil)); end1072 def internet_explorer(opts = T.unsafe(nil)); end1073 def json_create(data); end1074 def phantomjs(opts = T.unsafe(nil)); end1075 def safari(opts = T.unsafe(nil)); end1076 end1077end1078Selenium::WebDriver::Remote::Capabilities::DEFAULTS = T.let(T.unsafe(nil), Hash)1079class Selenium::WebDriver::Remote::Driver < ::Selenium::WebDriver::Driver1080 include ::Selenium::WebDriver::DriverExtensions::UploadsFiles1081 include ::Selenium::WebDriver::DriverExtensions::TakesScreenshot1082 include ::Selenium::WebDriver::DriverExtensions::HasSessionId1083 include ::Selenium::WebDriver::DriverExtensions::Rotatable1084 include ::Selenium::WebDriver::DriverExtensions::HasRemoteStatus1085 include ::Selenium::WebDriver::DriverExtensions::HasWebStorage1086 def initialize(opts = T.unsafe(nil)); end1087end1088module Selenium::WebDriver::Remote::Http; end1089class Selenium::WebDriver::Remote::Http::Common1090 def initialize; end1091 def call(verb, url, command_hash); end1092 def close; end1093 def quit_errors; end1094 def server_url=(_arg0); end1095 def timeout; end1096 def timeout=(_arg0); end1097 private1098 def create_response(code, body, content_type); end1099 def request(*_arg0); end1100 def server_url; end1101end1102Selenium::WebDriver::Remote::Http::Common::CONTENT_TYPE = T.let(T.unsafe(nil), String)1103Selenium::WebDriver::Remote::Http::Common::DEFAULT_HEADERS = T.let(T.unsafe(nil), Hash)1104Selenium::WebDriver::Remote::Http::Common::MAX_REDIRECTS = T.let(T.unsafe(nil), Integer)1105class Selenium::WebDriver::Remote::Http::Default < ::Selenium::WebDriver::Remote::Http::Common1106 def initialize(open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil)); end1107 def close; end1108 def open_timeout; end1109 def open_timeout=(_arg0); end1110 def proxy=(_arg0); end1111 def read_timeout; end1112 def read_timeout=(_arg0); end1113 def timeout=(value); end1114 private1115 def http; end1116 def new_http_client; end1117 def new_request_for(verb, url, headers, payload); end1118 def proxy; end1119 def request(verb, url, headers, payload, redirects = T.unsafe(nil)); end1120 def response_for(request); end1121 def use_proxy?; end1122end1123Selenium::WebDriver::Remote::Http::Default::MAX_RETRIES = T.let(T.unsafe(nil), Integer)1124module Selenium::WebDriver::Remote::OSS; end1125class Selenium::WebDriver::Remote::OSS::Bridge < ::Selenium::WebDriver::Remote::Bridge1126 def initialize(capabilities, session_id, **opts); end1127 def accept_alert; end1128 def action; end1129 def active_element; end1130 def add_cookie(cookie); end1131 def alert=(keys); end1132 def alert_text; end1133 def authentication(credentials); end1134 def available_log_types; end1135 def clear_element(element); end1136 def clear_local_storage; end1137 def clear_session_storage; end1138 def click; end1139 def click_element(element); end1140 def close; end1141 def commands(command); end1142 def context_click; end1143 def cookies; end1144 def delete_all_cookies; end1145 def delete_cookie(name); end1146 def dialect; end1147 def dismiss_alert; end1148 def double_click; end1149 def drag_element(element, right_by, down_by); end1150 def element_attribute(element, name); end1151 def element_displayed?(element); end1152 def element_enabled?(element); end1153 def element_location(element); end1154 def element_location_once_scrolled_into_view(element); end1155 def element_property(element, name); end1156 def element_rect(element); end1157 def element_selected?(element); end1158 def element_size(element); end1159 def element_tag_name(element); end1160 def element_text(element); end1161 def element_value(element); end1162 def element_value_of_css_property(element, prop); end1163 def execute_async_script(script, *args); end1164 def execute_script(script, *args); end1165 def find_element_by(how, what, parent = T.unsafe(nil)); end1166 def find_elements_by(how, what, parent = T.unsafe(nil)); end1167 def get(url); end1168 def go_back; end1169 def go_forward; end1170 def implicit_wait_timeout=(milliseconds); end1171 def keyboard; end1172 def local_storage_item(key, value = T.unsafe(nil)); end1173 def local_storage_keys; end1174 def local_storage_size; end1175 def location; end1176 def log(type); end1177 def manage; end1178 def maximize_window(handle = T.unsafe(nil)); end1179 def mouse; end1180 def mouse_down; end1181 def mouse_move_to(element, x = T.unsafe(nil), y = T.unsafe(nil)); end1182 def mouse_up; end1183 def network_connection; end1184 def network_connection=(type); end1185 def page_source; end1186 def quit; end1187 def refresh; end1188 def remove_local_storage_item(key); end1189 def remove_session_storage_item(key); end1190 def reposition_window(x, y, handle = T.unsafe(nil)); end1191 def resize_window(width, height, handle = T.unsafe(nil)); end1192 def screen_orientation; end1193 def screen_orientation=(orientation); end1194 def screenshot; end1195 def script_timeout=(milliseconds); end1196 def send_keys_to_active_element(key); end1197 def send_keys_to_element(element, keys); end1198 def session_capabilities; end1199 def session_storage_item(key, value = T.unsafe(nil)); end1200 def session_storage_keys; end1201 def session_storage_size; end1202 def set_location(lat, lon, alt); end1203 def status; end1204 def submit_element(element); end1205 def switch_to_active_element; end1206 def switch_to_default_content; end1207 def switch_to_frame(id); end1208 def switch_to_parent_frame; end1209 def switch_to_window(name); end1210 def timeout(type, milliseconds); end1211 def title; end1212 def touch_double_tap(element); end1213 def touch_down(x, y); end1214 def touch_element_flick(element, right_by, down_by, speed); end1215 def touch_flick(xspeed, yspeed); end1216 def touch_long_press(element); end1217 def touch_move(x, y); end1218 def touch_scroll(element, x, y); end1219 def touch_single_tap(element); end1220 def touch_up(x, y); end1221 def upload(local_file); end1222 def url; end1223 def window_handle; end1224 def window_handles; end1225 def window_position(handle = T.unsafe(nil)); end1226 def window_size(handle = T.unsafe(nil)); end1227 private1228 def assert_javascript_enabled; end1229 def execute(*args); end1230end1231Selenium::WebDriver::Remote::OSS::Bridge::COMMANDS = T.let(T.unsafe(nil), Hash)1232class Selenium::WebDriver::Remote::Response1233 def initialize(code, payload = T.unsafe(nil)); end1234 def [](key); end1235 def code; end1236 def error; end1237 def error_message; end1238 def payload; end1239 def payload=(_arg0); end1240 private1241 def add_backtrace(ex); end1242 def assert_ok; end1243 def backtrace_from_remote(server_trace); end1244 def error_payload; end1245 def status; end1246 def value; end1247end1248Selenium::WebDriver::Remote::Response::STACKTRACE_KEY = T.let(T.unsafe(nil), String)1249module Selenium::WebDriver::Remote::W3C; end1250class Selenium::WebDriver::Remote::W3C::Bridge < ::Selenium::WebDriver::Remote::Bridge1251 def initialize(capabilities, session_id, **opts); end1252 def accept_alert; end1253 def action(async = T.unsafe(nil)); end1254 def actions(async = T.unsafe(nil)); end1255 def active_element; end1256 def add_cookie(cookie); end1257 def alert=(keys); end1258 def alert_text; end1259 def clear_element(element); end1260 def clear_local_storage; end1261 def clear_session_storage; end1262 def click_element(element); end1263 def close; end1264 def commands(command); end1265 def cookie(name); end1266 def cookies; end1267 def delete_all_cookies; end1268 def delete_cookie(name); end1269 def dialect; end1270 def dismiss_alert; end1271 def drag_element(element, right_by, down_by); end1272 def element_attribute(element, name); end1273 def element_displayed?(element); end1274 def element_enabled?(element); end1275 def element_location(element); end1276 def element_location_once_scrolled_into_view(element); end1277 def element_property(element, name); end1278 def element_rect(element); end1279 def element_selected?(element); end1280 def element_size(element); end1281 def element_tag_name(element); end1282 def element_text(element); end1283 def element_value(element); end1284 def element_value_of_css_property(element, prop); end1285 def execute_async_script(script, *args); end1286 def execute_script(script, *args); end1287 def find_element_by(how, what, parent = T.unsafe(nil)); end1288 def find_elements_by(how, what, parent = T.unsafe(nil)); end1289 def full_screen_window; end1290 def get(url); end1291 def go_back; end1292 def go_forward; end1293 def implicit_wait_timeout=(milliseconds); end1294 def keyboard; end1295 def local_storage_item(key, value = T.unsafe(nil)); end1296 def local_storage_keys; end1297 def local_storage_size; end1298 def location; end1299 def manage; end1300 def maximize_window(handle = T.unsafe(nil)); end1301 def minimize_window; end1302 def mouse; end1303 def network_connection; end1304 def network_connection=(_type); end1305 def new_window(type); end1306 def page_source; end1307 def quit; end1308 def refresh; end1309 def release_actions; end1310 def remove_local_storage_item(key); end1311 def remove_session_storage_item(key); end1312 def reposition_window(x, y); end1313 def resize_window(width, height, handle = T.unsafe(nil)); end1314 def screen_orientation; end1315 def screen_orientation=(orientation); end1316 def screenshot; end1317 def script_timeout=(milliseconds); end1318 def send_actions(data); end1319 def send_keys_to_element(element, keys); end1320 def session_storage_item(key, value = T.unsafe(nil)); end1321 def session_storage_keys; end1322 def session_storage_size; end1323 def set_location(_lat, _lon, _alt); end1324 def set_window_rect(x: T.unsafe(nil), y: T.unsafe(nil), width: T.unsafe(nil), height: T.unsafe(nil)); end1325 def status; end1326 def submit_element(element); end1327 def switch_to_active_element; end1328 def switch_to_default_content; end1329 def switch_to_frame(id); end1330 def switch_to_parent_frame; end1331 def switch_to_window(name); end1332 def timeout(type, milliseconds); end1333 def title; end1334 def touch_double_tap(element); end1335 def touch_down(x, y); end1336 def touch_element_flick(element, right_by, down_by, speed); end1337 def touch_flick(xspeed, yspeed); end1338 def touch_long_press(element); end1339 def touch_move(x, y); end1340 def touch_scroll(element, x, y); end1341 def touch_single_tap(element); end1342 def touch_up(x, y); end1343 def upload(local_file); end1344 def url; end1345 def window_handle; end1346 def window_handles; end1347 def window_position; end1348 def window_rect; end1349 def window_size(handle = T.unsafe(nil)); end1350 private1351 def convert_locators(how, what); end1352 def escape_css(string); end1353 def execute(*_arg0); end1354end1355Selenium::WebDriver::Remote::W3C::Bridge::COMMANDS = T.let(T.unsafe(nil), Hash)1356Selenium::WebDriver::Remote::W3C::Bridge::ESCAPE_CSS_REGEXP = T.let(T.unsafe(nil), Regexp)1357Selenium::WebDriver::Remote::W3C::Bridge::QUIT_ERRORS = T.let(T.unsafe(nil), Array)1358Selenium::WebDriver::Remote::W3C::Bridge::UNICODE_CODE_POINT = T.let(T.unsafe(nil), Integer)1359class Selenium::WebDriver::Remote::W3C::Capabilities1360 def initialize(opts = T.unsafe(nil)); end1361 def ==(other); end1362 def [](key); end1363 def []=(key, value); end1364 def accept_insecure_certs; end1365 def accept_insecure_certs=(value); end1366 def accessibility_checks; end1367 def accessibility_checks=(value); end1368 def as_json(*_arg0); end1369 def browser_name; end1370 def browser_name=(value); end1371 def browser_version; end1372 def browser_version=(value); end1373 def device; end1374 def device=(value); end1375 def eql?(other); end1376 def implicit_timeout; end1377 def implicit_timeout=(value); end1378 def merge!(other); end1379 def page_load_strategy; end1380 def page_load_strategy=(value); end1381 def page_load_timeout; end1382 def page_load_timeout=(value); end1383 def platform; end1384 def platform=(value); end1385 def platform_name; end1386 def platform_name=(value); end1387 def proxy; end1388 def proxy=(proxy); end1389 def remote_session_id; end1390 def remote_session_id=(value); end1391 def script_timeout; end1392 def script_timeout=(value); end1393 def set_window_rect; end1394 def set_window_rect=(value); end1395 def strict_file_interactability; end1396 def strict_file_interactability=(value); end1397 def timeouts; end1398 def timeouts=(value); end1399 def to_json(*_arg0); end1400 def unhandled_prompt_behavior; end1401 def unhandled_prompt_behavior=(value); end1402 def version; end1403 def version=(value); end1404 protected1405 def capabilities; end1406 private1407 def camel_case(str); end1408 class << self1409 def edge(opts = T.unsafe(nil)); end1410 def ff(opts = T.unsafe(nil)); end1411 def firefox(opts = T.unsafe(nil)); end1412 def from_oss(oss_capabilities); end1413 def json_create(data); end1414 end1415end1416Selenium::WebDriver::Remote::W3C::Capabilities::EXTENSION_CAPABILITY_PATTERN = T.let(T.unsafe(nil), Regexp)1417Selenium::WebDriver::Remote::W3C::Capabilities::KNOWN = T.let(T.unsafe(nil), Array)1418module Selenium::WebDriver::Safari1419 class << self1420 def driver_path; end1421 def driver_path=(path); end1422 def path; end1423 def path=(path); end1424 def technology_preview; end1425 def technology_preview!; end1426 end1427end1428module Selenium::WebDriver::Safari::Bridge1429 def attach_debugger; end1430 def commands(command); end1431 def permissions; end1432 def permissions=(permissions); end1433end1434Selenium::WebDriver::Safari::Bridge::COMMANDS = T.let(T.unsafe(nil), Hash)1435class Selenium::WebDriver::Safari::Driver < ::Selenium::WebDriver::Driver1436 include ::Selenium::WebDriver::DriverExtensions::HasDebugger1437 include ::Selenium::WebDriver::DriverExtensions::HasPermissions1438 include ::Selenium::WebDriver::DriverExtensions::TakesScreenshot1439 def initialize(opts = T.unsafe(nil)); end1440 def browser; end1441 def quit; end1442 private1443 def create_capabilities(opts = T.unsafe(nil)); end1444end1445class Selenium::WebDriver::Safari::Options1446 def initialize(**opts); end1447 def as_json(*_arg0); end1448 def automatic_inspection; end1449 def automatic_inspection=(_arg0); end1450 def automatic_profiling; end1451 def automatic_profiling=(_arg0); end1452end1453class Selenium::WebDriver::Safari::Service < ::Selenium::WebDriver::Service; end1454module Selenium::WebDriver::SearchContext1455 def find_element(*args); end1456 def find_elements(*args); end1457 private1458 def extract_args(args); end1459end1460Selenium::WebDriver::SearchContext::FINDERS = T.let(T.unsafe(nil), Hash)1461class Selenium::WebDriver::Service1462 def initialize(path: T.unsafe(nil), port: T.unsafe(nil), args: T.unsafe(nil)); end1463 def executable_path; end1464 def host; end1465 def host=(_arg0); end1466 def start; end1467 def stop; end1468 def uri; end1469 protected1470 def extract_service_args(driver_opts); end1471 private1472 def binary_path(path = T.unsafe(nil)); end1473 def build_process(*command); end1474 def cannot_connect_error_text; end1475 def connect_to_server; end1476 def connect_until_stable; end1477 def find_free_port; end1478 def process_exited?; end1479 def process_running?; end1480 def socket_lock; end1481 def start_process; end1482 def stop_process; end1483 def stop_server; end1484 class << self1485 def chrome(**opts); end1486 def default_port; end1487 def driver_path; end1488 def driver_path=(path); end1489 def edge(**opts); end1490 def executable; end1491 def firefox(**opts); end1492 def ie(**opts); end1493 def internet_explorer(**opts); end1494 def missing_text; end1495 def safari(**opts); end1496 def shutdown_supported; end1497 end1498end1499Selenium::WebDriver::Service::SOCKET_LOCK_TIMEOUT = T.let(T.unsafe(nil), Integer)1500Selenium::WebDriver::Service::START_TIMEOUT = T.let(T.unsafe(nil), Integer)1501Selenium::WebDriver::Service::STOP_TIMEOUT = T.let(T.unsafe(nil), Integer)1502class Selenium::WebDriver::SocketLock1503 def initialize(port, timeout); end1504 def locked; end1505 private1506 def can_lock?; end1507 def current_time; end1508 def did_lock?; end1509 def lock; end1510 def release; end1511end1512class Selenium::WebDriver::SocketPoller1513 def initialize(host, port, timeout = T.unsafe(nil), interval = T.unsafe(nil)); end1514 def closed?; end1515 def connected?; end1516 private1517 def conn_completed?(sock); end1518 def current_time; end1519 def listening?; end1520 def socket_writable?(sock); end1521 def with_timeout; end1522end1523Selenium::WebDriver::SocketPoller::CONNECTED_ERRORS = T.let(T.unsafe(nil), Array)1524Selenium::WebDriver::SocketPoller::CONNECT_TIMEOUT = T.let(T.unsafe(nil), Integer)1525Selenium::WebDriver::SocketPoller::NOT_CONNECTED_ERRORS = T.let(T.unsafe(nil), Array)1526module Selenium::WebDriver::Support; end1527class Selenium::WebDriver::Support::AbstractEventListener1528 def after_change_value_of(element, driver); end1529 def after_click(element, driver); end1530 def after_close(driver); end1531 def after_execute_script(script, driver); end1532 def after_find(by, what, driver); end1533 def after_navigate_back(driver); end1534 def after_navigate_forward(driver); end1535 def after_navigate_to(url, driver); end1536 def after_quit(driver); end1537 def before_change_value_of(element, driver); end1538 def before_click(element, driver); end1539 def before_close(driver); end1540 def before_execute_script(script, driver); end1541 def before_find(by, what, driver); end1542 def before_navigate_back(driver); end1543 def before_navigate_forward(driver); end1544 def before_navigate_to(url, driver); end1545 def before_quit(driver); end1546end1547class Selenium::WebDriver::Support::BlockEventListener1548 def initialize(callback); end1549 def method_missing(meth, *args); end1550end1551class Selenium::WebDriver::Support::Color1552 def initialize(red, green, blue, alpha = T.unsafe(nil)); end1553 def ==(other); end1554 def alpha; end1555 def blue; end1556 def eql?(other); end1557 def green; end1558 def hash; end1559 def hex; end1560 def red; end1561 def rgb; end1562 def rgba; end1563 class << self1564 def from_hsl(h, s, l, a); end1565 def from_string(str); end1566 def hue_to_rgb(lum1, lum2, hue); end1567 end1568end1569Selenium::WebDriver::Support::Color::HEX3_PATTERN = T.let(T.unsafe(nil), Regexp)1570Selenium::WebDriver::Support::Color::HEX_PATTERN = T.let(T.unsafe(nil), Regexp)1571Selenium::WebDriver::Support::Color::HSLA_PATTERN = T.let(T.unsafe(nil), Regexp)1572Selenium::WebDriver::Support::Color::HSL_PATTERN = T.let(T.unsafe(nil), Regexp)1573Selenium::WebDriver::Support::Color::RGBA_PATTERN = T.let(T.unsafe(nil), Regexp)1574Selenium::WebDriver::Support::Color::RGBA_PCT_PATTERN = T.let(T.unsafe(nil), Regexp)1575Selenium::WebDriver::Support::Color::RGB_PATTERN = T.let(T.unsafe(nil), Regexp)1576Selenium::WebDriver::Support::Color::RGB_PCT_PATTERN = T.let(T.unsafe(nil), Regexp)1577module Selenium::WebDriver::Support::Escaper1578 class << self1579 def escape(str); end1580 end1581end1582class Selenium::WebDriver::Support::EventFiringBridge1583 def initialize(delegate, listener); end1584 def clear_element(ref); end1585 def click_element(ref); end1586 def close; end1587 def execute_script(script, *args); end1588 def find_element_by(how, what, parent = T.unsafe(nil)); end1589 def find_elements_by(how, what, parent = T.unsafe(nil)); end1590 def get(url); end1591 def go_back; end1592 def go_forward; end1593 def quit; end1594 def send_keys_to_element(ref, keys); end1595 private1596 def create_element(ref); end1597 def dispatch(name, *args); end1598 def driver; end1599 def method_missing(meth, *args, &blk); end1600end1601class Selenium::WebDriver::Support::Select1602 def initialize(element); end1603 def deselect_all; end1604 def deselect_by(how, what); end1605 def first_selected_option; end1606 def multiple?; end1607 def options; end1608 def select_all; end1609 def select_by(how, what); end1610 def selected_options; end1611 private1612 def deselect_by_index(index); end1613 def deselect_by_text(text); end1614 def deselect_by_value(value); end1615 def deselect_option(option); end1616 def deselect_options(opts); end1617 def find_by_index(index); end1618 def find_by_text(text); end1619 def find_by_value(value); end1620 def select_by_index(index); end1621 def select_by_text(text); end1622 def select_by_value(value); end1623 def select_option(option); end1624 def select_options(opts); end1625end1626class Selenium::WebDriver::TargetLocator1627 def initialize(bridge); end1628 def active_element; end1629 def alert; end1630 def default_content; end1631 def frame(id); end1632 def parent_frame; end1633 def window(id); end1634end1635class Selenium::WebDriver::Timeouts1636 def initialize(bridge); end1637 def implicit_wait=(seconds); end1638 def page_load=(seconds); end1639 def script_timeout=(seconds); end1640end1641class Selenium::WebDriver::TouchActionBuilder < ::Selenium::WebDriver::ActionBuilder1642 def initialize(mouse, keyboard, touch_screen); end1643 def double_tap(element); end1644 def down(x, y = T.unsafe(nil)); end1645 def flick(*args); end1646 def long_press(element); end1647 def move(x, y = T.unsafe(nil)); end1648 def scroll(*args); end1649 def single_tap(element); end1650 def up(x, y = T.unsafe(nil)); end1651end1652class Selenium::WebDriver::TouchScreen1653 def initialize(bridge); end1654 def double_tap(element); end1655 def down(x, y = T.unsafe(nil)); end1656 def flick(*args); end1657 def long_press(element); end1658 def move(x, y = T.unsafe(nil)); end1659 def scroll(*args); end1660 def single_tap(element); end1661 def up(x, y = T.unsafe(nil)); end1662 private1663 def assert_element(element); end1664 def coords_from(x, y); end1665end1666Selenium::WebDriver::TouchScreen::FLICK_SPEED = T.let(T.unsafe(nil), Hash)1667Selenium::WebDriver::VERSION = T.let(T.unsafe(nil), String)1668class Selenium::WebDriver::W3CActionBuilder1669 include ::Selenium::WebDriver::KeyActions1670 include ::Selenium::WebDriver::PointerActions1671 def initialize(bridge, mouse, keyboard, async = T.unsafe(nil)); end1672 def add_key_input(name); end1673 def add_pointer_input(kind, name); end1674 def clear_all_actions; end1675 def devices; end1676 def get_device(name); end1677 def key_inputs; end1678 def pause(device, duration = T.unsafe(nil)); end1679 def pauses(device, number, duration = T.unsafe(nil)); end1680 def perform; end1681 def pointer_inputs; end1682 def release_actions; end1683 private1684 def add_input(device); end1685 def tick(*action_devices); end1686end1687class Selenium::WebDriver::W3CManager < ::Selenium::WebDriver::Manager1688 def cookie_named(name); end1689 def delete_all_cookies; end1690end1691class Selenium::WebDriver::Wait1692 def initialize(opts = T.unsafe(nil)); end1693 def until; end1694 private1695 def current_time; end1696end1697Selenium::WebDriver::Wait::DEFAULT_INTERVAL = T.let(T.unsafe(nil), Float)1698Selenium::WebDriver::Wait::DEFAULT_TIMEOUT = T.let(T.unsafe(nil), Integer)1699class Selenium::WebDriver::Window...

Full Screen

Full Screen

bridge.rb

Source:bridge.rb Github

copy

Full Screen

...123 end124 def status125 execute :status126 end127 # Perform touch actions for W3C module.128 # Generate +touch+ pointer action here and users can use this via +driver.action+129 # - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/W3CActionBuilder.html130 # - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/PointerActions.html131 # - https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/KeyActions.html132 #133 # The pointer type is 'touch' by default in the Appium Ruby client. (The selenium one is 'mouse')134 #135 # @example136 #137 # element = @driver.find_element(:id, "some id")138 # @driver.action.click(element).perform # The 'click' is a part of 'PointerActions'139 #140 def action(async = false)141 action_builder = ::Selenium::WebDriver::ActionBuilder.new(142 self,143 ::Selenium::WebDriver::Interactions.pointer(:touch, name: 'touch'),144 ::Selenium::WebDriver::Interactions.key('keyboard'),145 async146 )147 # Used for default duration of each touch actions.148 # Override from 250 milliseconds to 50 milliseconds in PointerActions included by ::Selenium::WebDriver::ActionBuilder149 action_builder.default_move_duration = 0.05150 action_builder151 end152 # Port from MJSONWP153 def get_timeouts154 execute :get_timeouts155 end156 # Port from MJSONWP157 def session_capabilities158 ::Selenium::WebDriver::Remote::Capabilities.json_create execute(:get_capabilities)159 end160 # For Appium161 # override162 def page_source163 # For W3C164 # execute_script('var source = document.documentElement.outerHTML;' \...

Full Screen

Full Screen

selenium-webdriver-2.33.0.gemspec

Source:selenium-webdriver-2.33.0.gemspec Github

copy

Full Screen

...6 s.authors = ["Jari Bakken"]7 s.date = %q{2013-05-26}8 s.description = %q{WebDriver is a tool for writing automated tests of websites. It aims to mimic the behaviour of a real user, and as such interacts with the HTML of the application.}9 s.email = %q{jari.bakken@gmail.com}10 s.files = ["lib/selenium-client.rb", "lib/selenium-webdriver.rb", "lib/selenium/client.rb", "lib/selenium/server.rb", "lib/selenium/webdriver.rb", "lib/selenium/client/base.rb", "lib/selenium/client/driver.rb", "lib/selenium/client/errors.rb", "lib/selenium/client/extensions.rb", "lib/selenium/client/idiomatic.rb", "lib/selenium/client/javascript_expression_builder.rb", "lib/selenium/client/legacy_driver.rb", "lib/selenium/client/protocol.rb", "lib/selenium/client/selenium_helper.rb", "lib/selenium/client/javascript_frameworks/jquery.rb", "lib/selenium/client/javascript_frameworks/prototype.rb", "lib/selenium/rake/server_task.rb", "lib/selenium/webdriver/android.rb", "lib/selenium/webdriver/chrome.rb", "lib/selenium/webdriver/common.rb", "lib/selenium/webdriver/firefox.rb", "lib/selenium/webdriver/ie.rb", "lib/selenium/webdriver/iphone.rb", "lib/selenium/webdriver/opera.rb", "lib/selenium/webdriver/phantomjs.rb", "lib/selenium/webdriver/remote.rb", "lib/selenium/webdriver/safari.rb", "lib/selenium/webdriver/support.rb", "lib/selenium/webdriver/android/bridge.rb", "lib/selenium/webdriver/chrome/bridge.rb", "lib/selenium/webdriver/chrome/profile.rb", "lib/selenium/webdriver/chrome/service.rb", "lib/selenium/webdriver/common/action_builder.rb", "lib/selenium/webdriver/common/alert.rb", "lib/selenium/webdriver/common/bridge_helper.rb", "lib/selenium/webdriver/common/driver.rb", "lib/selenium/webdriver/common/element.rb", "lib/selenium/webdriver/common/error.rb", "lib/selenium/webdriver/common/file_reaper.rb", "lib/selenium/webdriver/common/json_helper.rb", "lib/selenium/webdriver/common/keyboard.rb", "lib/selenium/webdriver/common/keys.rb", "lib/selenium/webdriver/common/log_entry.rb", "lib/selenium/webdriver/common/mouse.rb", "lib/selenium/webdriver/common/navigation.rb", "lib/selenium/webdriver/common/options.rb", "lib/selenium/webdriver/common/platform.rb", "lib/selenium/webdriver/common/port_prober.rb", "lib/selenium/webdriver/common/profile_helper.rb", "lib/selenium/webdriver/common/proxy.rb", "lib/selenium/webdriver/common/search_context.rb", "lib/selenium/webdriver/common/socket_poller.rb", "lib/selenium/webdriver/common/target_locator.rb", "lib/selenium/webdriver/common/timeouts.rb", "lib/selenium/webdriver/common/touch_action_builder.rb", "lib/selenium/webdriver/common/touch_screen.rb", "lib/selenium/webdriver/common/wait.rb", "lib/selenium/webdriver/common/window.rb", "lib/selenium/webdriver/common/zipper.rb", "lib/selenium/webdriver/common/core_ext/base64.rb", "lib/selenium/webdriver/common/core_ext/dir.rb", "lib/selenium/webdriver/common/core_ext/string.rb", "lib/selenium/webdriver/common/driver_extensions/has_browser_connection.rb", "lib/selenium/webdriver/common/driver_extensions/has_input_devices.rb", "lib/selenium/webdriver/common/driver_extensions/has_location.rb", "lib/selenium/webdriver/common/driver_extensions/has_session_id.rb", "lib/selenium/webdriver/common/driver_extensions/has_touch_screen.rb", "lib/selenium/webdriver/common/driver_extensions/has_web_storage.rb", "lib/selenium/webdriver/common/driver_extensions/rotatable.rb", "lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb", "lib/selenium/webdriver/common/driver_extensions/uploads_files.rb", "lib/selenium/webdriver/common/html5/local_storage.rb", "lib/selenium/webdriver/common/html5/location.rb", "lib/selenium/webdriver/common/html5/session_storage.rb", "lib/selenium/webdriver/common/html5/shared_web_storage.rb", "lib/selenium/webdriver/firefox/binary.rb", "lib/selenium/webdriver/firefox/bridge.rb", "lib/selenium/webdriver/firefox/extension.rb", "lib/selenium/webdriver/firefox/launcher.rb", "lib/selenium/webdriver/firefox/profile.rb", "lib/selenium/webdriver/firefox/profiles_ini.rb", "lib/selenium/webdriver/firefox/socket_lock.rb", "lib/selenium/webdriver/firefox/util.rb", "lib/selenium/webdriver/firefox/extension/prefs.json", "lib/selenium/webdriver/firefox/extension/webdriver.xpi", "lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so", "lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so", "lib/selenium/webdriver/ie/bridge.rb", "lib/selenium/webdriver/ie/server.rb", "lib/selenium/webdriver/iphone/bridge.rb", "lib/selenium/webdriver/opera/bridge.rb", "lib/selenium/webdriver/opera/service.rb", "lib/selenium/webdriver/phantomjs/bridge.rb", "lib/selenium/webdriver/phantomjs/service.rb", "lib/selenium/webdriver/remote/bridge.rb", "lib/selenium/webdriver/remote/capabilities.rb", "lib/selenium/webdriver/remote/commands.rb", "lib/selenium/webdriver/remote/response.rb", "lib/selenium/webdriver/remote/server_error.rb", "lib/selenium/webdriver/remote/http/common.rb", "lib/selenium/webdriver/remote/http/curb.rb", "lib/selenium/webdriver/remote/http/default.rb", "lib/selenium/webdriver/remote/http/persistent.rb", "lib/selenium/webdriver/safari/bridge.rb", "lib/selenium/webdriver/safari/browser.rb", "lib/selenium/webdriver/safari/extension.rb", "lib/selenium/webdriver/safari/server.rb", "lib/selenium/webdriver/safari/resources/client.js", "lib/selenium/webdriver/safari/resources/SafariDriver.safariextz", "lib/selenium/webdriver/support/abstract_event_listener.rb", "lib/selenium/webdriver/support/block_event_listener.rb", "lib/selenium/webdriver/support/color.rb", "lib/selenium/webdriver/support/event_firing_bridge.rb", "lib/selenium/webdriver/support/select.rb", "CHANGES", "README.md", "COPYING"]11 s.homepage = %q{http://selenium.googlecode.com}12 s.require_paths = ["lib"]13 s.rubygems_version = %q{1.3.6}14 s.summary = %q{The next generation developer focused tool for automated testing of webapps}15 if s.respond_to? :specification_version then16 current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION17 s.specification_version = 318 if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then19 s.add_runtime_dependency(%q<multi_json>, ["~> 1.0"])20 s.add_runtime_dependency(%q<rubyzip>, [">= 0"])21 s.add_runtime_dependency(%q<childprocess>, [">= 0.2.5"])22 s.add_runtime_dependency(%q<websocket>, ["~> 1.0.4"])23 s.add_development_dependency(%q<rspec>, ["~> 2.0"])24 s.add_development_dependency(%q<rack>, ["~> 1.0"])...

Full Screen

Full Screen

selenium-webdriver-2.29.0.gemspec

Source:selenium-webdriver-2.29.0.gemspec Github

copy

Full Screen

...6 s.authors = ["Jari Bakken"]7 s.date = %q{2013-01-20}8 s.description = %q{WebDriver is a tool for writing automated tests of websites. It aims to mimic the behaviour of a real user, and as such interacts with the HTML of the application.}9 s.email = %q{jari.bakken@gmail.com}10 s.files = ["lib/selenium-client.rb", "lib/selenium-webdriver.rb", "lib/selenium/client.rb", "lib/selenium/server.rb", "lib/selenium/webdriver.rb", "lib/selenium/client/base.rb", "lib/selenium/client/driver.rb", "lib/selenium/client/errors.rb", "lib/selenium/client/extensions.rb", "lib/selenium/client/idiomatic.rb", "lib/selenium/client/javascript_expression_builder.rb", "lib/selenium/client/legacy_driver.rb", "lib/selenium/client/protocol.rb", "lib/selenium/client/selenium_helper.rb", "lib/selenium/client/javascript_frameworks/jquery.rb", "lib/selenium/client/javascript_frameworks/prototype.rb", "lib/selenium/rake/server_task.rb", "lib/selenium/webdriver/android.rb", "lib/selenium/webdriver/chrome.rb", "lib/selenium/webdriver/common.rb", "lib/selenium/webdriver/firefox.rb", "lib/selenium/webdriver/ie.rb", "lib/selenium/webdriver/iphone.rb", "lib/selenium/webdriver/opera.rb", "lib/selenium/webdriver/phantomjs.rb", "lib/selenium/webdriver/remote.rb", "lib/selenium/webdriver/safari.rb", "lib/selenium/webdriver/support.rb", "lib/selenium/webdriver/android/bridge.rb", "lib/selenium/webdriver/chrome/bridge.rb", "lib/selenium/webdriver/chrome/profile.rb", "lib/selenium/webdriver/chrome/service.rb", "lib/selenium/webdriver/common/action_builder.rb", "lib/selenium/webdriver/common/alert.rb", "lib/selenium/webdriver/common/bridge_helper.rb", "lib/selenium/webdriver/common/driver.rb", "lib/selenium/webdriver/common/element.rb", "lib/selenium/webdriver/common/error.rb", "lib/selenium/webdriver/common/file_reaper.rb", "lib/selenium/webdriver/common/json_helper.rb", "lib/selenium/webdriver/common/keyboard.rb", "lib/selenium/webdriver/common/keys.rb", "lib/selenium/webdriver/common/log_entry.rb", "lib/selenium/webdriver/common/mouse.rb", "lib/selenium/webdriver/common/navigation.rb", "lib/selenium/webdriver/common/options.rb", "lib/selenium/webdriver/common/platform.rb", "lib/selenium/webdriver/common/port_prober.rb", "lib/selenium/webdriver/common/profile_helper.rb", "lib/selenium/webdriver/common/proxy.rb", "lib/selenium/webdriver/common/search_context.rb", "lib/selenium/webdriver/common/socket_poller.rb", "lib/selenium/webdriver/common/target_locator.rb", "lib/selenium/webdriver/common/timeouts.rb", "lib/selenium/webdriver/common/touch_action_builder.rb", "lib/selenium/webdriver/common/touch_screen.rb", "lib/selenium/webdriver/common/wait.rb", "lib/selenium/webdriver/common/window.rb", "lib/selenium/webdriver/common/zipper.rb", "lib/selenium/webdriver/common/core_ext/base64.rb", "lib/selenium/webdriver/common/core_ext/dir.rb", "lib/selenium/webdriver/common/core_ext/string.rb", "lib/selenium/webdriver/common/driver_extensions/has_browser_connection.rb", "lib/selenium/webdriver/common/driver_extensions/has_input_devices.rb", "lib/selenium/webdriver/common/driver_extensions/has_location.rb", "lib/selenium/webdriver/common/driver_extensions/has_touch_screen.rb", "lib/selenium/webdriver/common/driver_extensions/has_web_storage.rb", "lib/selenium/webdriver/common/driver_extensions/rotatable.rb", "lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb", "lib/selenium/webdriver/common/driver_extensions/uploads_files.rb", "lib/selenium/webdriver/common/html5/local_storage.rb", "lib/selenium/webdriver/common/html5/location.rb", "lib/selenium/webdriver/common/html5/session_storage.rb", "lib/selenium/webdriver/common/html5/shared_web_storage.rb", "lib/selenium/webdriver/firefox/binary.rb", "lib/selenium/webdriver/firefox/bridge.rb", "lib/selenium/webdriver/firefox/extension.rb", "lib/selenium/webdriver/firefox/launcher.rb", "lib/selenium/webdriver/firefox/profile.rb", "lib/selenium/webdriver/firefox/profiles_ini.rb", "lib/selenium/webdriver/firefox/socket_lock.rb", "lib/selenium/webdriver/firefox/util.rb", "lib/selenium/webdriver/firefox/extension/prefs.json", "lib/selenium/webdriver/firefox/extension/webdriver.xpi", "lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so", "lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so", "lib/selenium/webdriver/ie/bridge.rb", "lib/selenium/webdriver/ie/server.rb", "lib/selenium/webdriver/iphone/bridge.rb", "lib/selenium/webdriver/opera/bridge.rb", "lib/selenium/webdriver/opera/service.rb", "lib/selenium/webdriver/phantomjs/bridge.rb", "lib/selenium/webdriver/phantomjs/service.rb", "lib/selenium/webdriver/remote/bridge.rb", "lib/selenium/webdriver/remote/capabilities.rb", "lib/selenium/webdriver/remote/commands.rb", "lib/selenium/webdriver/remote/response.rb", "lib/selenium/webdriver/remote/server_error.rb", "lib/selenium/webdriver/remote/http/common.rb", "lib/selenium/webdriver/remote/http/curb.rb", "lib/selenium/webdriver/remote/http/default.rb", "lib/selenium/webdriver/remote/http/persistent.rb", "lib/selenium/webdriver/safari/bridge.rb", "lib/selenium/webdriver/safari/browser.rb", "lib/selenium/webdriver/safari/server.rb", "lib/selenium/webdriver/support/abstract_event_listener.rb", "lib/selenium/webdriver/support/block_event_listener.rb", "lib/selenium/webdriver/support/color.rb", "lib/selenium/webdriver/support/event_firing_bridge.rb", "lib/selenium/webdriver/support/select.rb", "CHANGES", "README", "COPYING"]11 s.homepage = %q{http://selenium.googlecode.com}12 s.require_paths = ["lib"]13 s.rubygems_version = %q{1.3.6}14 s.summary = %q{The next generation developer focused tool for automated testing of webapps}15 if s.respond_to? :specification_version then16 current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION17 s.specification_version = 318 if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then19 s.add_runtime_dependency(%q<multi_json>, ["~> 1.0"])20 s.add_runtime_dependency(%q<rubyzip>, [">= 0"])21 s.add_runtime_dependency(%q<childprocess>, [">= 0.2.5"])22 s.add_runtime_dependency(%q<websocket>, ["~> 1.0.4"])23 s.add_development_dependency(%q<rspec>, ["~> 2.0"])24 s.add_development_dependency(%q<rack>, ["~> 1.0"])...

Full Screen

Full Screen

selenium-webdriver-2.5.0.gemspec

Source:selenium-webdriver-2.5.0.gemspec Github

copy

Full Screen

...6 s.authors = ["Jari Bakken"]7 s.date = %q{2011-08-23}8 s.description = %q{WebDriver is a tool for writing automated tests of websites. It aims to mimic the behaviour of a real user, and as such interacts with the HTML of the application.}9 s.email = %q{jari.bakken@gmail.com}10 s.files = ["lib/selenium-client.rb", "lib/selenium-webdriver.rb", "lib/selenium/client.rb", "lib/selenium/server.rb", "lib/selenium/webdriver.rb", "lib/selenium/client/base.rb", "lib/selenium/client/driver.rb", "lib/selenium/client/errors.rb", "lib/selenium/client/extensions.rb", "lib/selenium/client/idiomatic.rb", "lib/selenium/client/javascript_expression_builder.rb", "lib/selenium/client/legacy_driver.rb", "lib/selenium/client/protocol.rb", "lib/selenium/client/selenium_helper.rb", "lib/selenium/client/javascript_frameworks/jquery.rb", "lib/selenium/client/javascript_frameworks/prototype.rb", "lib/selenium/rake/server_task.rb", "lib/selenium/webdriver/android.rb", "lib/selenium/webdriver/chrome.rb", "lib/selenium/webdriver/common.rb", "lib/selenium/webdriver/firefox.rb", "lib/selenium/webdriver/ie.rb", "lib/selenium/webdriver/iphone.rb", "lib/selenium/webdriver/opera.rb", "lib/selenium/webdriver/remote.rb", "lib/selenium/webdriver/support.rb", "lib/selenium/webdriver/android/bridge.rb", "lib/selenium/webdriver/chrome/bridge.rb", "lib/selenium/webdriver/chrome/profile.rb", "lib/selenium/webdriver/chrome/service.rb", "lib/selenium/webdriver/common/action_builder.rb", "lib/selenium/webdriver/common/alert.rb", "lib/selenium/webdriver/common/bridge_helper.rb", "lib/selenium/webdriver/common/driver.rb", "lib/selenium/webdriver/common/element.rb", "lib/selenium/webdriver/common/error.rb", "lib/selenium/webdriver/common/file_reaper.rb", "lib/selenium/webdriver/common/keyboard.rb", "lib/selenium/webdriver/common/keys.rb", "lib/selenium/webdriver/common/mouse.rb", "lib/selenium/webdriver/common/navigation.rb", "lib/selenium/webdriver/common/options.rb", "lib/selenium/webdriver/common/platform.rb", "lib/selenium/webdriver/common/port_prober.rb", "lib/selenium/webdriver/common/profile_helper.rb", "lib/selenium/webdriver/common/proxy.rb", "lib/selenium/webdriver/common/search_context.rb", "lib/selenium/webdriver/common/socket_poller.rb", "lib/selenium/webdriver/common/target_locator.rb", "lib/selenium/webdriver/common/timeouts.rb", "lib/selenium/webdriver/common/wait.rb", "lib/selenium/webdriver/common/zipper.rb", "lib/selenium/webdriver/common/core_ext/base64.rb", "lib/selenium/webdriver/common/core_ext/dir.rb", "lib/selenium/webdriver/common/core_ext/string.rb", "lib/selenium/webdriver/common/driver_extensions/has_input_devices.rb", "lib/selenium/webdriver/common/driver_extensions/rotatable.rb", "lib/selenium/webdriver/common/driver_extensions/takes_screenshot.rb", "lib/selenium/webdriver/firefox/binary.rb", "lib/selenium/webdriver/firefox/bridge.rb", "lib/selenium/webdriver/firefox/extension.rb", "lib/selenium/webdriver/firefox/launcher.rb", "lib/selenium/webdriver/firefox/profile.rb", "lib/selenium/webdriver/firefox/profiles_ini.rb", "lib/selenium/webdriver/firefox/socket_lock.rb", "lib/selenium/webdriver/firefox/util.rb", "lib/selenium/webdriver/firefox/extension/webdriver.xpi", "lib/selenium/webdriver/firefox/native/linux/amd64/x_ignore_nofocus.so", "lib/selenium/webdriver/firefox/native/linux/x86/x_ignore_nofocus.so", "lib/selenium/webdriver/ie/bridge.rb", "lib/selenium/webdriver/ie/server.rb", "lib/selenium/webdriver/ie/native/win32/IEDriver.dll", "lib/selenium/webdriver/ie/native/x64/IEDriver.dll", "lib/selenium/webdriver/iphone/bridge.rb", "lib/selenium/webdriver/opera/bridge.rb", "lib/selenium/webdriver/opera/service.rb", "lib/selenium/webdriver/remote/bridge.rb", "lib/selenium/webdriver/remote/capabilities.rb", "lib/selenium/webdriver/remote/commands.rb", "lib/selenium/webdriver/remote/response.rb", "lib/selenium/webdriver/remote/server_error.rb", "lib/selenium/webdriver/remote/http/common.rb", "lib/selenium/webdriver/remote/http/curb.rb", "lib/selenium/webdriver/remote/http/default.rb", "lib/selenium/webdriver/remote/http/persistent.rb", "lib/selenium/webdriver/support/abstract_event_listener.rb", "lib/selenium/webdriver/support/block_event_listener.rb", "lib/selenium/webdriver/support/event_firing_bridge.rb", "CHANGES", "README"]11 s.homepage = %q{http://selenium.googlecode.com}12 s.require_paths = ["lib"]13 s.rubygems_version = %q{1.3.7}14 s.summary = %q{The next generation developer focused tool for automated testing of webapps}15 if s.respond_to? :specification_version then16 current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION17 s.specification_version = 318 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then19 s.add_runtime_dependency(%q<json_pure>, [">= 0"])20 s.add_runtime_dependency(%q<rubyzip>, [">= 0"])21 s.add_runtime_dependency(%q<childprocess>, [">= 0.2.1"])22 s.add_runtime_dependency(%q<ffi>, [">= 1.0.7"])23 s.add_development_dependency(%q<rspec>, ["~> 2.0"])24 s.add_development_dependency(%q<rack>, ["~> 1.0"])...

Full Screen

Full Screen

common.rb

Source:common.rb Github

copy

Full Screen

...20require 'selenium/webdriver/common/window'21require 'selenium/webdriver/common/logs'22require 'selenium/webdriver/common/options'23require 'selenium/webdriver/common/search_context'24require 'selenium/webdriver/common/action_builder'25require 'selenium/webdriver/common/touch_action_builder'26require 'selenium/webdriver/common/html5/shared_web_storage'27require 'selenium/webdriver/common/html5/local_storage'28require 'selenium/webdriver/common/html5/session_storage'29require 'selenium/webdriver/common/driver_extensions/takes_screenshot'30require 'selenium/webdriver/common/driver_extensions/rotatable'31require 'selenium/webdriver/common/driver_extensions/has_browser_connection'32require 'selenium/webdriver/common/driver_extensions/has_input_devices'33require 'selenium/webdriver/common/driver_extensions/has_web_storage'34require 'selenium/webdriver/common/driver_extensions/has_location'35require 'selenium/webdriver/common/driver_extensions/has_session_id'36require 'selenium/webdriver/common/driver_extensions/has_touch_screen'37require 'selenium/webdriver/common/driver_extensions/has_remote_status'38require 'selenium/webdriver/common/driver_extensions/uploads_files'39require 'selenium/webdriver/common/keys'...

Full Screen

Full Screen

action

Using AI Code Generation

copy

Full Screen

1driver.action.send_keys("Hello World").perform2driver.action.move_to(driver.find_element(:name, "q")).click.perform3driver.action.move_to(driver.find_element(:name, "q")).click.perform4driver.action.send_keys("Hello World").perform5driver.action.move_to(driver.find_element(:name, "q")).click.perform6driver.action.send_keys("Hello World").perform7driver.action.move_to(driver.find_element(:name, "btnK")).click.perform8driver.action.move_to(driver.find_element(:name, "q")).click.perform9driver.action.send_keys("Hello World").perform10driver.action.move_to(driver.find_element(:name, "btnK")).click.perform11driver.action.send_keys(:enter).perform

Full Screen

Full Screen

action

Using AI Code Generation

copy

Full Screen

1driver.find_element(:name, 'q').send_keys "Selenium WebDriver"2driver.find_element(:name, 'btnG').click3driver.find_element(:name, 'q').send_keys "Selenium WebDriver"4driver.find_element(:name, 'btnG').click5element = driver.find_element(:name, 'q')

Full Screen

Full Screen

action

Using AI Code Generation

copy

Full Screen

1driver.find_element(:name, 'q').send_keys "Selenium"2driver.find_element(:name, 'btnG').click3results = driver.find_element(:id, 'resultStats')

Full Screen

Full Screen

action

Using AI Code Generation

copy

Full Screen

1driver.find_element(:name, 'q').send_keys("Selenium WebDriver")2driver.find_element(:name, 'btnG').click3driver.find_element(:name, 'q').send_keys("Selenium WebDriver")4driver.find_element(:name, 'btnG').click5driver.find_element(:name, 'q').send_keys("Selenium WebDriver")6driver.find_element(:name, 'btnG').click7driver.find_element(:name, 'q').send_keys("Selenium WebDriver")8driver.find_element(:name, 'btnG').click

Full Screen

Full Screen

action

Using AI Code Generation

copy

Full Screen

1search_box = driver.find_element(:name, 'q')2search_button = driver.find_element(:name, 'btnK')3wait = Selenium::WebDriver::Wait.new(:timeout => 10)4wait.until { driver.title.downcase.start_with? "selenium webdriver" }5link = driver.find_element(:link_text, 'Selenium WebDriver')6driver.action.move_to(link).perform7wait = Selenium::WebDriver::Wait.new(:timeout => 10)8wait.until { driver.find_element(:id, 'hdtb-msb-vis').displayed? }9link = driver.find_element(:link_text, 'Selenium Grid')10wait = Selenium::WebDriver::Wait.new(:timeout => 10)11wait.until { driver.title.downcase.start_with? "selenium grid" }

Full Screen

Full Screen

action

Using AI Code Generation

copy

Full Screen

1driver.find_element(:name, 'q').send_keys("Selenium WebDriver")2driver.find_element(:name, 'btnG').click3driver.find_element(:name, 'q').send_keys("Selenium WebDriver")4driver.find_element(:name, 'btnG').click

Full Screen

Full Screen

action

Using AI Code Generation

copy

Full Screen

1search_box = driver.find_element(:name, 'q')2search_button = driver.find_element(:name, 'btnK')3wait = Selenium::WebDriver::Wait.new(:timeout => 10)4wait.until { driver.title.downcase.start_with? "selenium webdriver" }5link = driver.find_element(:link_text, 'Selenium WebDriver')6driver.action.move_to(link).perform7wait = Selenium::WebDriver::Wait.new(:timeout => 10)8wait.until { driver.find_element(:id, 'hdtb-msb-vis').displayed? }9link = driver.find_element(:link_text, 'Selenium Grid')10wait = Selenium::WebDriver::Wait.new(:timeout => 10)11wait.until { driver.title.downcase.start_with? "selenium grid" }

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Selenium automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used method in

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful