How to use initialize method of Selenium Package

Best Selenium code snippet using Selenium.initialize

selenium-webdriver@4.1.0.rbi

Source:selenium-webdriver@4.1.0.rbi Github

copy

Full Screen

...12end13class Selenium::WebDriver::ActionBuilder14 include ::Selenium::WebDriver::KeyActions15 include ::Selenium::WebDriver::PointerActions16 def initialize(bridge, mouse, keyboard, async = T.unsafe(nil)); end17 def add_key_input(name); end18 def add_pointer_input(kind, name); end19 def clear_all_actions; end20 def devices; end21 def get_device(name); end22 def key_inputs; end23 def pause(device, duration = T.unsafe(nil)); end24 def pauses(device, number, duration = T.unsafe(nil)); end25 def perform; end26 def pointer_inputs; end27 def release_actions; end28 private29 def add_input(device); end30 def tick(*action_devices); end31end32class Selenium::WebDriver::Alert33 def initialize(bridge); end34 def accept; end35 def dismiss; end36 def send_keys(keys); end37 def text; end38end39module Selenium::WebDriver::Atoms40 private41 def execute_atom(function_name, *arguments); end42 def read_atom(function); end43end44module Selenium::WebDriver::Chrome45 class << self46 def driver_path; end47 def driver_path=(path); end48 def path; end49 def path=(path); end50 end51end52class Selenium::WebDriver::Chrome::Driver < ::Selenium::WebDriver::Driver53 def browser; end54 private55 def devtools_address; end56 def devtools_url; end57 def devtools_version; end58end59Selenium::WebDriver::Chrome::Driver::EXTENSIONS = T.let(T.unsafe(nil), Array)60module Selenium::WebDriver::Chrome::Features61 def available_log_types; end62 def cast_issue_message; end63 def cast_sink_to_use=(name); end64 def cast_sinks; end65 def commands(command); end66 def delete_network_conditions; end67 def launch_app(id); end68 def log(type); end69 def network_conditions; end70 def network_conditions=(conditions); end71 def send_command(command_params); end72 def set_permission(name, value); end73 def start_cast_tab_mirroring(name); end74 def stop_casting(name); end75end76Selenium::WebDriver::Chrome::Features::CHROME_COMMANDS = T.let(T.unsafe(nil), Hash)77class Selenium::WebDriver::Chrome::Options < ::Selenium::WebDriver::Options78 def initialize(profile: T.unsafe(nil), **opts); end79 def add_argument(arg); end80 def add_emulation(**opts); end81 def add_encoded_extension(encoded); end82 def add_extension(path); end83 def add_preference(name, value); end84 def enable_android(package: T.unsafe(nil), serial_number: T.unsafe(nil), use_running_app: T.unsafe(nil), activity: T.unsafe(nil)); end85 def extensions; end86 def extensions=(extensions); end87 def headless!; end88 def logging_prefs; end89 def logging_prefs=(_arg0); end90 def profile; end91 def profile=(_arg0); end92 private93 def binary_path; end94 def camelize?(key); end95 def enable_logging(browser_options); end96 def encode_extension(path); end97 def process_browser_options(browser_options); end98 def validate_extension(path); end99end100Selenium::WebDriver::Chrome::Options::BROWSER = T.let(T.unsafe(nil), String)101Selenium::WebDriver::Chrome::Options::CAPABILITIES = T.let(T.unsafe(nil), Hash)102Selenium::WebDriver::Chrome::Options::KEY = T.let(T.unsafe(nil), String)103class Selenium::WebDriver::Chrome::Profile104 include ::Selenium::WebDriver::ProfileHelper105 extend ::Selenium::WebDriver::ProfileHelper::ClassMethods106 def initialize(model = T.unsafe(nil)); end107 def [](key); end108 def []=(key, value); end109 def add_encoded_extension(encoded); end110 def add_extension(path); end111 def as_json(*_arg0); end112 def directory; end113 def layout_on_disk; end114 private115 def prefs; end116 def prefs_file_for(dir); end117 def read_model_prefs; end118 def write_prefs_to(dir); end119end120class Selenium::WebDriver::Chrome::Service < ::Selenium::WebDriver::Service121 private122 def extract_service_args(driver_opts); end123end124Selenium::WebDriver::Chrome::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)125Selenium::WebDriver::Chrome::Service::EXECUTABLE = T.let(T.unsafe(nil), String)126Selenium::WebDriver::Chrome::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)127Selenium::WebDriver::Chrome::Service::SHUTDOWN_SUPPORTED = T.let(T.unsafe(nil), TrueClass)128class Selenium::WebDriver::DevTools129 def initialize(url:); end130 def callbacks; end131 def close; end132 def method_missing(method, *_args); end133 def send_cmd(method, **params); end134 private135 def attach_socket_listener; end136 def callback_thread(params); end137 def error_message(error); end138 def incoming_frame; end139 def next_id; end140 def process_frame(frame); end141 def process_handshake; end142 def respond_to_missing?(method, *_args); end143 def socket; end144 def start_session; end145 def wait; end146 def ws; end147end148class Selenium::WebDriver::DevTools::ConsoleEvent149 def initialize(type:, timestamp:, args:); end150 def args; end151 def args=(_arg0); end152 def timestamp; end153 def timestamp=(_arg0); end154 def type; end155 def type=(_arg0); end156end157class Selenium::WebDriver::DevTools::ExceptionEvent158 def initialize(description:, timestamp:, stacktrace:); end159 def description; end160 def description=(_arg0); end161 def stacktrace; end162 def stacktrace=(_arg0); end163 def timestamp; end164 def timestamp=(_arg0); end165end166class Selenium::WebDriver::DevTools::MutationEvent167 def initialize(element:, attribute_name:, current_value:, old_value:); end168 def attribute_name; end169 def attribute_name=(_arg0); end170 def current_value; end171 def current_value=(_arg0); end172 def element; end173 def element=(_arg0); end174 def old_value; end175 def old_value=(_arg0); end176end177class Selenium::WebDriver::DevTools::PinnedScript178 def initialize(script); end179 def callable; end180 def devtools_identifier; end181 def devtools_identifier=(_arg0); end182 def key; end183 def key=(_arg0); end184 def remove; end185 def script; end186 def script=(_arg0); end187 def to_json(*_arg0); end188end189Selenium::WebDriver::DevTools::RESPONSE_WAIT_INTERVAL = T.let(T.unsafe(nil), Float)190Selenium::WebDriver::DevTools::RESPONSE_WAIT_TIMEOUT = T.let(T.unsafe(nil), Integer)191class Selenium::WebDriver::DevTools::Request192 def initialize(id:, url:, method:, headers:, post_data:); end193 def ==(other); end194 def headers; end195 def headers=(_arg0); end196 def id; end197 def inspect; end198 def method; end199 def method=(_arg0); end200 def post_data; end201 def post_data=(_arg0); end202 def url; end203 def url=(_arg0); end204 class << self205 def from(id, params); end206 end207end208class Selenium::WebDriver::DevTools::Response209 def initialize(id:, code:, body:, headers:); end210 def ==(other); end211 def body; end212 def body=(_arg0); end213 def code; end214 def code=(_arg0); end215 def headers; end216 def headers=(_arg0); end217 def id; end218 def inspect; end219 class << self220 def from(id, encoded_body, params); end221 end222end223class Selenium::WebDriver::Dimension < ::Struct224 def height; end225 def height=(_); end226 def width; end227 def width=(_); end228 class << self229 def [](*_arg0); end230 def inspect; end231 def keyword_init?; end232 def members; end233 def new(*_arg0); end234 end235end236class Selenium::WebDriver::Driver237 include ::Selenium::WebDriver::SearchContext238 include ::Selenium::WebDriver::TakesScreenshot239 def initialize(bridge: T.unsafe(nil), listener: T.unsafe(nil), **opts); end240 def [](sel); end241 def action; end242 def all(*args); end243 def browser; end244 def capabilities; end245 def close; end246 def current_url; end247 def execute_async_script(script, *args); end248 def execute_script(script, *args); end249 def first(*args); end250 def get(url); end251 def inspect; end252 def keyboard; end253 def manage; end254 def mouse; end255 def navigate; end256 def page_source; end257 def quit; end258 def ref; end259 def script(script, *args); end260 def status; end261 def switch_to; end262 def title; end263 def window_handle; end264 def window_handles; end265 private266 def add_extensions(browser); end267 def bridge; end268 def create_bridge(**opts); end269 def generate_capabilities(cap_array); end270 def screenshot; end271 def service_url(opts); end272 class << self273 def for(browser, opts = T.unsafe(nil)); end274 end275end276module Selenium::WebDriver::DriverExtensions; end277module Selenium::WebDriver::DriverExtensions::DownloadsFiles278 def download_path=(path); end279end280module Selenium::WebDriver::DriverExtensions::FullPageScreenshot281 def save_full_page_screenshot(path); end282 private283 def full_screenshot; end284end285module Selenium::WebDriver::DriverExtensions::HasAddons286 def install_addon(path, temporary = T.unsafe(nil)); end287 def uninstall_addon(id); end288end289module Selenium::WebDriver::DriverExtensions::HasApplePermissions290 def permissions; end291 def permissions=(permissions); end292end293module Selenium::WebDriver::DriverExtensions::HasAuthentication294 def register(username:, password:, uri: T.unsafe(nil)); end295 private296 def auth_handlers; end297 def authenticate(request_id, url); end298end299module Selenium::WebDriver::DriverExtensions::HasCDP300 def execute_cdp(cmd, **params); end301end302module Selenium::WebDriver::DriverExtensions::HasCasting303 def cast_issue_message; end304 def cast_sink_to_use=(name); end305 def cast_sinks; end306 def start_cast_tab_mirroring(name); end307 def stop_casting(name); end308end309module Selenium::WebDriver::DriverExtensions::HasContext310 def context; end311 def context=(value); end312end313module Selenium::WebDriver::DriverExtensions::HasDebugger314 def attach_debugger; end315end316module Selenium::WebDriver::DriverExtensions::HasDevTools317 def devtools; end318end319module Selenium::WebDriver::DriverExtensions::HasLaunching320 def launch_app(id); end321end322module Selenium::WebDriver::DriverExtensions::HasLocation323 def location; end324 def location=(*_arg0); end325 def set_location; end326end327module Selenium::WebDriver::DriverExtensions::HasLogEvents328 include ::Selenium::WebDriver::Atoms329 def on_log_event(kind, &block); end330 private331 def log_console_events; end332 def log_exception_events; end333 def log_listeners; end334 def log_mutation_event(params); end335 def log_mutation_events; end336 def mutation_listener; end337end338Selenium::WebDriver::DriverExtensions::HasLogEvents::KINDS = T.let(T.unsafe(nil), Array)339module Selenium::WebDriver::DriverExtensions::HasLogs340 def logs; end341end342module Selenium::WebDriver::DriverExtensions::HasNetworkConditions343 def delete_network_conditions; end344 def network_conditions; end345 def network_conditions=(conditions); end346end347module Selenium::WebDriver::DriverExtensions::HasNetworkConnection348 def network_connection_type; end349 def network_connection_type=(*_arg0); end350end351module Selenium::WebDriver::DriverExtensions::HasNetworkInterception352 def intercept(&block); end353 private354 def fetch_response_body(id); end355 def intercept_request(id, params, &block); end356 def intercept_response(id, params); end357 def pending_response_requests; end358end359module Selenium::WebDriver::DriverExtensions::HasPermissions360 def add_permission(name, value); end361 def add_permissions(opt); end362end363module Selenium::WebDriver::DriverExtensions::HasPinnedScripts364 def pin_script(script); end365 def pinned_scripts; end366 def unpin_script(script); end367end368module Selenium::WebDriver::DriverExtensions::HasRemoteStatus369 def remote_status; end370end371module Selenium::WebDriver::DriverExtensions::HasSessionId372 def session_id; end373end374module Selenium::WebDriver::DriverExtensions::HasWebStorage375 def local_storage; end376 def session_storage; end377end378module Selenium::WebDriver::DriverExtensions::PrintsPage379 def print_page(**options); end380 def save_print_page(path, **options); end381end382module Selenium::WebDriver::DriverExtensions::UploadsFiles383 def file_detector=(detector); end384end385module Selenium::WebDriver::Edge386 class << self387 def path; end388 def path=(path); end389 end390end391class Selenium::WebDriver::Edge::Driver < ::Selenium::WebDriver::Chrome::Driver392 def browser; end393 private394 def devtools_address; end395end396module Selenium::WebDriver::Edge::Features397 include ::Selenium::WebDriver::Chrome::Features398 def commands(command); end399end400Selenium::WebDriver::Edge::Features::EDGE_COMMANDS = T.let(T.unsafe(nil), Hash)401class Selenium::WebDriver::Edge::Options < ::Selenium::WebDriver::Chrome::Options402 protected403 def enable_logging(browser_options); end404 private405 def binary_path; end406end407Selenium::WebDriver::Edge::Options::BROWSER = T.let(T.unsafe(nil), String)408Selenium::WebDriver::Edge::Options::KEY = T.let(T.unsafe(nil), String)409class Selenium::WebDriver::Edge::Profile < ::Selenium::WebDriver::Chrome::Profile; end410class Selenium::WebDriver::Edge::Service < ::Selenium::WebDriver::Chrome::Service; end411Selenium::WebDriver::Edge::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)412Selenium::WebDriver::Edge::Service::EXECUTABLE = T.let(T.unsafe(nil), String)413Selenium::WebDriver::Edge::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)414Selenium::WebDriver::Edge::Service::SHUTDOWN_SUPPORTED = T.let(T.unsafe(nil), TrueClass)415class Selenium::WebDriver::Element416 include ::Selenium::WebDriver::SearchContext417 include ::Selenium::WebDriver::TakesScreenshot418 def initialize(bridge, id); end419 def ==(other); end420 def [](name); end421 def accessible_name; end422 def all(*args); end423 def aria_role; end424 def as_json(*_arg0); end425 def attribute(name); end426 def clear; end427 def click; end428 def css_value(prop); end429 def displayed?; end430 def dom_attribute(name); end431 def enabled?; end432 def eql?(other); end433 def first(*args); end434 def hash; end435 def inspect; end436 def location; end437 def location_once_scrolled_into_view; end438 def property(name); end439 def rect; end440 def ref; end441 def selected?; end442 def send_key(*args); end443 def send_keys(*args); end444 def shadow_root; end445 def size; end446 def style(prop); end447 def submit; end448 def tag_name; end449 def text; end450 def to_json(*_arg0); end451 private452 def bridge; end453 def screenshot; end454 def selectable?; end455end456Selenium::WebDriver::Element::ELEMENT_KEY = T.let(T.unsafe(nil), String)457module Selenium::WebDriver::Error458 class << self459 def for_error(error); end460 end461end462class Selenium::WebDriver::Error::DetachedShadowRootError < ::Selenium::WebDriver::Error::WebDriverError; end463class Selenium::WebDriver::Error::ElementClickInterceptedError < ::Selenium::WebDriver::Error::WebDriverError; end464class Selenium::WebDriver::Error::ElementNotInteractableError < ::Selenium::WebDriver::Error::WebDriverError; end465class Selenium::WebDriver::Error::InsecureCertificateError < ::Selenium::WebDriver::Error::WebDriverError; end466class Selenium::WebDriver::Error::InvalidArgumentError < ::Selenium::WebDriver::Error::WebDriverError; end467class Selenium::WebDriver::Error::InvalidCookieDomainError < ::Selenium::WebDriver::Error::WebDriverError; end468class Selenium::WebDriver::Error::InvalidElementStateError < ::Selenium::WebDriver::Error::WebDriverError; end469class Selenium::WebDriver::Error::InvalidSelectorError < ::Selenium::WebDriver::Error::WebDriverError; end470class Selenium::WebDriver::Error::InvalidSessionIdError < ::Selenium::WebDriver::Error::WebDriverError; end471class Selenium::WebDriver::Error::JavascriptError < ::Selenium::WebDriver::Error::WebDriverError; end472class Selenium::WebDriver::Error::MoveTargetOutOfBoundsError < ::Selenium::WebDriver::Error::WebDriverError; end473class Selenium::WebDriver::Error::NoSuchAlertError < ::Selenium::WebDriver::Error::WebDriverError; end474class Selenium::WebDriver::Error::NoSuchCookieError < ::Selenium::WebDriver::Error::WebDriverError; end475class Selenium::WebDriver::Error::NoSuchElementError < ::Selenium::WebDriver::Error::WebDriverError; end476class Selenium::WebDriver::Error::NoSuchFrameError < ::Selenium::WebDriver::Error::WebDriverError; end477class Selenium::WebDriver::Error::NoSuchShadowRootError < ::Selenium::WebDriver::Error::WebDriverError; end478class Selenium::WebDriver::Error::NoSuchWindowError < ::Selenium::WebDriver::Error::WebDriverError; end479class Selenium::WebDriver::Error::ScriptTimeoutError < ::Selenium::WebDriver::Error::WebDriverError; end480class Selenium::WebDriver::Error::ServerError < ::StandardError481 def initialize(response); end482end483class Selenium::WebDriver::Error::SessionNotCreatedError < ::Selenium::WebDriver::Error::WebDriverError; end484class Selenium::WebDriver::Error::StaleElementReferenceError < ::Selenium::WebDriver::Error::WebDriverError; end485class Selenium::WebDriver::Error::TimeoutError < ::Selenium::WebDriver::Error::WebDriverError; end486class Selenium::WebDriver::Error::UnableToCaptureScreenError < ::Selenium::WebDriver::Error::WebDriverError; end487class Selenium::WebDriver::Error::UnableToSetCookieError < ::Selenium::WebDriver::Error::WebDriverError; end488class Selenium::WebDriver::Error::UnexpectedAlertOpenError < ::Selenium::WebDriver::Error::WebDriverError; end489class Selenium::WebDriver::Error::UnknownCommandError < ::Selenium::WebDriver::Error::WebDriverError; end490class Selenium::WebDriver::Error::UnknownError < ::Selenium::WebDriver::Error::WebDriverError; end491class Selenium::WebDriver::Error::UnknownMethodError < ::Selenium::WebDriver::Error::WebDriverError; end492class Selenium::WebDriver::Error::UnsupportedOperationError < ::Selenium::WebDriver::Error::WebDriverError; end493class Selenium::WebDriver::Error::WebDriverError < ::StandardError; end494module Selenium::WebDriver::FileReaper495 class << self496 def <<(file); end497 def reap(file); end498 def reap!; end499 def reap=(_arg0); end500 def reap?; end501 def tmp_files; end502 end503end504module Selenium::WebDriver::Firefox505 class << self506 def driver_path; end507 def driver_path=(path); end508 def path; end509 def path=(path); end510 end511end512Selenium::WebDriver::Firefox::DEFAULT_ASSUME_UNTRUSTED_ISSUER = T.let(T.unsafe(nil), TrueClass)513Selenium::WebDriver::Firefox::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)514Selenium::WebDriver::Firefox::DEVTOOLS_VERSION = T.let(T.unsafe(nil), Integer)515class Selenium::WebDriver::Firefox::Driver < ::Selenium::WebDriver::Driver516 def browser; end517 private518 def devtools_url; end519 def devtools_version; end520end521Selenium::WebDriver::Firefox::Driver::EXTENSIONS = T.let(T.unsafe(nil), Array)522class Selenium::WebDriver::Firefox::Extension523 def initialize(path); end524 def write_to(extensions_dir); end525 private526 def applications_gecko_id(manifest); end527 def create_root; end528 def name_and_version(manifest); end529 def read_id(directory); end530 def read_id_from_install_rdf(directory); end531 def read_id_from_manifest_json(directory); end532end533Selenium::WebDriver::Firefox::Extension::NAMESPACE = T.let(T.unsafe(nil), String)534module Selenium::WebDriver::Firefox::Features535 def commands(command); end536 def context; end537 def context=(context); end538 def full_screenshot; end539 def install_addon(path, temporary); end540 def uninstall_addon(id); end541end542Selenium::WebDriver::Firefox::Features::FIREFOX_COMMANDS = T.let(T.unsafe(nil), Hash)543class Selenium::WebDriver::Firefox::Options < ::Selenium::WebDriver::Options544 def initialize(log_level: T.unsafe(nil), **opts); end545 def add_argument(arg); end546 def add_preference(name, value); end547 def debugger_address; end548 def debugger_address=(_arg0); end549 def enable_android(package: T.unsafe(nil), serial_number: T.unsafe(nil), activity: T.unsafe(nil), intent_arguments: T.unsafe(nil)); end550 def headless!; end551 def log_level; end552 def log_level=(level); end553 def profile; end554 def profile=(profile); end555 private556 def camelize?(key); end557 def process_browser_options(browser_options); end558 def process_profile(profile); end559end560Selenium::WebDriver::Firefox::Options::BROWSER = T.let(T.unsafe(nil), String)561Selenium::WebDriver::Firefox::Options::CAPABILITIES = T.let(T.unsafe(nil), Hash)562Selenium::WebDriver::Firefox::Options::KEY = T.let(T.unsafe(nil), String)563class Selenium::WebDriver::Firefox::Profile564 include ::Selenium::WebDriver::ProfileHelper565 extend ::Selenium::WebDriver::ProfileHelper::ClassMethods566 def initialize(model = T.unsafe(nil)); end567 def []=(key, value); end568 def add_extension(path, name = T.unsafe(nil)); end569 def as_json; end570 def layout_on_disk; end571 def load_no_focus_lib=(_arg0); end572 def log_file; end573 def log_file=(file); end574 def name; end575 def port=(port); end576 def proxy=(proxy); end577 def secure_ssl=(_arg0); end578 private579 def delete_extensions_cache(directory); end580 def delete_lock_files(directory); end581 def extension_name_for(path); end582 def install_extensions(directory); end583 def read_model_prefs; end584 def read_user_prefs(path); end585 def set_manual_proxy_preference(key, value); end586 def stringified?(str); end587 def update_user_prefs_in(directory); end588 def write_prefs(prefs, path); end589 class << self590 def decoded(json); end591 def from_name(name); end592 def ini; end593 end594end595Selenium::WebDriver::Firefox::Profile::DEFAULT_PREFERENCES = T.let(T.unsafe(nil), Hash)596Selenium::WebDriver::Firefox::Profile::VALID_PREFERENCE_TYPES = T.let(T.unsafe(nil), Array)597class Selenium::WebDriver::Firefox::ProfilesIni598 def initialize; end599 def [](name); end600 def refresh; end601 private602 def parse; end603 def path_for(name, is_relative, path); end604end605class Selenium::WebDriver::Firefox::Service < ::Selenium::WebDriver::Service606 private607 def extract_service_args(driver_opts); end608end609Selenium::WebDriver::Firefox::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)610Selenium::WebDriver::Firefox::Service::EXECUTABLE = T.let(T.unsafe(nil), String)611Selenium::WebDriver::Firefox::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)612module Selenium::WebDriver::HTML5; end613class Selenium::WebDriver::HTML5::LocalStorage614 include ::Enumerable615 include ::Selenium::WebDriver::HTML5::SharedWebStorage616 def initialize(bridge); end617 def [](key); end618 def []=(key, value); end619 def clear; end620 def delete(key); end621 def keys; end622 def size; end623end624class Selenium::WebDriver::HTML5::SessionStorage625 include ::Enumerable626 include ::Selenium::WebDriver::HTML5::SharedWebStorage627 def initialize(bridge); end628 def [](key); end629 def []=(key, value); end630 def clear; end631 def delete(key); end632 def keys; end633 def size; end634end635module Selenium::WebDriver::HTML5::SharedWebStorage636 include ::Enumerable637 def each; end638 def empty?; end639 def fetch(key); end640 def has_key?(key); end641 def key?(key); end642 def member?(key); end643end644module Selenium::WebDriver::IE645 class << self646 def driver_path; end647 def driver_path=(path); end648 end649end650class Selenium::WebDriver::IE::Driver < ::Selenium::WebDriver::Driver651 def browser; end652end653Selenium::WebDriver::IE::Driver::EXTENSIONS = T.let(T.unsafe(nil), Array)654class Selenium::WebDriver::IE::Options < ::Selenium::WebDriver::Options655 def initialize(**opts); end656 def add_argument(arg); end657 def args; end658 private659 def process_browser_options(browser_options); end660end661Selenium::WebDriver::IE::Options::BROWSER = T.let(T.unsafe(nil), String)662Selenium::WebDriver::IE::Options::CAPABILITIES = T.let(T.unsafe(nil), Hash)663Selenium::WebDriver::IE::Options::KEY = T.let(T.unsafe(nil), String)664Selenium::WebDriver::IE::Options::SCROLL_BOTTOM = T.let(T.unsafe(nil), Integer)665Selenium::WebDriver::IE::Options::SCROLL_TOP = T.let(T.unsafe(nil), Integer)666class Selenium::WebDriver::IE::Service < ::Selenium::WebDriver::Service667 private668 def extract_service_args(driver_opts); end669end670Selenium::WebDriver::IE::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)671Selenium::WebDriver::IE::Service::EXECUTABLE = T.let(T.unsafe(nil), String)672Selenium::WebDriver::IE::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)673Selenium::WebDriver::IE::Service::SHUTDOWN_SUPPORTED = T.let(T.unsafe(nil), TrueClass)674module Selenium::WebDriver::Interactions675 class << self676 def key(name); end677 def none(name = T.unsafe(nil)); end678 def pointer(kind, **kwargs); end679 end680end681class Selenium::WebDriver::Interactions::InputDevice682 def initialize(name = T.unsafe(nil)); end683 def actions; end684 def add_action(action); end685 def clear_actions; end686 def create_pause(duration = T.unsafe(nil)); end687 def name; end688 def no_actions?; end689end690class Selenium::WebDriver::Interactions::Interaction691 def initialize(source); end692 def source; end693end694Selenium::WebDriver::Interactions::Interaction::PAUSE = T.let(T.unsafe(nil), Symbol)695Selenium::WebDriver::Interactions::KEY = T.let(T.unsafe(nil), Symbol)696class Selenium::WebDriver::Interactions::KeyInput < ::Selenium::WebDriver::Interactions::InputDevice697 def create_key_down(key); end698 def create_key_up(key); end699 def encode; end700 def type; end701end702Selenium::WebDriver::Interactions::KeyInput::SUBTYPES = T.let(T.unsafe(nil), Hash)703class Selenium::WebDriver::Interactions::KeyInput::TypingInteraction < ::Selenium::WebDriver::Interactions::Interaction704 def initialize(source, type, key); end705 def assert_type(type); end706 def encode; end707 def type; end708end709Selenium::WebDriver::Interactions::NONE = T.let(T.unsafe(nil), Symbol)710class Selenium::WebDriver::Interactions::NoneInput < ::Selenium::WebDriver::Interactions::InputDevice711 def encode; end712 def type; end713end714Selenium::WebDriver::Interactions::POINTER = T.let(T.unsafe(nil), Symbol)715class Selenium::WebDriver::Interactions::Pause < ::Selenium::WebDriver::Interactions::Interaction716 def initialize(source, duration = T.unsafe(nil)); end717 def encode; end718 def type; end719end720class Selenium::WebDriver::Interactions::PointerCancel < ::Selenium::WebDriver::Interactions::Interaction721 def encode; end722 def type; end723end724class Selenium::WebDriver::Interactions::PointerInput < ::Selenium::WebDriver::Interactions::InputDevice725 def initialize(kind, name: T.unsafe(nil)); end726 def assert_kind(pointer); end727 def create_pointer_cancel; end728 def create_pointer_down(button); end729 def create_pointer_move(duration: T.unsafe(nil), x: T.unsafe(nil), y: T.unsafe(nil), element: T.unsafe(nil), origin: T.unsafe(nil)); end730 def create_pointer_up(button); end731 def encode; end732 def kind; end733 def type; end734end735Selenium::WebDriver::Interactions::PointerInput::KIND = T.let(T.unsafe(nil), Hash)736class Selenium::WebDriver::Interactions::PointerMove < ::Selenium::WebDriver::Interactions::Interaction737 def initialize(source, duration, x, y, element: T.unsafe(nil), origin: T.unsafe(nil)); end738 def encode; end739 def type; end740end741Selenium::WebDriver::Interactions::PointerMove::ORIGINS = T.let(T.unsafe(nil), Array)742Selenium::WebDriver::Interactions::PointerMove::POINTER = T.let(T.unsafe(nil), Symbol)743Selenium::WebDriver::Interactions::PointerMove::VIEWPORT = T.let(T.unsafe(nil), Symbol)744class Selenium::WebDriver::Interactions::PointerPress < ::Selenium::WebDriver::Interactions::Interaction745 def initialize(source, direction, button); end746 def assert_button(button); end747 def assert_direction(direction); end748 def encode; end749 def type; end750end751Selenium::WebDriver::Interactions::PointerPress::BUTTONS = T.let(T.unsafe(nil), Hash)752Selenium::WebDriver::Interactions::PointerPress::DIRECTIONS = T.let(T.unsafe(nil), Hash)753Selenium::WebDriver::Interactions::SOURCE_TYPES = T.let(T.unsafe(nil), Array)754module Selenium::WebDriver::KeyActions755 def key_down(*args, device: T.unsafe(nil)); end756 def key_up(*args, device: T.unsafe(nil)); end757 def send_keys(*args, device: T.unsafe(nil)); end758 private759 def key_action(*args, action: T.unsafe(nil), device: T.unsafe(nil)); end760end761module Selenium::WebDriver::Keys762 class << self763 def [](key); end764 def encode(keys); end765 def encode_key(key); end766 end767end768Selenium::WebDriver::Keys::KEYS = T.let(T.unsafe(nil), Hash)769class Selenium::WebDriver::Location < ::Struct770 def altitude; end771 def altitude=(_); end772 def latitude; end773 def latitude=(_); end774 def longitude; end775 def longitude=(_); end776 class << self777 def [](*_arg0); end778 def inspect; end779 def keyword_init?; end780 def members; end781 def new(*_arg0); end782 end783end784class Selenium::WebDriver::LogEntry785 def initialize(level, timestamp, message); end786 def as_json(*_arg0); end787 def level; end788 def message; end789 def time; end790 def timestamp; end791 def to_s; end792end793class Selenium::WebDriver::Logger794 extend ::Forwardable795 def initialize(progname = T.unsafe(nil)); end796 def close(*args, **_arg1, &block); end797 def debug(*args, **_arg1, &block); end798 def debug?(*args, **_arg1, &block); end799 def deprecate(old, new = T.unsafe(nil), id: T.unsafe(nil), reference: T.unsafe(nil), &block); end800 def error(*args, **_arg1, &block); end801 def error?(*args, **_arg1, &block); end802 def fatal(*args, **_arg1, &block); end803 def fatal?(*args, **_arg1, &block); end804 def ignore(id); end805 def info(*args, **_arg1, &block); end806 def info?(*args, **_arg1, &block); end807 def io; end808 def level(*args, **_arg1, &block); end809 def level=(*args, **_arg1, &block); end810 def output=(io); end811 def warn(message, id: T.unsafe(nil)); end812 def warn?(*args, **_arg1, &block); end813 private814 def create_logger(name); end815 def default_level; end816end817class Selenium::WebDriver::Logs818 def initialize(bridge); end819 def available_types; end820 def get(type); end821end822class Selenium::WebDriver::Manager823 def initialize(bridge); end824 def add_cookie(opts = T.unsafe(nil)); end825 def all_cookies; end826 def cookie_named(name); end827 def delete_all_cookies; end828 def delete_cookie(name); end829 def logs; end830 def new_window(type = T.unsafe(nil)); end831 def timeouts; end832 def window; end833 private834 def convert_cookie(cookie); end835 def datetime_at(int); end836 def seconds_from(obj); end837 def strip_port(str); end838end839Selenium::WebDriver::Manager::SECONDS_PER_DAY = T.let(T.unsafe(nil), Float)840class Selenium::WebDriver::Navigation841 def initialize(bridge); end842 def back; end843 def forward; end844 def refresh; end845 def to(url); end846end847class Selenium::WebDriver::Options848 def initialize(options: T.unsafe(nil), **opts); end849 def ==(other); end850 def add_option(name, value = T.unsafe(nil)); end851 def as_json(*_arg0); end852 def eql?(other); end853 def options; end854 def options=(_arg0); end855 private856 def camel_case(str); end857 def camelize?(_key); end858 def convert_json_key(key, camelize: T.unsafe(nil)); end859 def generate_as_json(value, camelize_keys: T.unsafe(nil)); end860 def process_browser_options(_browser_options); end861 def process_json_hash(value, camelize_keys); end862 def process_w3c_options(options); end863 def w3c?(key); end864 class << self865 def chrome(**opts); end866 def driver_path; end867 def edge(**opts); end868 def firefox(**opts); end869 def ie(**opts); end870 def internet_explorer(**opts); end871 def microsoftedge(**opts); end872 def safari(**opts); end873 def set_capabilities; end874 end875end876Selenium::WebDriver::Options::W3C_OPTIONS = T.let(T.unsafe(nil), Array)877module Selenium::WebDriver::Platform878 private879 def assert_executable(path); end880 def assert_file(path); end881 def bitsize; end882 def ci; end883 def cygwin?; end884 def cygwin_path(path, **opts); end885 def engine; end886 def exit_hook; end887 def find_binary(*binary_names); end888 def find_in_program_files(*binary_names); end889 def home; end890 def interfaces; end891 def ip; end892 def jruby?; end893 def linux?; end894 def localhost; end895 def mac?; end896 def make_writable(file); end897 def null_device; end898 def os; end899 def ruby_version; end900 def unix_path(path); end901 def windows?; end902 def windows_path(path); end903 def wrap_in_quotes_if_necessary(str); end904 def wsl?; end905 class << self906 def assert_executable(path); end907 def assert_file(path); end908 def bitsize; end909 def ci; end910 def cygwin?; end911 def cygwin_path(path, **opts); end912 def engine; end913 def exit_hook; end914 def find_binary(*binary_names); end915 def find_in_program_files(*binary_names); end916 def home; end917 def interfaces; end918 def ip; end919 def jruby?; end920 def linux?; end921 def localhost; end922 def mac?; end923 def make_writable(file); end924 def null_device; end925 def os; end926 def ruby_version; end927 def unix_path(path); end928 def windows?; end929 def windows_path(path); end930 def wrap_in_quotes_if_necessary(str); end931 def wsl?; end932 end933end934class Selenium::WebDriver::Point < ::Struct935 def x; end936 def x=(_); end937 def y; end938 def y=(_); end939 class << self940 def [](*_arg0); end941 def inspect; end942 def keyword_init?; end943 def members; end944 def new(*_arg0); end945 end946end947module Selenium::WebDriver::PointerActions948 def click(element = T.unsafe(nil), device: T.unsafe(nil)); end949 def click_and_hold(element = T.unsafe(nil), device: T.unsafe(nil)); end950 def context_click(element = T.unsafe(nil), device: T.unsafe(nil)); end951 def default_move_duration; end952 def default_move_duration=(_arg0); end953 def double_click(element = T.unsafe(nil), device: T.unsafe(nil)); end954 def drag_and_drop(source, target, device: T.unsafe(nil)); end955 def drag_and_drop_by(source, right_by, down_by, device: T.unsafe(nil)); end956 def move_by(right_by, down_by, device: T.unsafe(nil)); end957 def move_to(element, right_by = T.unsafe(nil), down_by = T.unsafe(nil), device: T.unsafe(nil)); end958 def move_to_location(x, y, device: T.unsafe(nil)); end959 def pointer_down(button, device: T.unsafe(nil)); end960 def pointer_up(button, device: T.unsafe(nil)); end961 def release(device: T.unsafe(nil)); end962 private963 def button_action(button, action: T.unsafe(nil), device: T.unsafe(nil)); end964 def get_pointer(device = T.unsafe(nil)); end965end966class Selenium::WebDriver::PortProber967 class << self968 def above(port); end969 def free?(port); end970 end971end972Selenium::WebDriver::PortProber::IGNORED_ERRORS = T.let(T.unsafe(nil), Array)973module Selenium::WebDriver::ProfileHelper974 mixes_in_class_methods ::Selenium::WebDriver::ProfileHelper::ClassMethods975 def as_json(*_arg0); end976 def encoded; end977 def to_json(*_arg0); end978 private979 def create_tmp_copy(directory); end980 def verify_model(model); end981 class << self982 def decoded(json); end983 def included(base); end984 end985end986module Selenium::WebDriver::ProfileHelper::ClassMethods987 def from_json(json); end988end989class Selenium::WebDriver::Proxy990 def initialize(opts = T.unsafe(nil)); end991 def ==(other); end992 def as_json(*_arg0); end993 def auto_detect; end994 def auto_detect=(bool); end995 def eql?(other); end996 def ftp; end997 def ftp=(value); end998 def http; end999 def http=(value); end1000 def no_proxy; end1001 def no_proxy=(value); end1002 def pac; end1003 def pac=(url); end1004 def socks; end1005 def socks=(value); end1006 def socks_password; end1007 def socks_password=(value); end1008 def socks_username; end1009 def socks_username=(value); end1010 def socks_version; end1011 def socks_version=(value); end1012 def ssl; end1013 def ssl=(value); end1014 def to_json(*_arg0); end1015 def type; end1016 def type=(type); end1017 class << self1018 def json_create(data); end1019 end1020end1021Selenium::WebDriver::Proxy::ALLOWED = T.let(T.unsafe(nil), Hash)1022Selenium::WebDriver::Proxy::TYPES = T.let(T.unsafe(nil), Hash)1023class Selenium::WebDriver::Rectangle < ::Struct1024 def height; end1025 def height=(_); end1026 def width; end1027 def width=(_); end1028 def x; end1029 def x=(_); end1030 def y; end1031 def y=(_); end1032 class << self1033 def [](*_arg0); end1034 def inspect; end1035 def keyword_init?; end1036 def members; end1037 def new(*_arg0); end1038 end1039end1040module Selenium::WebDriver::Remote; end1041class Selenium::WebDriver::Remote::Bridge1042 include ::Selenium::WebDriver::Atoms1043 def initialize(url:, http_client: T.unsafe(nil)); end1044 def accept_alert; end1045 def action(async = T.unsafe(nil)); end1046 def actions(async = T.unsafe(nil)); end1047 def active_element; end1048 def add_cookie(cookie); end1049 def alert=(keys); end1050 def alert_text; end1051 def browser; end1052 def capabilities; end1053 def clear_element(element); end1054 def clear_local_storage; end1055 def clear_session_storage; end1056 def click_element(element); end1057 def close; end1058 def cookie(name); end1059 def cookies; end1060 def create_session(capabilities); end1061 def delete_all_cookies; end1062 def delete_cookie(name); end1063 def dismiss_alert; end1064 def element_aria_label(element); end1065 def element_aria_role(element); end1066 def element_attribute(element, name); end1067 def element_displayed?(element); end1068 def element_dom_attribute(element, name); end1069 def element_enabled?(element); end1070 def element_location(element); end1071 def element_location_once_scrolled_into_view(element); end1072 def element_property(element, name); end1073 def element_rect(element); end1074 def element_screenshot(element); end1075 def element_selected?(element); end1076 def element_size(element); end1077 def element_tag_name(element); end1078 def element_text(element); end1079 def element_value(element); end1080 def element_value_of_css_property(element, prop); end1081 def execute_async_script(script, *args); end1082 def execute_script(script, *args); end1083 def file_detector; end1084 def file_detector=(_arg0); end1085 def find_element_by(how, what, parent_ref = T.unsafe(nil)); end1086 def find_elements_by(how, what, parent_ref = T.unsafe(nil)); end1087 def full_screen_window; end1088 def get(url); end1089 def go_back; end1090 def go_forward; end1091 def http; end1092 def http=(_arg0); end1093 def keyboard; end1094 def local_storage_item(key, value = T.unsafe(nil)); end1095 def local_storage_keys; end1096 def local_storage_size; end1097 def manage; end1098 def maximize_window(handle = T.unsafe(nil)); end1099 def minimize_window; end1100 def mouse; end1101 def new_window(type); end1102 def page_source; end1103 def print_page(options = T.unsafe(nil)); end1104 def quit; end1105 def refresh; end1106 def release_actions; end1107 def remove_local_storage_item(key); end1108 def remove_session_storage_item(key); end1109 def reposition_window(x, y); end1110 def resize_window(width, height, handle = T.unsafe(nil)); end1111 def screenshot; end1112 def send_actions(data); end1113 def send_keys_to_element(element, keys); end1114 def session_id; end1115 def session_storage_item(key, value = T.unsafe(nil)); end1116 def session_storage_keys; end1117 def session_storage_size; end1118 def set_window_rect(x: T.unsafe(nil), y: T.unsafe(nil), width: T.unsafe(nil), height: T.unsafe(nil)); end1119 def shadow_root(element); end1120 def status; end1121 def submit_element(element); end1122 def switch_to_active_element; end1123 def switch_to_default_content; end1124 def switch_to_frame(id); end1125 def switch_to_parent_frame; end1126 def switch_to_window(name); end1127 def timeouts; end1128 def timeouts=(timeouts); end1129 def title; end1130 def upload(local_file); end1131 def url; end1132 def window_handle; end1133 def window_handles; end1134 def window_position; end1135 def window_rect; end1136 def window_size(handle = T.unsafe(nil)); end1137 private1138 def commands(command); end1139 def convert_locator(how, what); end1140 def element_id_from(id); end1141 def escape_css(string); end1142 def escaper; end1143 def execute(command, opts = T.unsafe(nil), command_hash = T.unsafe(nil)); end1144 def prepare_capabilities_payload(capabilities); end1145 def shadow_root_id_from(id); end1146 def unwrap_script_result(arg); end1147end1148Selenium::WebDriver::Remote::Bridge::COMMANDS = T.let(T.unsafe(nil), Hash)1149Selenium::WebDriver::Remote::Bridge::ESCAPE_CSS_REGEXP = T.let(T.unsafe(nil), Regexp)1150Selenium::WebDriver::Remote::Bridge::PORT = T.let(T.unsafe(nil), Integer)1151Selenium::WebDriver::Remote::Bridge::QUIT_ERRORS = T.let(T.unsafe(nil), Array)1152Selenium::WebDriver::Remote::Bridge::UNICODE_CODE_POINT = T.let(T.unsafe(nil), Integer)1153class Selenium::WebDriver::Remote::Capabilities1154 def initialize(opts = T.unsafe(nil)); end1155 def ==(other); end1156 def [](key); end1157 def []=(key, value); end1158 def accept_insecure_certs; end1159 def accept_insecure_certs=(value); end1160 def as_json(*_arg0); end1161 def browser_name; end1162 def browser_name=(value); end1163 def browser_version; end1164 def browser_version=(value); end1165 def eql?(other); end1166 def implicit_timeout; end1167 def implicit_timeout=(timeout); end1168 def merge!(other); end1169 def page_load_strategy; end1170 def page_load_strategy=(value); end1171 def page_load_timeout; end1172 def page_load_timeout=(timeout); end1173 def platform; end1174 def platform=(value); end1175 def platform_name; end1176 def platform_name=(value); end1177 def proxy; end1178 def proxy=(proxy); end1179 def remote_session_id; end1180 def remote_session_id=(value); end1181 def script_timeout; end1182 def script_timeout=(timeout); end1183 def set_window_rect; end1184 def set_window_rect=(value); end1185 def strict_file_interactability; end1186 def strict_file_interactability=(value); end1187 def timeouts; end1188 def timeouts=(timeouts); end1189 def to_json(*_arg0); end1190 def unhandled_prompt_behavior; end1191 def unhandled_prompt_behavior=(value); end1192 def version; end1193 def version=(value); end1194 def web_socket_url; end1195 def web_socket_url=(value); end1196 protected1197 def capabilities; end1198 private1199 def convert_key(key); end1200 def convert_value(key, value); end1201 def process_capabilities(key, value, hash); end1202 class << self1203 def always_match(capabilities); end1204 def camel_case(str_or_sym); end1205 def chrome(opts = T.unsafe(nil)); end1206 def edge(opts = T.unsafe(nil)); end1207 def ff(opts = T.unsafe(nil)); end1208 def firefox(opts = T.unsafe(nil)); end1209 def first_match(*capabilities); end1210 def htmlunit(opts = T.unsafe(nil)); end1211 def ie(opts = T.unsafe(nil)); end1212 def internet_explorer(opts = T.unsafe(nil)); end1213 def json_create(data); end1214 def microsoftedge(opts = T.unsafe(nil)); end1215 def safari(opts = T.unsafe(nil)); end1216 private1217 def process_timeouts(caps, timeouts); end1218 end1219end1220Selenium::WebDriver::Remote::Capabilities::KNOWN = T.let(T.unsafe(nil), Array)1221class Selenium::WebDriver::Remote::Driver < ::Selenium::WebDriver::Driver1222 include ::Selenium::WebDriver::DriverExtensions::UploadsFiles1223 include ::Selenium::WebDriver::DriverExtensions::HasSessionId1224 include ::Selenium::WebDriver::DriverExtensions::HasRemoteStatus1225 def initialize(bridge: T.unsafe(nil), listener: T.unsafe(nil), **opts); end1226 private1227 def devtools_url; end1228 def devtools_version; end1229end1230module Selenium::WebDriver::Remote::Http; end1231class Selenium::WebDriver::Remote::Http::Common1232 def call(verb, url, command_hash); end1233 def close; end1234 def quit_errors; end1235 def server_url=(_arg0); end1236 private1237 def create_response(code, body, content_type); end1238 def request(*_arg0); end1239 def server_url; end1240end1241Selenium::WebDriver::Remote::Http::Common::CONTENT_TYPE = T.let(T.unsafe(nil), String)1242Selenium::WebDriver::Remote::Http::Common::DEFAULT_HEADERS = T.let(T.unsafe(nil), Hash)1243Selenium::WebDriver::Remote::Http::Common::MAX_REDIRECTS = T.let(T.unsafe(nil), Integer)1244class Selenium::WebDriver::Remote::Http::Default < ::Selenium::WebDriver::Remote::Http::Common1245 def initialize(open_timeout: T.unsafe(nil), read_timeout: T.unsafe(nil)); end1246 def close; end1247 def open_timeout; end1248 def open_timeout=(_arg0); end1249 def proxy=(_arg0); end1250 def read_timeout; end1251 def read_timeout=(_arg0); end1252 private1253 def http; end1254 def new_http_client; end1255 def new_request_for(verb, url, headers, payload); end1256 def proxy; end1257 def request(verb, url, headers, payload, redirects = T.unsafe(nil)); end1258 def response_for(request); end1259 def start(http); end1260 def use_proxy?; end1261end1262Selenium::WebDriver::Remote::Http::Default::MAX_RETRIES = T.let(T.unsafe(nil), Integer)1263class Selenium::WebDriver::Remote::Response1264 def initialize(code, payload = T.unsafe(nil)); end1265 def [](key); end1266 def code; end1267 def error; end1268 def payload; end1269 private1270 def add_backtrace(ex, server_trace); end1271 def assert_ok; end1272 def backtrace_from_remote(server_trace); end1273 def process_error; end1274end1275module Selenium::WebDriver::Safari1276 class << self1277 def driver_path; end1278 def driver_path=(path); end1279 def path; end1280 def path=(path); end1281 def technology_preview; end1282 def technology_preview!; end1283 def technology_preview?; end1284 def use_technology_preview; end1285 def use_technology_preview=(_arg0); end1286 end1287end1288class Selenium::WebDriver::Safari::Driver < ::Selenium::WebDriver::Driver1289 def browser; end1290end1291Selenium::WebDriver::Safari::Driver::EXTENSIONS = T.let(T.unsafe(nil), Array)1292module Selenium::WebDriver::Safari::Features1293 def attach_debugger; end1294 def commands(command); end1295 def permissions; end1296 def permissions=(permissions); end1297end1298Selenium::WebDriver::Safari::Features::SAFARI_COMMANDS = T.let(T.unsafe(nil), Hash)1299class Selenium::WebDriver::Safari::Options < ::Selenium::WebDriver::Options1300 def add_option(name, value = T.unsafe(nil)); end1301 def options; end1302 def options=(_arg0); end1303end1304Selenium::WebDriver::Safari::Options::BROWSER = T.let(T.unsafe(nil), String)1305Selenium::WebDriver::Safari::Options::CAPABILITIES = T.let(T.unsafe(nil), Hash)1306class Selenium::WebDriver::Safari::Service < ::Selenium::WebDriver::Service; end1307Selenium::WebDriver::Safari::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)1308Selenium::WebDriver::Safari::Service::EXECUTABLE = T.let(T.unsafe(nil), String)1309Selenium::WebDriver::Safari::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)1310module Selenium::WebDriver::SearchContext1311 def find_element(*args); end1312 def find_elements(*args); end1313 private1314 def extract_args(args); end1315end1316Selenium::WebDriver::SearchContext::FINDERS = T.let(T.unsafe(nil), Hash)1317class Selenium::WebDriver::Service1318 def initialize(path: T.unsafe(nil), port: T.unsafe(nil), args: T.unsafe(nil)); end1319 def executable_path; end1320 def extra_args; end1321 def host; end1322 def host=(_arg0); end1323 def launch; end1324 def port; end1325 def shutdown_supported; end1326 protected1327 def extract_service_args(driver_opts); end1328 private1329 def binary_path(path = T.unsafe(nil)); end1330 class << self1331 def chrome(**opts); end1332 def driver_path; end1333 def driver_path=(path); end1334 def edge(**opts); end1335 def firefox(**opts); end1336 def ie(**opts); end1337 def internet_explorer(**opts); end1338 def microsoftedge(**opts); end1339 def safari(**opts); end1340 end1341end1342class Selenium::WebDriver::ServiceManager1343 def initialize(config); end1344 def start; end1345 def stop; end1346 def uri; end1347 private1348 def build_process(*command); end1349 def cannot_connect_error_text; end1350 def connect_to_server; end1351 def connect_until_stable; end1352 def find_free_port; end1353 def process_exited?; end1354 def process_running?; end1355 def socket_lock; end1356 def start_process; end1357 def stop_process; end1358 def stop_server; end1359end1360Selenium::WebDriver::ServiceManager::SOCKET_LOCK_TIMEOUT = T.let(T.unsafe(nil), Integer)1361Selenium::WebDriver::ServiceManager::START_TIMEOUT = T.let(T.unsafe(nil), Integer)1362Selenium::WebDriver::ServiceManager::STOP_TIMEOUT = T.let(T.unsafe(nil), Integer)1363class Selenium::WebDriver::ShadowRoot1364 include ::Selenium::WebDriver::SearchContext1365 def initialize(bridge, id); end1366 def ==(other); end1367 def as_json(*_arg0); end1368 def eql?(other); end1369 def hash; end1370 def inspect; end1371 def ref; end1372 def to_json(*_arg0); end1373 private1374 def bridge; end1375end1376Selenium::WebDriver::ShadowRoot::ROOT_KEY = T.let(T.unsafe(nil), String)1377class Selenium::WebDriver::SocketLock1378 def initialize(port, timeout); end1379 def locked; end1380 private1381 def can_lock?; end1382 def current_time; end1383 def did_lock?; end1384 def lock; end1385 def release; end1386end1387class Selenium::WebDriver::SocketPoller1388 def initialize(host, port, timeout = T.unsafe(nil), interval = T.unsafe(nil)); end1389 def closed?; end1390 def connected?; end1391 private1392 def conn_completed?(sock); end1393 def current_time; end1394 def listening?; end1395 def socket_writable?(sock); end1396 def with_timeout; end1397end1398Selenium::WebDriver::SocketPoller::CONNECTED_ERRORS = T.let(T.unsafe(nil), Array)1399Selenium::WebDriver::SocketPoller::CONNECT_TIMEOUT = T.let(T.unsafe(nil), Integer)1400Selenium::WebDriver::SocketPoller::NOT_CONNECTED_ERRORS = T.let(T.unsafe(nil), Array)1401module Selenium::WebDriver::Support; end1402class Selenium::WebDriver::Support::AbstractEventListener1403 def after_change_value_of(element, driver); end1404 def after_click(element, driver); end1405 def after_close(driver); end1406 def after_execute_script(script, driver); end1407 def after_find(by, what, driver); end1408 def after_navigate_back(driver); end1409 def after_navigate_forward(driver); end1410 def after_navigate_to(url, driver); end1411 def after_quit(driver); end1412 def before_change_value_of(element, driver); end1413 def before_click(element, driver); end1414 def before_close(driver); end1415 def before_execute_script(script, driver); end1416 def before_find(by, what, driver); end1417 def before_navigate_back(driver); end1418 def before_navigate_forward(driver); end1419 def before_navigate_to(url, driver); end1420 def before_quit(driver); end1421end1422class Selenium::WebDriver::Support::BlockEventListener1423 def initialize(callback); end1424 def method_missing(meth, *args); end1425end1426class Selenium::WebDriver::Support::Color1427 def initialize(red, green, blue, alpha = T.unsafe(nil)); end1428 def ==(other); end1429 def alpha; end1430 def blue; end1431 def eql?(other); end1432 def green; end1433 def hash; end1434 def hex; end1435 def red; end1436 def rgb; end1437 def rgba; end1438 class << self1439 def from_hsl(h, s, l, a); end1440 def from_string(str); end1441 def hue_to_rgb(lum1, lum2, hue); end1442 end1443end1444Selenium::WebDriver::Support::Color::HEX3_PATTERN = T.let(T.unsafe(nil), Regexp)1445Selenium::WebDriver::Support::Color::HEX_PATTERN = T.let(T.unsafe(nil), Regexp)1446Selenium::WebDriver::Support::Color::HSLA_PATTERN = T.let(T.unsafe(nil), Regexp)1447Selenium::WebDriver::Support::Color::HSL_PATTERN = T.let(T.unsafe(nil), Regexp)1448Selenium::WebDriver::Support::Color::RGBA_PATTERN = T.let(T.unsafe(nil), Regexp)1449Selenium::WebDriver::Support::Color::RGBA_PCT_PATTERN = T.let(T.unsafe(nil), Regexp)1450Selenium::WebDriver::Support::Color::RGB_PATTERN = T.let(T.unsafe(nil), Regexp)1451Selenium::WebDriver::Support::Color::RGB_PCT_PATTERN = T.let(T.unsafe(nil), Regexp)1452module Selenium::WebDriver::Support::Escaper1453 class << self1454 def escape(str); end1455 end1456end1457class Selenium::WebDriver::Support::EventFiringBridge1458 def initialize(delegate, listener); end1459 def clear_element(ref); end1460 def click_element(ref); end1461 def close; end1462 def execute_script(script, *args); end1463 def find_element_by(how, what, parent = T.unsafe(nil)); end1464 def find_elements_by(how, what, parent = T.unsafe(nil)); end1465 def get(url); end1466 def go_back; end1467 def go_forward; end1468 def quit; end1469 def send_keys_to_element(ref, keys); end1470 private1471 def create_element(ref); end1472 def dispatch(name, *args); end1473 def driver; end1474 def method_missing(meth, *args, &blk); end1475end1476class Selenium::WebDriver::Support::RelativeLocator1477 def initialize(locator); end1478 def as_json; end1479end1480Selenium::WebDriver::Support::RelativeLocator::KEYS = T.let(T.unsafe(nil), Array)1481class Selenium::WebDriver::Support::Select1482 def initialize(element); end1483 def deselect_all; end1484 def deselect_by(how, what); end1485 def first_selected_option; end1486 def multiple?; end1487 def options; end1488 def select_all; end1489 def select_by(how, what); end1490 def selected_options; end1491 private1492 def deselect_by_index(index); end1493 def deselect_by_text(text); end1494 def deselect_by_value(value); end1495 def deselect_option(option); end1496 def deselect_options(opts); end1497 def find_by_index(index); end1498 def find_by_text(text); end1499 def find_by_value(value); end1500 def select_by_index(index); end1501 def select_by_text(text); end1502 def select_by_value(value); end1503 def select_option(option); end1504 def select_options(opts); end1505end1506module Selenium::WebDriver::TakesScreenshot1507 def save_screenshot(png_path, full_page: T.unsafe(nil)); end1508 def screenshot_as(format, full_page: T.unsafe(nil)); end1509end1510class Selenium::WebDriver::TargetLocator1511 def initialize(bridge); end1512 def active_element; end1513 def alert; end1514 def default_content; end1515 def frame(id); end1516 def new_window(type = T.unsafe(nil)); end1517 def parent_frame; end1518 def window(id); end1519end1520class Selenium::WebDriver::Timeouts1521 def initialize(bridge); end1522 def implicit_wait; end1523 def implicit_wait=(seconds); end1524 def page_load; end1525 def page_load=(seconds); end1526 def script; end1527 def script=(seconds); end1528 def script_timeout; end1529 def script_timeout=(seconds); end1530end1531Selenium::WebDriver::VERSION = T.let(T.unsafe(nil), String)1532class Selenium::WebDriver::Wait1533 def initialize(opts = T.unsafe(nil)); end1534 def until; end1535 private1536 def current_time; end1537end1538Selenium::WebDriver::Wait::DEFAULT_INTERVAL = T.let(T.unsafe(nil), Float)1539Selenium::WebDriver::Wait::DEFAULT_TIMEOUT = T.let(T.unsafe(nil), Integer)1540class Selenium::WebDriver::Window1541 def initialize(bridge); end1542 def full_screen; end1543 def maximize; end1544 def minimize; end1545 def move_to(x, y); end1546 def position; end1547 def position=(point); end1548 def rect; end1549 def rect=(rectangle); end1550 def resize_to(width, height); end1551 def size; end1552 def size=(dimension); end1553end1554module Selenium::WebDriver::Zipper1555 class << self...

Full Screen

Full Screen

selenium-webdriver.rbi

Source:selenium-webdriver.rbi Github

copy

Full Screen

...191 def ftp; end192 def ftp=(value); end193 def http; end194 def http=(value); end195 def initialize(opts = nil); end196 def no_proxy; end197 def no_proxy=(value); end198 def pac; end199 def pac=(url); end200 def self.json_create(data); end201 def socks; end202 def socks=(value); end203 def socks_password; end204 def socks_password=(value); end205 def socks_username; end206 def socks_username=(value); end207 def socks_version; end208 def socks_version=(value); end209 def ssl; end210 def ssl=(value); end211 def to_json(*arg0); end212 def type; end213 def type=(type); end214end215class Selenium::WebDriver::LogEntry216 def as_json(*arg0); end217 def initialize(level, timestamp, message); end218 def level; end219 def message; end220 def time; end221 def timestamp; end222 def to_s; end223end224module Selenium::WebDriver::FileReaper225 def self.<<(file); end226 def self.reap!; end227 def self.reap(file); end228 def self.reap=(arg0); end229 def self.reap?; end230 def self.tmp_files; end231end232class Selenium::WebDriver::Service233 def binary_path(path = nil); end234 def build_process(*command); end235 def cannot_connect_error_text; end236 def connect_to_server; end237 def connect_until_stable; end238 def executable_path; end239 def extract_service_args(driver_opts); end240 def find_free_port; end241 def host; end242 def host=(arg0); end243 def initialize(path: nil, port: nil, args: nil); end244 def process_exited?; end245 def process_running?; end246 def self.chrome(**opts); end247 def self.default_port; end248 def self.driver_path; end249 def self.driver_path=(path); end250 def self.edge(**opts); end251 def self.executable; end252 def self.firefox(**opts); end253 def self.ie(**opts); end254 def self.internet_explorer(**opts); end255 def self.missing_text; end256 def self.safari(**opts); end257 def self.shutdown_supported; end258 def socket_lock; end259 def start; end260 def start_process; end261 def stop; end262 def stop_process; end263 def stop_server; end264 def uri; end265end266class Selenium::WebDriver::SocketLock267 def can_lock?; end268 def current_time; end269 def did_lock?; end270 def initialize(port, timeout); end271 def lock; end272 def locked; end273 def release; end274end275class Selenium::WebDriver::SocketPoller276 def closed?; end277 def conn_completed?(sock); end278 def connected?; end279 def current_time; end280 def initialize(host, port, timeout = nil, interval = nil); end281 def listening?; end282 def socket_writable?(sock); end283 def with_timeout; end284end285class Selenium::WebDriver::PortProber286 def self.above(port); end287 def self.free?(port); end288end289module Selenium::WebDriver::Zipper290 def self.add_zip_entry(zip, file, entry_name); end291 def self.unzip(path); end292 def self.with_tmp_zip(&blk); end293 def self.zip(path); end294 def self.zip_file(path); end295end296class Selenium::WebDriver::Wait297 def current_time; end298 def initialize(opts = nil); end299 def until; end300end301class Selenium::WebDriver::Alert302 def accept; end303 def dismiss; end304 def initialize(bridge); end305 def send_keys(keys); end306 def text; end307end308class Selenium::WebDriver::Mouse309 def assert_element(element); end310 def click(element = nil); end311 def context_click(element = nil); end312 def double_click(element = nil); end313 def down(element = nil); end314 def initialize(bridge); end315 def move_by(right_by, down_by); end316 def move_if_needed(element); end317 def move_to(element, right_by = nil, down_by = nil); end318 def up(element = nil); end319end320class Selenium::WebDriver::Keyboard321 def assert_modifier(key); end322 def initialize(bridge); end323 def press(key); end324 def release(key); end325 def send_keys(*keys); end326end327class Selenium::WebDriver::TouchScreen328 def assert_element(element); end329 def coords_from(x, y); end330 def double_tap(element); end331 def down(x, y = nil); end332 def flick(*args); end333 def initialize(bridge); end334 def long_press(element); end335 def move(x, y = nil); end336 def scroll(*args); end337 def single_tap(element); end338 def up(x, y = nil); end339end340class Selenium::WebDriver::TargetLocator341 def active_element; end342 def alert; end343 def default_content; end344 def frame(id); end345 def initialize(bridge); end346 def parent_frame; end347 def window(id); end348end349class Selenium::WebDriver::Navigation350 def back; end351 def forward; end352 def initialize(bridge); end353 def refresh; end354 def to(url); end355end356class Selenium::WebDriver::Timeouts357 def implicit_wait=(seconds); end358 def initialize(bridge); end359 def page_load=(seconds); end360 def script_timeout=(seconds); end361end362class Selenium::WebDriver::Window363 def full_screen; end364 def initialize(bridge); end365 def maximize; end366 def minimize; end367 def move_to(x, y); end368 def position; end369 def position=(point); end370 def rect; end371 def rect=(rectangle); end372 def resize_to(width, height); end373 def size; end374 def size=(dimension); end375end376class Selenium::WebDriver::Logger377 def close(*args, &block); end378 def create_logger(output); end379 def debug(*args, &block); end380 def debug?(*args, &block); end381 def default_level; end382 def deprecate(old, new = nil); end383 def error(*args, &block); end384 def error?(*args, &block); end385 def fatal(*args, &block); end386 def fatal?(*args, &block); end387 def info(*args, &block); end388 def info?(*args, &block); end389 def initialize; end390 def io; end391 def level(*args, &block); end392 def level=(*args, &block); end393 def output=(io); end394 def warn(*args, &block); end395 def warn?(*args, &block); end396 extend Forwardable397end398class Selenium::WebDriver::Logs399 def available_types; end400 def get(type); end401 def initialize(bridge); end402end403class Selenium::WebDriver::Manager404 def add_cookie(opts = nil); end405 def all_cookies; end406 def convert_cookie(cookie); end407 def cookie_named(name); end408 def datetime_at(int); end409 def delete_all_cookies; end410 def delete_cookie(name); end411 def initialize(bridge); end412 def logs; end413 def new_window(type = nil); end414 def seconds_from(obj); end415 def strip_port(str); end416 def timeouts; end417 def window; end418end419class Selenium::WebDriver::W3CManager < Selenium::WebDriver::Manager420 def cookie_named(name); end421 def delete_all_cookies; end422end423module Selenium::WebDriver::SearchContext424 def extract_args(args); end425 def find_element(*args); end426 def find_elements(*args); end427end428class Selenium::WebDriver::ActionBuilder429 def click(element = nil); end430 def click_and_hold(element = nil); end431 def context_click(element = nil); end432 def double_click(element = nil); end433 def drag_and_drop(source, target); end434 def drag_and_drop_by(source, right_by, down_by); end435 def initialize(mouse, keyboard); end436 def key_down(*args); end437 def key_up(*args); end438 def move_by(right_by, down_by); end439 def move_to(element, right_by = nil, down_by = nil); end440 def perform; end441 def release(element = nil); end442 def send_keys(*args); end443end444module Selenium::WebDriver::KeyActions445 def key_action(*args, action: nil, device: nil); end446 def key_down(*args, device: nil); end447 def key_up(*args, device: nil); end448 def send_keys(*args, device: nil); end449end450module Selenium::WebDriver::PointerActions451 def button_action(button, action: nil, device: nil); end452 def click(element = nil, device: nil); end453 def click_and_hold(element = nil, device: nil); end454 def context_click(element = nil, device: nil); end455 def default_move_duration; end456 def default_move_duration=(arg0); end457 def double_click(element = nil, device: nil); end458 def drag_and_drop(source, target, device: nil); end459 def drag_and_drop_by(source, right_by, down_by, device: nil); end460 def get_pointer(device = nil); end461 def move_by(right_by, down_by, device: nil); end462 def move_to(element, right_by = nil, down_by = nil, device: nil); end463 def move_to_location(x, y, device: nil); end464 def pointer_down(button, device: nil); end465 def pointer_up(button, device: nil); end466 def release(device: nil); end467end468class Selenium::WebDriver::W3CActionBuilder469 def add_input(device); end470 def add_key_input(name); end471 def add_pointer_input(kind, name); end472 def clear_all_actions; end473 def devices; end474 def get_device(name); end475 def initialize(bridge, mouse, keyboard, async = nil); end476 def key_inputs; end477 def pause(device, duration = nil); end478 def pauses(device, number, duration = nil); end479 def perform; end480 def pointer_inputs; end481 def release_actions; end482 def tick(*action_devices); end483 include Selenium::WebDriver::KeyActions484 include Selenium::WebDriver::PointerActions485end486class Selenium::WebDriver::TouchActionBuilder < Selenium::WebDriver::ActionBuilder487 def double_tap(element); end488 def down(x, y = nil); end489 def flick(*args); end490 def initialize(mouse, keyboard, touch_screen); end491 def long_press(element); end492 def move(x, y = nil); end493 def scroll(*args); end494 def single_tap(element); end495 def up(x, y = nil); end496end497module Selenium::WebDriver::HTML5498end499module Selenium::WebDriver::HTML5::SharedWebStorage500 def each; end501 def empty?; end502 def fetch(key); end503 def has_key?(key); end504 def key?(key); end505 def member?(key); end506 include Enumerable507end508class Selenium::WebDriver::HTML5::LocalStorage509 def [](key); end510 def []=(key, value); end511 def clear; end512 def delete(key); end513 def initialize(bridge); end514 def keys; end515 def size; end516 include Selenium::WebDriver::HTML5::SharedWebStorage517end518class Selenium::WebDriver::HTML5::SessionStorage519 def [](key); end520 def []=(key, value); end521 def clear; end522 def delete(key); end523 def initialize(bridge); end524 def keys; end525 def size; end526 include Enumerable527 include Selenium::WebDriver::HTML5::SharedWebStorage528end529module Selenium::WebDriver::DriverExtensions530end531module Selenium::WebDriver::DriverExtensions::TakesScreenshot532 def save_screenshot(png_path); end533 def screenshot_as(format); end534end535module Selenium::WebDriver::DriverExtensions::Rotatable536 def orientation; end537 def rotate(orientation); end538 def rotation=(orientation); end539end540module Selenium::WebDriver::DriverExtensions::HasWebStorage541 def local_storage; end542 def session_storage; end543end544module Selenium::WebDriver::DriverExtensions::DownloadsFiles545 def download_path=(path); end546end547module Selenium::WebDriver::DriverExtensions::HasLocation548 def location; end549 def location=(loc); end550 def set_location(lat, lon, alt); end551end552module Selenium::WebDriver::DriverExtensions::HasSessionId553 def session_id; end554end555module Selenium::WebDriver::DriverExtensions::HasTouchScreen556 def touch; end557 def touch_screen; end558end559module Selenium::WebDriver::DriverExtensions::HasRemoteStatus560 def remote_status; end561end562module Selenium::WebDriver::DriverExtensions::HasNetworkConditions563 def network_conditions; end564 def network_conditions=(conditions); end565end566module Selenium::WebDriver::DriverExtensions::HasNetworkConnection567 def network_connection_type; end568 def network_connection_type=(connection_type); end569 def type_to_values; end570 def valid_type?(type); end571 def values_to_type; end572end573module Selenium::WebDriver::DriverExtensions::HasPermissions574 def permissions; end575 def permissions=(permissions); end576end577module Selenium::WebDriver::DriverExtensions::HasDebugger578 def attach_debugger; end579end580module Selenium::WebDriver::DriverExtensions::UploadsFiles581 def file_detector=(detector); end582end583module Selenium::WebDriver::DriverExtensions::HasAddons584 def install_addon(path, temporary = nil); end585 def uninstall_addon(id); end586end587module Selenium::WebDriver::Interactions588 def self.key(name); end589 def self.none(name = nil); end590 def self.pointer(kind, **kwargs); end591end592class Selenium::WebDriver::Interactions::InputDevice593 def actions; end594 def add_action(action); end595 def clear_actions; end596 def create_pause(duration = nil); end597 def initialize(name = nil); end598 def name; end599 def no_actions?; end600end601class Selenium::WebDriver::Interactions::Interaction602 def initialize(source); end603 def source; end604end605class Selenium::WebDriver::Interactions::Pause < Selenium::WebDriver::Interactions::Interaction606 def encode; end607 def initialize(source, duration = nil); end608 def type; end609end610class Selenium::WebDriver::Interactions::NoneInput < Selenium::WebDriver::Interactions::InputDevice611 def encode; end612 def type; end613end614class Selenium::WebDriver::Interactions::KeyInput < Selenium::WebDriver::Interactions::InputDevice615 def create_key_down(key); end616 def create_key_up(key); end617 def encode; end618 def type; end619end620class Selenium::WebDriver::Interactions::KeyInput::TypingInteraction < Selenium::WebDriver::Interactions::Interaction621 def assert_type(type); end622 def encode; end623 def initialize(source, type, key); end624 def type; end625end626class Selenium::WebDriver::Interactions::PointerInput < Selenium::WebDriver::Interactions::InputDevice627 def assert_kind(pointer); end628 def create_pointer_cancel; end629 def create_pointer_down(button); end630 def create_pointer_move(duration: nil, x: nil, y: nil, element: nil, origin: nil); end631 def create_pointer_up(button); end632 def encode; end633 def initialize(kind, name: nil); end634 def kind; end635 def type; end636end637class Selenium::WebDriver::Interactions::PointerPress < Selenium::WebDriver::Interactions::Interaction638 def assert_button(button); end639 def assert_direction(direction); end640 def encode; end641 def initialize(source, direction, button); end642 def type; end643end644class Selenium::WebDriver::Interactions::PointerMove < Selenium::WebDriver::Interactions::Interaction645 def encode; end646 def initialize(source, duration, x, y, element: nil, origin: nil); end647 def type; end648end649class Selenium::WebDriver::Interactions::PointerCancel < Selenium::WebDriver::Interactions::Interaction650 def encode; end651 def type; end652end653module Selenium::WebDriver::Keys654 def self.[](key); end655 def self.encode(keys); end656 def self.encode_key(key); end657end658module Selenium::WebDriver::BridgeHelper659 def element_id_from(id); end660 def parse_cookie_string(str); end661 def unwrap_script_result(arg); end662end663module Selenium::WebDriver::ProfileHelper664 def as_json(*arg0); end665 def create_tmp_copy(directory); end666 def self.included(base); end667 def to_json(*arg0); end668 def verify_model(model); end669end670module Selenium::WebDriver::ProfileHelper::ClassMethods671 def from_json(json); end672end673module Selenium::WebDriver::Common674end675class Selenium::WebDriver::Common::Options676 def camel_case(str); end677 def convert_json_key(key); end678 def generate_as_json(value); end679end680class Selenium::WebDriver::Driver681 def [](sel); end682 def action; end683 def all(*args); end684 def bridge; end685 def browser; end686 def capabilities; end687 def close; end688 def current_url; end689 def execute_async_script(script, *args); end690 def execute_script(script, *args); end691 def first(*args); end692 def get(url); end693 def initialize(bridge, listener: nil); end694 def inspect; end695 def keyboard; end696 def manage; end697 def mouse; end698 def navigate; end699 def page_source; end700 def quit; end701 def ref; end702 def script(script, *args); end703 def self.for(browser, opts = nil); end704 def service_url(opts); end705 def switch_to; end706 def title; end707 def window_handle; end708 def window_handles; end709 include Selenium::WebDriver::SearchContext710end711class Selenium::WebDriver::Element712 def ==(other); end713 def [](name); end714 def all(*args); end715 def as_json(*arg0); end716 def attribute(name); end717 def bridge; end718 def clear; end719 def click; end720 def css_value(prop); end721 def displayed?; end722 def enabled?; end723 def eql?(other); end724 def first(*args); end725 def hash; end726 def initialize(bridge, id); end727 def inspect; end728 def location; end729 def location_once_scrolled_into_view; end730 def property(name); end731 def rect; end732 def ref; end733 def selectable?; end734 def selected?; end735 def send_key(*args); end736 def send_keys(*args); end737 def size; end738 def style(prop); end739 def submit; end740 def tag_name; end741 def text; end742 def to_json(*arg0); end743 include Selenium::WebDriver::SearchContext744end745module Selenium::WebDriver::Atoms746 def execute_atom(function_name, *arguments); end747 def read_atom(function); end748end749class Selenium::WebDriver::Point < Struct750 def self.[](*arg0); end751 def self.inspect; end752 def self.members; end753 def self.new(*arg0); end754 def x; end755 def x=(_); end756 def y; end757 def y=(_); end758end759class Selenium::WebDriver::Dimension < Struct760 def height; end761 def height=(_); end762 def self.[](*arg0); end763 def self.inspect; end764 def self.members; end765 def self.new(*arg0); end766 def width; end767 def width=(_); end768end769class Selenium::WebDriver::Rectangle < Struct770 def height; end771 def height=(_); end772 def self.[](*arg0); end773 def self.inspect; end774 def self.members; end775 def self.new(*arg0); end776 def width; end777 def width=(_); end778 def x; end779 def x=(_); end780 def y; end781 def y=(_); end782end783class Selenium::WebDriver::Location < Struct784 def altitude; end785 def altitude=(_); end786 def latitude; end787 def latitude=(_); end788 def longitude; end789 def longitude=(_); end790 def self.[](*arg0); end791 def self.inspect; end792 def self.members; end793 def self.new(*arg0); end794end795module Selenium::WebDriver::Chrome796 def self.driver_path; end797 def self.driver_path=(path); end798 def self.path; end799 def self.path=(path); end800end801module Selenium::WebDriver::Chrome::Bridge802 def available_log_types; end803 def commands(command); end804 def log(type); end805 def network_conditions; end806 def network_conditions=(conditions); end807 def send_command(command_params); end808end809class Selenium::WebDriver::Chrome::Driver < Selenium::WebDriver::Driver810 def browser; end811 def create_capabilities(opts); end812 def execute_cdp(cmd, **params); end813 def initialize(opts = nil); end814 def quit; end815 include Selenium::WebDriver::DriverExtensions::DownloadsFiles816 include Selenium::WebDriver::DriverExtensions::HasLocation817 include Selenium::WebDriver::DriverExtensions::HasNetworkConditions818 include Selenium::WebDriver::DriverExtensions::HasTouchScreen819 include Selenium::WebDriver::DriverExtensions::HasWebStorage820 include Selenium::WebDriver::DriverExtensions::TakesScreenshot821end822class Selenium::WebDriver::Chrome::Profile823 def [](key); end824 def []=(key, value); end825 def add_encoded_extension(encoded); end826 def add_extension(path); end827 def as_json(*arg0); end828 def directory; end829 def initialize(model = nil); end830 def layout_on_disk; end831 def prefs; end832 def prefs_file_for(dir); end833 def read_model_prefs; end834 def write_prefs_to(dir); end835 extend Selenium::WebDriver::ProfileHelper::ClassMethods836 include Selenium::WebDriver::ProfileHelper837end838class Selenium::WebDriver::Chrome::Options < Selenium::WebDriver::Common::Options839 def add_argument(arg); end840 def add_emulation(device_name: nil, device_metrics: nil, user_agent: nil); end841 def add_encoded_extension(encoded); end842 def add_extension(path); end843 def add_option(name, value); end844 def add_preference(name, value); end845 def args; end846 def as_json(*arg0); end847 def binary; end848 def binary=(arg0); end849 def detach; end850 def detach=(arg0); end851 def emulation; end852 def encoded_extensions; end853 def extensions; end854 def headless!; end855 def initialize(**opts); end856 def options; end857 def prefs; end858 def profile; end859 def profile=(arg0); end860end861class Selenium::WebDriver::Chrome::Service < Selenium::WebDriver::Service862 def extract_service_args(driver_opts); end863 def self.driver_path=(path); end864end865module Selenium::WebDriver::Edge866 def self.driver_path; end867 def self.driver_path=(path); end868end869module Selenium::WebDriver::Edge::Bridge870 def commands(command); end871 def maximize_window(handle = nil); end872 def reposition_window(x, y, handle = nil); end873 def resize_window(width, height, handle = nil); end874 def send_keys_to_active_element(key); end875 def window_handle; end876 def window_position(handle = nil); end877 def window_size(handle = nil); end878end879class Selenium::WebDriver::Edge::Driver < Selenium::WebDriver::Driver880 def browser; end881 def initialize(opts = nil); end882 def quit; end883 include Selenium::WebDriver::DriverExtensions::TakesScreenshot884end885class Selenium::WebDriver::Edge::Options886 def add_extension_path(path); end887 def as_json(*arg0); end888 def extension_paths; end889 def in_private; end890 def in_private=(arg0); end891 def initialize(**opts); end892 def start_page; end893 def start_page=(arg0); end894end895class Selenium::WebDriver::Edge::Service < Selenium::WebDriver::Service896 def extract_service_args(driver_opts); end897end898module Selenium::WebDriver::Firefox899 def self.driver_path; end900 def self.driver_path=(path); end901 def self.path=(path); end902end903module Selenium::WebDriver::Firefox::Driver904 def self.marionette?(opts); end905 def self.new(**opts); end906end907module Selenium::WebDriver::Firefox::Util908 def app_data_path; end909 def self.app_data_path; end910 def self.stringified?(str); end911 def stringified?(str); end912end913class Selenium::WebDriver::Firefox::Extension914 def create_root; end915 def initialize(path); end916 def read_id(directory); end917 def read_id_from_install_rdf(directory); end918 def read_id_from_manifest_json(directory); end919 def write_to(extensions_dir); end920end921class Selenium::WebDriver::Firefox::Binary922 def execute(*extra_args); end923 def modify_link_library_path(profile_path); end924 def quit; end925 def self.macosx_path; end926 def self.path; end927 def self.path=(path); end928 def self.reset_path!; end929 def self.version; end930 def self.windows_path; end931 def self.windows_registry_path; end932 def start_with(profile, profile_path, *args); end933 def wait; end934end935class Selenium::WebDriver::Firefox::ProfilesIni936 def [](name); end937 def initialize; end938 def parse; end939 def path_for(name, is_relative, path); end940 def refresh; end941end942class Selenium::WebDriver::Firefox::Profile943 def []=(key, value); end944 def add_extension(path, name = nil); end945 def add_webdriver_extension; end946 def assume_untrusted_certificate_issuer=(bool); end947 def assume_untrusted_certificate_issuer?; end948 def delete_extensions_cache(directory); end949 def delete_lock_files(directory); end950 def encoded; end951 def extension_name_for(path); end952 def initialize(model = nil); end953 def install_extensions(directory); end954 def layout_on_disk; end955 def load_no_focus_lib=(arg0); end956 def load_no_focus_lib?; end957 def log_file; end958 def log_file=(file); end959 def name; end960 def native_events=(arg0); end961 def native_events?; end962 def port=(port); end963 def proxy=(proxy); end964 def read_model_prefs; end965 def read_user_prefs(path); end966 def secure_ssl=(arg0); end967 def secure_ssl?; end968 def self.default_preferences; end969 def self.from_name(name); end970 def self.ini; end971 def set_manual_proxy_preference(key, value); end972 def update_user_prefs_in(directory); end973 def write_prefs(prefs, path); end974 extend Selenium::WebDriver::ProfileHelper::ClassMethods975 include Selenium::WebDriver::ProfileHelper976end977class Selenium::WebDriver::Firefox::Launcher978 def assert_profile; end979 def connect_until_stable; end980 def create_profile; end981 def fetch_profile; end982 def find_free_port; end983 def initialize(binary, port, profile = nil); end984 def launch; end985 def quit; end986 def socket_lock; end987 def start; end988 def url; end989end990module Selenium::WebDriver::Firefox::Legacy991end992class Selenium::WebDriver::Firefox::Legacy::Driver < Selenium::WebDriver::Driver993 def browser; end994 def initialize(opts = nil); end995 def quit; end996 include Selenium::WebDriver::DriverExtensions::TakesScreenshot997end998module Selenium::WebDriver::Firefox::Marionette999end1000module Selenium::WebDriver::Firefox::Marionette::Bridge1001 def commands(command); end1002 def install_addon(path, temporary); end1003 def uninstall_addon(id); end1004end1005class Selenium::WebDriver::Firefox::Marionette::Driver < Selenium::WebDriver::Driver1006 def browser; end1007 def create_capabilities(opts); end1008 def initialize(opts = nil); end1009 def quit; end1010 include Selenium::WebDriver::DriverExtensions::HasAddons1011 include Selenium::WebDriver::DriverExtensions::HasWebStorage1012 include Selenium::WebDriver::DriverExtensions::TakesScreenshot1013end1014class Selenium::WebDriver::Firefox::Options < Selenium::WebDriver::Common::Options1015 def add_argument(arg); end1016 def add_option(name, value); end1017 def add_preference(name, value); end1018 def args; end1019 def as_json(*arg0); end1020 def binary; end1021 def binary=(arg0); end1022 def headless!; end1023 def initialize(**opts); end1024 def log_level; end1025 def log_level=(arg0); end1026 def options; end1027 def prefs; end1028 def process_profile(profile); end1029 def profile; end1030 def profile=(profile); end1031end1032class Selenium::WebDriver::Firefox::Service < Selenium::WebDriver::Service1033 def extract_service_args(driver_opts); end1034end1035module Selenium::WebDriver::IE1036 def self.driver_path; end1037 def self.driver_path=(path); end1038end1039class Selenium::WebDriver::IE::Driver < Selenium::WebDriver::Driver1040 def browser; end1041 def create_capabilities(opts); end1042 def initialize(opts = nil); end1043 def quit; end1044 include Selenium::WebDriver::DriverExtensions::HasWebStorage1045 include Selenium::WebDriver::DriverExtensions::TakesScreenshot1046end1047class Selenium::WebDriver::IE::Options < Selenium::WebDriver::Common::Options1048 def add_argument(arg); end1049 def add_option(name, value); end1050 def args; end1051 def as_json(*arg0); end1052 def browser_attach_timeout; end1053 def browser_attach_timeout=(value); end1054 def element_scroll_behavior; end1055 def element_scroll_behavior=(value); end1056 def ensure_clean_session; end1057 def ensure_clean_session=(value); end1058 def file_upload_dialog_timeout; end1059 def file_upload_dialog_timeout=(value); end1060 def force_create_process_api; end1061 def force_create_process_api=(value); end1062 def force_shell_windows_api; end1063 def force_shell_windows_api=(value); end1064 def full_page_screenshot; end1065 def full_page_screenshot=(value); end1066 def ignore_protected_mode_settings; end1067 def ignore_protected_mode_settings=(value); end1068 def ignore_zoom_level; end1069 def ignore_zoom_level=(value); end1070 def initial_browser_url; end1071 def initial_browser_url=(value); end1072 def initialize(**opts); end1073 def native_events; end1074 def native_events=(value); end1075 def options; end1076 def persistent_hover; end1077 def persistent_hover=(value); end1078 def require_window_focus; end1079 def require_window_focus=(value); end1080 def use_per_process_proxy; end1081 def use_per_process_proxy=(value); end1082 def validate_cookie_document_type; end1083 def validate_cookie_document_type=(value); end1084end1085class Selenium::WebDriver::IE::Service < Selenium::WebDriver::Service1086 def extract_service_args(driver_opts); end1087end1088module Selenium::WebDriver::Remote1089end1090class Selenium::WebDriver::Remote::Bridge1091 def browser; end1092 def capabilities; end1093 def commands(command); end1094 def context; end1095 def context=(arg0); end1096 def create_session(desired_capabilities, options = nil); end1097 def dialect; end1098 def escaper; end1099 def execute(command, opts = nil, command_hash = nil); end1100 def file_detector; end1101 def file_detector=(arg0); end1102 def http; end1103 def http=(arg0); end1104 def initialize(opts = nil); end1105 def merged_capabilities(oss_capabilities, options = nil); end1106 def self.handshake(**opts); end1107 def session_id; end1108 include Selenium::WebDriver::Atoms1109 include Selenium::WebDriver::BridgeHelper1110end1111class Selenium::WebDriver::Remote::Driver < Selenium::WebDriver::Driver1112 def initialize(opts = nil); end1113 include Selenium::WebDriver::DriverExtensions::HasRemoteStatus1114 include Selenium::WebDriver::DriverExtensions::HasSessionId1115 include Selenium::WebDriver::DriverExtensions::HasWebStorage1116 include Selenium::WebDriver::DriverExtensions::Rotatable1117 include Selenium::WebDriver::DriverExtensions::TakesScreenshot1118 include Selenium::WebDriver::DriverExtensions::UploadsFiles1119end1120class Selenium::WebDriver::Remote::Response1121 def [](key); end1122 def add_backtrace(ex); end1123 def assert_ok; end1124 def backtrace_from_remote(server_trace); end1125 def code; end1126 def error; end1127 def error_message; end1128 def error_payload; end1129 def initialize(code, payload = nil); end1130 def payload; end1131 def payload=(arg0); end1132 def status; end1133 def value; end1134end1135class Selenium::WebDriver::Error::ServerError < StandardError1136 def initialize(response); end1137end1138module Selenium::WebDriver::Remote::Http1139end1140class Selenium::WebDriver::Remote::Http::Common1141 def call(verb, url, command_hash); end1142 def close; end1143 def create_response(code, body, content_type); end1144 def initialize; end1145 def quit_errors; end1146 def request(*arg0); end1147 def server_url; end1148 def server_url=(arg0); end1149 def timeout; end1150 def timeout=(arg0); end1151end1152class Selenium::WebDriver::Remote::Http::Default < Selenium::WebDriver::Remote::Http::Common1153 def close; end1154 def http; end1155 def initialize(open_timeout: nil, read_timeout: nil); end1156 def new_http_client; end1157 def new_request_for(verb, url, headers, payload); end1158 def open_timeout; end1159 def open_timeout=(arg0); end1160 def proxy; end1161 def proxy=(arg0); end1162 def read_timeout; end1163 def read_timeout=(arg0); end1164 def request(verb, url, headers, payload, redirects = nil); end1165 def response_for(request); end1166 def timeout=(value); end1167 def use_proxy?; end1168end1169class Selenium::WebDriver::Remote::Capabilities1170 def ==(other); end1171 def [](key); end1172 def []=(key, value); end1173 def as_json(*arg0); end1174 def browser_name; end1175 def browser_name=(value); end1176 def camel_case(str); end1177 def capabilities; end1178 def css_selectors_enabled; end1179 def css_selectors_enabled=(value); end1180 def css_selectors_enabled?; end1181 def eql?(other); end1182 def firefox_profile; end1183 def firefox_profile=(value); end1184 def initialize(opts = nil); end1185 def javascript_enabled; end1186 def javascript_enabled=(value); end1187 def javascript_enabled?; end1188 def merge!(other); end1189 def native_events; end1190 def native_events=(value); end1191 def native_events?; end1192 def platform; end1193 def platform=(value); end1194 def proxy; end1195 def proxy=(proxy); end1196 def rotatable; end1197 def rotatable=(value); end1198 def rotatable?; end1199 def self.chrome(opts = nil); end1200 def self.edge(opts = nil); end1201 def self.firefox(opts = nil); end1202 def self.firefox_legacy(opts = nil); end1203 def self.htmlunit(opts = nil); end1204 def self.htmlunitwithjs(opts = nil); end1205 def self.ie(opts = nil); end1206 def self.internet_explorer(opts = nil); end1207 def self.json_create(data); end1208 def self.phantomjs(opts = nil); end1209 def self.safari(opts = nil); end1210 def takes_screenshot; end1211 def takes_screenshot=(value); end1212 def takes_screenshot?; end1213 def to_json(*arg0); end1214 def version; end1215 def version=(value); end1216end1217module Selenium::WebDriver::Remote::OSS1218end1219class Selenium::WebDriver::Remote::OSS::Bridge < Selenium::WebDriver::Remote::Bridge1220 def accept_alert; end1221 def action; end1222 def active_element; end1223 def add_cookie(cookie); end1224 def alert=(keys); end1225 def alert_text; end1226 def assert_javascript_enabled; end1227 def authentication(credentials); end1228 def available_log_types; end1229 def clear_element(element); end1230 def clear_local_storage; end1231 def clear_session_storage; end1232 def click; end1233 def click_element(element); end1234 def close; end1235 def commands(command); end1236 def context_click; end1237 def cookies; end1238 def delete_all_cookies; end1239 def delete_cookie(name); end1240 def dialect; end1241 def dismiss_alert; end1242 def double_click; end1243 def drag_element(element, right_by, down_by); end1244 def element_attribute(element, name); end1245 def element_displayed?(element); end1246 def element_enabled?(element); end1247 def element_location(element); end1248 def element_location_once_scrolled_into_view(element); end1249 def element_property(element, name); end1250 def element_rect(element); end1251 def element_selected?(element); end1252 def element_size(element); end1253 def element_tag_name(element); end1254 def element_text(element); end1255 def element_value(element); end1256 def element_value_of_css_property(element, prop); end1257 def execute(*args); end1258 def execute_async_script(script, *args); end1259 def execute_script(script, *args); end1260 def find_element_by(how, what, parent = nil); end1261 def find_elements_by(how, what, parent = nil); end1262 def get(url); end1263 def go_back; end1264 def go_forward; end1265 def implicit_wait_timeout=(milliseconds); end1266 def initialize(capabilities, session_id, **opts); end1267 def keyboard; end1268 def local_storage_item(key, value = nil); end1269 def local_storage_keys; end1270 def local_storage_size; end1271 def location; end1272 def log(type); end1273 def manage; end1274 def maximize_window(handle = nil); end1275 def mouse; end1276 def mouse_down; end1277 def mouse_move_to(element, x = nil, y = nil); end1278 def mouse_up; end1279 def network_connection; end1280 def network_connection=(type); end1281 def page_source; end1282 def quit; end1283 def refresh; end1284 def remove_local_storage_item(key); end1285 def remove_session_storage_item(key); end1286 def reposition_window(x, y, handle = nil); end1287 def resize_window(width, height, handle = nil); end1288 def screen_orientation; end1289 def screen_orientation=(orientation); end1290 def screenshot; end1291 def script_timeout=(milliseconds); end1292 def send_keys_to_active_element(key); end1293 def send_keys_to_element(element, keys); end1294 def session_capabilities; end1295 def session_storage_item(key, value = nil); end1296 def session_storage_keys; end1297 def session_storage_size; end1298 def set_location(lat, lon, alt); end1299 def status; end1300 def submit_element(element); end1301 def switch_to_active_element; end1302 def switch_to_default_content; end1303 def switch_to_frame(id); end1304 def switch_to_parent_frame; end1305 def switch_to_window(name); end1306 def timeout(type, milliseconds); end1307 def title; end1308 def touch_double_tap(element); end1309 def touch_down(x, y); end1310 def touch_element_flick(element, right_by, down_by, speed); end1311 def touch_flick(xspeed, yspeed); end1312 def touch_long_press(element); end1313 def touch_move(x, y); end1314 def touch_scroll(element, x, y); end1315 def touch_single_tap(element); end1316 def touch_up(x, y); end1317 def upload(local_file); end1318 def url; end1319 def window_handle; end1320 def window_handles; end1321 def window_position(handle = nil); end1322 def window_size(handle = nil); end1323end1324module Selenium::WebDriver::Remote::W3C1325end1326class Selenium::WebDriver::Remote::W3C::Bridge < Selenium::WebDriver::Remote::Bridge1327 def accept_alert; end1328 def action(async = nil); end1329 def actions(async = nil); end1330 def active_element; end1331 def add_cookie(cookie); end1332 def alert=(keys); end1333 def alert_text; end1334 def clear_element(element); end1335 def clear_local_storage; end1336 def clear_session_storage; end1337 def click_element(element); end1338 def close; end1339 def commands(command); end1340 def convert_locators(how, what); end1341 def cookie(name); end1342 def cookies; end1343 def delete_all_cookies; end1344 def delete_cookie(name); end1345 def dialect; end1346 def dismiss_alert; end1347 def drag_element(element, right_by, down_by); end1348 def element_attribute(element, name); end1349 def element_displayed?(element); end1350 def element_enabled?(element); end1351 def element_location(element); end1352 def element_location_once_scrolled_into_view(element); end1353 def element_property(element, name); end1354 def element_rect(element); end1355 def element_selected?(element); end1356 def element_size(element); end1357 def element_tag_name(element); end1358 def element_text(element); end1359 def element_value(element); end1360 def element_value_of_css_property(element, prop); end1361 def escape_css(string); end1362 def execute(*arg0); end1363 def execute_async_script(script, *args); end1364 def execute_script(script, *args); end1365 def find_element_by(how, what, parent = nil); end1366 def find_elements_by(how, what, parent = nil); end1367 def full_screen_window; end1368 def get(url); end1369 def go_back; end1370 def go_forward; end1371 def implicit_wait_timeout=(milliseconds); end1372 def initialize(capabilities, session_id, **opts); end1373 def keyboard; end1374 def local_storage_item(key, value = nil); end1375 def local_storage_keys; end1376 def local_storage_size; end1377 def location; end1378 def manage; end1379 def maximize_window(handle = nil); end1380 def minimize_window; end1381 def mouse; end1382 def network_connection; end1383 def network_connection=(_type); end1384 def new_window(type); end1385 def page_source; end1386 def quit; end1387 def refresh; end1388 def release_actions; end1389 def remove_local_storage_item(key); end1390 def remove_session_storage_item(key); end1391 def reposition_window(x, y); end1392 def resize_window(width, height, handle = nil); end1393 def screen_orientation; end1394 def screen_orientation=(orientation); end1395 def screenshot; end1396 def script_timeout=(milliseconds); end1397 def send_actions(data); end1398 def send_keys_to_element(element, keys); end1399 def session_storage_item(key, value = nil); end1400 def session_storage_keys; end1401 def session_storage_size; end1402 def set_location(_lat, _lon, _alt); end1403 def set_window_rect(x: nil, y: nil, width: nil, height: nil); end1404 def status; end1405 def submit_element(element); end1406 def switch_to_active_element; end1407 def switch_to_default_content; end1408 def switch_to_frame(id); end1409 def switch_to_parent_frame; end1410 def switch_to_window(name); end1411 def timeout(type, milliseconds); end1412 def title; end1413 def touch_double_tap(element); end1414 def touch_down(x, y); end1415 def touch_element_flick(element, right_by, down_by, speed); end1416 def touch_flick(xspeed, yspeed); end1417 def touch_long_press(element); end1418 def touch_move(x, y); end1419 def touch_scroll(element, x, y); end1420 def touch_single_tap(element); end1421 def touch_up(x, y); end1422 def upload(local_file); end1423 def url; end1424 def window_handle; end1425 def window_handles; end1426 def window_position; end1427 def window_rect; end1428 def window_size(handle = nil); end1429end1430class Selenium::WebDriver::Remote::W3C::Capabilities1431 def ==(other); end1432 def [](key); end1433 def []=(key, value); end1434 def accept_insecure_certs; end1435 def accept_insecure_certs=(value); end1436 def accessibility_checks; end1437 def accessibility_checks=(value); end1438 def as_json(*arg0); end1439 def browser_name; end1440 def browser_name=(value); end1441 def browser_version; end1442 def browser_version=(value); end1443 def camel_case(str); end1444 def capabilities; end1445 def device; end1446 def device=(value); end1447 def eql?(other); end1448 def implicit_timeout; end1449 def implicit_timeout=(value); end1450 def initialize(opts = nil); end1451 def merge!(other); end1452 def page_load_strategy; end1453 def page_load_strategy=(value); end1454 def page_load_timeout; end1455 def page_load_timeout=(value); end1456 def platform; end1457 def platform=(value); end1458 def platform_name; end1459 def platform_name=(value); end1460 def proxy; end1461 def proxy=(proxy); end1462 def remote_session_id; end1463 def remote_session_id=(value); end1464 def script_timeout; end1465 def script_timeout=(value); end1466 def self.edge(opts = nil); end1467 def self.ff(opts = nil); end1468 def self.firefox(opts = nil); end1469 def self.from_oss(oss_capabilities); end1470 def self.json_create(data); end1471 def set_window_rect; end1472 def set_window_rect=(value); end1473 def strict_file_interactability; end1474 def strict_file_interactability=(value); end1475 def timeouts; end1476 def timeouts=(value); end1477 def to_json(*arg0); end1478 def unhandled_prompt_behavior; end1479 def unhandled_prompt_behavior=(value); end1480 def version; end1481 def version=(value); end1482end1483module Selenium::WebDriver::Safari1484 def self.driver_path; end1485 def self.driver_path=(path); end1486 def self.path; end1487 def self.path=(path); end1488 def self.technology_preview!; end1489 def self.technology_preview; end1490end1491module Selenium::WebDriver::Safari::Bridge1492 def attach_debugger; end1493 def commands(command); end1494 def permissions; end1495 def permissions=(permissions); end1496end1497class Selenium::WebDriver::Safari::Driver < Selenium::WebDriver::Driver1498 def browser; end1499 def create_capabilities(opts = nil); end1500 def initialize(opts = nil); end1501 def quit; end1502 include Selenium::WebDriver::DriverExtensions::HasDebugger1503 include Selenium::WebDriver::DriverExtensions::HasPermissions1504 include Selenium::WebDriver::DriverExtensions::TakesScreenshot1505end1506class Selenium::WebDriver::Safari::Options1507 def as_json(*arg0); end1508 def automatic_inspection; end1509 def automatic_inspection=(arg0); end1510 def automatic_profiling; end1511 def automatic_profiling=(arg0); end1512 def initialize(**opts); end1513end1514class Selenium::WebDriver::Safari::Service < Selenium::WebDriver::Service1515end1516module Selenium::WebDriver::Support1517end1518class Selenium::WebDriver::Support::EventFiringBridge1519 def clear_element(ref); end1520 def click_element(ref); end1521 def close; end1522 def create_element(ref); end1523 def dispatch(name, *args); end1524 def driver; end1525 def execute_script(script, *args); end1526 def find_element_by(how, what, parent = nil); end1527 def find_elements_by(how, what, parent = nil); end1528 def get(url); end1529 def go_back; end1530 def go_forward; end1531 def initialize(delegate, listener); end1532 def method_missing(meth, *args, &blk); end1533 def quit; end1534 def send_keys_to_element(ref, keys); end1535end1536class Selenium::WebDriver::Support::AbstractEventListener1537 def after_change_value_of(element, driver); end1538 def after_click(element, driver); end1539 def after_close(driver); end1540 def after_execute_script(script, driver); end1541 def after_find(by, what, driver); end1542 def after_navigate_back(driver); end1543 def after_navigate_forward(driver); end1544 def after_navigate_to(url, driver); end1545 def after_quit(driver); end1546 def before_change_value_of(element, driver); end1547 def before_click(element, driver); end1548 def before_close(driver); end1549 def before_execute_script(script, driver); end1550 def before_find(by, what, driver); end1551 def before_navigate_back(driver); end1552 def before_navigate_forward(driver); end1553 def before_navigate_to(url, driver); end1554 def before_quit(driver); end1555end1556class Selenium::WebDriver::Support::BlockEventListener1557 def initialize(callback); end1558 def method_missing(meth, *args); end1559end1560module Selenium::WebDriver::Support::Escaper1561 def self.escape(str); end1562end1563class Selenium::WebDriver::Support::Select1564 def deselect_all; end1565 def deselect_by(how, what); end1566 def deselect_by_index(index); end1567 def deselect_by_text(text); end1568 def deselect_by_value(value); end1569 def deselect_option(option); end1570 def deselect_options(opts); end1571 def find_by_index(index); end1572 def find_by_text(text); end1573 def find_by_value(value); end1574 def first_selected_option; end1575 def initialize(element); end1576 def multiple?; end1577 def options; end1578 def select_all; end1579 def select_by(how, what); end1580 def select_by_index(index); end1581 def select_by_text(text); end1582 def select_by_value(value); end1583 def select_option(option); end1584 def select_options(opts); end1585 def selected_options; end1586end1587class Selenium::WebDriver::Support::Color1588 def ==(other); end1589 def alpha; end1590 def blue; end1591 def eql?(other); end1592 def green; end1593 def hash; end1594 def hex; end1595 def initialize(red, green, blue, alpha = nil); end1596 def red; end1597 def rgb; end1598 def rgba; end1599 def self.from_hsl(h, s, l, a); end1600 def self.from_string(str); end1601 def self.hue_to_rgb(lum1, lum2, hue); end1602end...

Full Screen

Full Screen

page-object_spec.rb

Source:page-object_spec.rb Github

copy

Full Screen

...94 watir_page_object.platform.should_receive(:attach_to_window)95 watir_page_object.attach_to_window("blah")96 end97 98 it "should call initialize_page if it exists" do99 class CallbackPage100 include PageObject101 attr_reader :initialize_page_called102 103 def initialize_page104 @initialize_page_called = true105 end106 end107 108 @page = CallbackPage.new(watir_browser)109 @page.initialize_page_called.should be true110 end111 it "should call initialize_accessors if it exists" do112 class CallbackPage113 include PageObject114 attr_reader :initialize_accessors_called115 def initialize_accessors116 @initialize_accessors_called = true117 end118 end119 @page = CallbackPage.new(watir_browser)120 @page.initialize_accessors_called.should be true121 end122 it "should call initialize_accessors before initialize_page if both exist" do123 class CallbackPage124 include PageObject125 attr_reader :initialize_page, :initialize_accessors126 def initialize_page127 @initialize_accessors = Time.now128 end129 def initialize_page130 @initialize_accessors = Time.now131 end132 end133 @page = CallbackPage.new(watir_browser)134 @page.initialize_accessors.usec.should be <= @page.initialize_page.usec135 end136 it "should know which element has focus" do137 watir_browser.should_receive(:execute_script).and_return(watir_browser)138 watir_browser.should_receive(:tag_name).twice.and_return(:input)139 watir_browser.should_receive(:type).and_return(:submit)140 watir_page_object.element_with_focus.class.should == PageObject::Elements::Button141 end142 end143 144 context "when using WatirPageObject" do145 it "should display the page text" do146 watir_browser.should_receive(:text).and_return("browser text")147 watir_page_object.text.should == "browser text"148 end...

Full Screen

Full Screen

browser.rb

Source:browser.rb Github

copy

Full Screen

2module ActionDispatch3 module SystemTesting4 class Browser # :nodoc:5 attr_reader :name, :options6 def initialize(name)7 @name = name8 set_default_options9 end10 def type11 case name12 when :headless_chrome13 :chrome14 when :headless_firefox15 :firefox16 else17 name18 end19 end20 def configure21 initialize_options22 yield options if block_given? && options23 end24 # driver_path can be configured as a proc. The webdrivers gem uses this25 # proc to update web drivers. Running this proc early allows us to only26 # update the webdriver once and avoid race conditions when using27 # parallel tests.28 def preload29 case type30 when :chrome31 if ::Selenium::WebDriver::Service.respond_to? :driver_path=32 ::Selenium::WebDriver::Chrome::Service.driver_path&.call33 else34 # Selenium <= v3.141.035 ::Selenium::WebDriver::Chrome.driver_path36 end37 when :firefox38 if ::Selenium::WebDriver::Service.respond_to? :driver_path=39 ::Selenium::WebDriver::Firefox::Service.driver_path&.call40 else41 # Selenium <= v3.141.042 ::Selenium::WebDriver::Firefox.driver_path43 end44 end45 end46 private47 def initialize_options48 @options ||=49 case type50 when :chrome51 ::Selenium::WebDriver::Chrome::Options.new52 when :firefox53 ::Selenium::WebDriver::Firefox::Options.new54 end55 end56 def set_default_options57 case name58 when :headless_chrome59 set_headless_chrome_browser_options60 when :headless_firefox61 set_headless_firefox_browser_options...

Full Screen

Full Screen

utils.rb

Source:utils.rb Github

copy

Full Screen

1class Element2 def initialize selenium, expr3 @selenium = selenium4 @expr = expr5 end6 7 def type text8 @selenium.type @expr, text9 end10 11 def click12 @selenium.click @expr13 @selenium.wait_for_page_to_load14 end15end16class Browser17 def initialize(host='localhost', port=4444, browser='*firefox')18 @selenium = Selenium::SeleniumDriver.new host, port, browser, 'http://'19 @selenium.start20 end21 22 def go_to url23 @selenium.open url24 @selenium.wait_for_page_to_load25 end26 27 def find expr28 Element.new @selenium, expr29 end30 31 def quit32 @selenium.close33 @selenium.stop34 end35 def title36 @selenium.get_title37 end38end39def firefox(host = 'localhost', port = 4444, &block)40 b = Browser.new(host, port, '*firefox')41 yield b if block_given?42 b.quit43end44def internet_explorer(host = 'localhost', port = 4444)45 b = Browser.new(host, port, '*iexplore')46 yield b if block_given?47 b.quit48end49def be(value)50 Matcher.new(value)51end52class Matcher53 def initialize(value)54 @value = value55 end56 def matches?(other)57 @value == other58 end59 def to_s60 @value61 end62end63class Object64 def should(matcher)65 raise "'#{self}' should have been '#{matcher}'" unless matcher.matches?(self)66 end67end...

Full Screen

Full Screen

initialize

Using AI Code Generation

copy

Full Screen

1element = driver.find_element(:name, 'q')2element = driver.find_element(:name, 'q')3element = driver.find_element(:name, 'q')4element = driver.find_element(:name, 'q')5element = driver.find_element(:name, 'q')6element = driver.find_element(:name, 'q')7element = driver.find_element(:name, 'q')

Full Screen

Full Screen

initialize

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').click9driver.find_element(:name, 'q').send_keys "Selenium Webdriver"10driver.find_element(:name, 'btnG').click11driver.find_element(:name, 'q').send_keys "Selenium Webdriver"12driver.find_element(:name, 'btnG').click

Full Screen

Full Screen

initialize

Using AI Code Generation

copy

Full Screen

1 @driver.find_element(:name, 'q').send_keys "Selenium"2 @driver.find_element(:name, 'btnG').click3 assert(@driver.find_element(:tag_name => "body").text.include?("Selenium"))4 @driver.find_element(:name, 'q').send_keys "Selenium"5 @driver.find_element(:name, 'btnG').click6 assert(@driver.find_element(:tag_name => "body").text.include?("Selenium"))7 @driver.find_element(:name, 'q').send_keys "Selenium"8 @driver.find_element(:name, 'btnG').click9 assert(@driver.find_element(:tag_name => "body").text.include?("Selenium"))

Full Screen

Full Screen

initialize

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').click9driver.find_element(:name, 'q').send_keys "Selenium

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.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful