How to use context method of Selenium.WebDriver.Firefox.Features Package

Best Selenium code snippet using Selenium.WebDriver.Firefox.Features.context

selenium-webdriver@4.1.0.rbi

Source:selenium-webdriver@4.1.0.rbi Github

copy

Full Screen

...306 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)); end...

Full Screen

Full Screen

selenium-webdriver@4.0.3.rbi

Source:selenium-webdriver@4.0.3.rbi Github

copy

Full Screen

...305 def start_cast_tab_mirroring(name); end306 def stop_casting(name); end307end308module Selenium::WebDriver::DriverExtensions::HasContext309 def context; end310 def context=(value); end311end312module Selenium::WebDriver::DriverExtensions::HasDebugger313 def attach_debugger; end314end315module Selenium::WebDriver::DriverExtensions::HasDevTools316 def devtools; end317end318module Selenium::WebDriver::DriverExtensions::HasLaunching319 def launch_app(id); end320end321module Selenium::WebDriver::DriverExtensions::HasLocation322 def location; end323 def location=(*_arg0); end324 def set_location; end325end326module Selenium::WebDriver::DriverExtensions::HasLogEvents327 include ::Selenium::WebDriver::Atoms328 def on_log_event(kind, &block); end329 private330 def log_console_events; end331 def log_exception_events; end332 def log_listeners; end333 def log_mutation_event(params); end334 def log_mutation_events; end335 def mutation_listener; end336end337Selenium::WebDriver::DriverExtensions::HasLogEvents::KINDS = T.let(T.unsafe(nil), Array)338module Selenium::WebDriver::DriverExtensions::HasLogs339 def logs; end340end341module Selenium::WebDriver::DriverExtensions::HasNetworkConditions342 def delete_network_conditions; end343 def network_conditions; end344 def network_conditions=(conditions); end345end346module Selenium::WebDriver::DriverExtensions::HasNetworkConnection347 def network_connection_type; end348 def network_connection_type=(*_arg0); end349end350module Selenium::WebDriver::DriverExtensions::HasNetworkInterception351 def intercept(&block); end352 private353 def fetch_response_body(id); end354 def intercept_request(id, params, &block); end355 def intercept_response(id, params); end356 def pending_response_requests; end357end358module Selenium::WebDriver::DriverExtensions::HasPermissions359 def add_permission(name, value); end360 def add_permissions(opt); end361end362module Selenium::WebDriver::DriverExtensions::HasPinnedScripts363 def pin_script(script); end364 def pinned_scripts; end365 def unpin_script(script); end366end367module Selenium::WebDriver::DriverExtensions::HasRemoteStatus368 def remote_status; end369end370module Selenium::WebDriver::DriverExtensions::HasSessionId371 def session_id; end372end373module Selenium::WebDriver::DriverExtensions::HasWebStorage374 def local_storage; end375 def session_storage; end376end377module Selenium::WebDriver::DriverExtensions::PrintsPage378 def print_page(**options); end379 def save_print_page(path, **options); end380end381module Selenium::WebDriver::DriverExtensions::UploadsFiles382 def file_detector=(detector); end383end384module Selenium::WebDriver::Edge385 class << self386 def path; end387 def path=(path); end388 end389end390class Selenium::WebDriver::Edge::Driver < ::Selenium::WebDriver::Chrome::Driver391 def browser; end392 private393 def devtools_address; end394end395module Selenium::WebDriver::Edge::Features396 include ::Selenium::WebDriver::Chrome::Features397 def commands(command); end398end399Selenium::WebDriver::Edge::Features::EDGE_COMMANDS = T.let(T.unsafe(nil), Hash)400class Selenium::WebDriver::Edge::Options < ::Selenium::WebDriver::Chrome::Options401 protected402 def enable_logging(browser_options); end403 private404 def binary_path; end405end406Selenium::WebDriver::Edge::Options::BROWSER = T.let(T.unsafe(nil), String)407Selenium::WebDriver::Edge::Options::KEY = T.let(T.unsafe(nil), String)408class Selenium::WebDriver::Edge::Profile < ::Selenium::WebDriver::Chrome::Profile; end409class Selenium::WebDriver::Edge::Service < ::Selenium::WebDriver::Chrome::Service; end410Selenium::WebDriver::Edge::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)411Selenium::WebDriver::Edge::Service::EXECUTABLE = T.let(T.unsafe(nil), String)412Selenium::WebDriver::Edge::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)413Selenium::WebDriver::Edge::Service::SHUTDOWN_SUPPORTED = T.let(T.unsafe(nil), TrueClass)414class Selenium::WebDriver::Element415 include ::Selenium::WebDriver::SearchContext416 include ::Selenium::WebDriver::TakesScreenshot417 def initialize(bridge, id); end418 def ==(other); end419 def [](name); end420 def accessible_name; end421 def all(*args); end422 def aria_role; end423 def as_json(*_arg0); end424 def attribute(name); end425 def clear; end426 def click; end427 def css_value(prop); end428 def displayed?; end429 def dom_attribute(name); end430 def enabled?; end431 def eql?(other); end432 def first(*args); end433 def hash; end434 def inspect; end435 def location; end436 def location_once_scrolled_into_view; end437 def property(name); end438 def rect; end439 def ref; end440 def selected?; end441 def send_key(*args); end442 def send_keys(*args); end443 def shadow_root; end444 def size; end445 def style(prop); end446 def submit; end447 def tag_name; end448 def text; end449 def to_json(*_arg0); end450 private451 def bridge; end452 def screenshot; end453 def selectable?; end454end455Selenium::WebDriver::Element::ELEMENT_KEY = T.let(T.unsafe(nil), String)456module Selenium::WebDriver::Error457 class << self458 def for_error(error); end459 end460end461class Selenium::WebDriver::Error::DetachedShadowRootError < ::Selenium::WebDriver::Error::WebDriverError; end462class Selenium::WebDriver::Error::ElementClickInterceptedError < ::Selenium::WebDriver::Error::WebDriverError; end463class Selenium::WebDriver::Error::ElementNotInteractableError < ::Selenium::WebDriver::Error::WebDriverError; end464class Selenium::WebDriver::Error::InsecureCertificateError < ::Selenium::WebDriver::Error::WebDriverError; end465class Selenium::WebDriver::Error::InvalidArgumentError < ::Selenium::WebDriver::Error::WebDriverError; end466class Selenium::WebDriver::Error::InvalidCookieDomainError < ::Selenium::WebDriver::Error::WebDriverError; end467class Selenium::WebDriver::Error::InvalidElementStateError < ::Selenium::WebDriver::Error::WebDriverError; end468class Selenium::WebDriver::Error::InvalidSelectorError < ::Selenium::WebDriver::Error::WebDriverError; end469class Selenium::WebDriver::Error::InvalidSessionIdError < ::Selenium::WebDriver::Error::WebDriverError; end470class Selenium::WebDriver::Error::JavascriptError < ::Selenium::WebDriver::Error::WebDriverError; end471class Selenium::WebDriver::Error::MoveTargetOutOfBoundsError < ::Selenium::WebDriver::Error::WebDriverError; end472class Selenium::WebDriver::Error::NoSuchAlertError < ::Selenium::WebDriver::Error::WebDriverError; end473class Selenium::WebDriver::Error::NoSuchCookieError < ::Selenium::WebDriver::Error::WebDriverError; end474class Selenium::WebDriver::Error::NoSuchElementError < ::Selenium::WebDriver::Error::WebDriverError; end475class Selenium::WebDriver::Error::NoSuchFrameError < ::Selenium::WebDriver::Error::WebDriverError; end476class Selenium::WebDriver::Error::NoSuchShadowRootError < ::Selenium::WebDriver::Error::WebDriverError; end477class Selenium::WebDriver::Error::NoSuchWindowError < ::Selenium::WebDriver::Error::WebDriverError; end478class Selenium::WebDriver::Error::ScriptTimeoutError < ::Selenium::WebDriver::Error::WebDriverError; end479class Selenium::WebDriver::Error::ServerError < ::StandardError480 def initialize(response); end481end482class Selenium::WebDriver::Error::SessionNotCreatedError < ::Selenium::WebDriver::Error::WebDriverError; end483class Selenium::WebDriver::Error::StaleElementReferenceError < ::Selenium::WebDriver::Error::WebDriverError; end484class Selenium::WebDriver::Error::TimeoutError < ::Selenium::WebDriver::Error::WebDriverError; end485class Selenium::WebDriver::Error::UnableToCaptureScreenError < ::Selenium::WebDriver::Error::WebDriverError; end486class Selenium::WebDriver::Error::UnableToSetCookieError < ::Selenium::WebDriver::Error::WebDriverError; end487class Selenium::WebDriver::Error::UnexpectedAlertOpenError < ::Selenium::WebDriver::Error::WebDriverError; end488class Selenium::WebDriver::Error::UnknownCommandError < ::Selenium::WebDriver::Error::WebDriverError; end489class Selenium::WebDriver::Error::UnknownError < ::Selenium::WebDriver::Error::WebDriverError; end490class Selenium::WebDriver::Error::UnknownMethodError < ::Selenium::WebDriver::Error::WebDriverError; end491class Selenium::WebDriver::Error::UnsupportedOperationError < ::Selenium::WebDriver::Error::WebDriverError; end492class Selenium::WebDriver::Error::WebDriverError < ::StandardError; end493module Selenium::WebDriver::FileReaper494 class << self495 def <<(file); end496 def reap(file); end497 def reap!; end498 def reap=(_arg0); end499 def reap?; end500 def tmp_files; end501 end502end503module Selenium::WebDriver::Firefox504 class << self505 def driver_path; end506 def driver_path=(path); end507 def path; end508 def path=(path); end509 end510end511Selenium::WebDriver::Firefox::DEFAULT_ASSUME_UNTRUSTED_ISSUER = T.let(T.unsafe(nil), TrueClass)512Selenium::WebDriver::Firefox::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)513Selenium::WebDriver::Firefox::DEVTOOLS_VERSION = T.let(T.unsafe(nil), Integer)514class Selenium::WebDriver::Firefox::Driver < ::Selenium::WebDriver::Driver515 def browser; end516 private517 def devtools_url; end518 def devtools_version; end519end520Selenium::WebDriver::Firefox::Driver::EXTENSIONS = T.let(T.unsafe(nil), Array)521class Selenium::WebDriver::Firefox::Extension522 def initialize(path); end523 def write_to(extensions_dir); end524 private525 def applications_gecko_id(manifest); end526 def create_root; end527 def name_and_version(manifest); end528 def read_id(directory); end529 def read_id_from_install_rdf(directory); end530 def read_id_from_manifest_json(directory); end531end532Selenium::WebDriver::Firefox::Extension::NAMESPACE = T.let(T.unsafe(nil), String)533module Selenium::WebDriver::Firefox::Features534 def commands(command); end535 def context; end536 def context=(context); end537 def full_screenshot; end538 def install_addon(path, temporary); end539 def uninstall_addon(id); end540end541Selenium::WebDriver::Firefox::Features::FIREFOX_COMMANDS = T.let(T.unsafe(nil), Hash)542class Selenium::WebDriver::Firefox::Options < ::Selenium::WebDriver::Options543 def initialize(log_level: T.unsafe(nil), **opts); end544 def add_argument(arg); end545 def add_preference(name, value); end546 def debugger_address; end547 def debugger_address=(_arg0); end548 def enable_android(package: T.unsafe(nil), serial_number: T.unsafe(nil), activity: T.unsafe(nil), intent_arguments: T.unsafe(nil)); end549 def headless!; end550 def log_level; end551 def log_level=(level); end552 def profile; end553 def profile=(profile); end554 private555 def camelize?(key); end556 def process_browser_options(browser_options); end557 def process_profile(profile); end558end559Selenium::WebDriver::Firefox::Options::BROWSER = T.let(T.unsafe(nil), String)560Selenium::WebDriver::Firefox::Options::CAPABILITIES = T.let(T.unsafe(nil), Hash)561Selenium::WebDriver::Firefox::Options::KEY = T.let(T.unsafe(nil), String)562class Selenium::WebDriver::Firefox::Profile563 include ::Selenium::WebDriver::ProfileHelper564 extend ::Selenium::WebDriver::ProfileHelper::ClassMethods565 def initialize(model = T.unsafe(nil)); end566 def []=(key, value); end567 def add_extension(path, name = T.unsafe(nil)); end568 def as_json; end569 def layout_on_disk; end570 def load_no_focus_lib=(_arg0); end571 def log_file; end572 def log_file=(file); end573 def name; end574 def port=(port); end575 def proxy=(proxy); end576 def secure_ssl=(_arg0); end577 private578 def delete_extensions_cache(directory); end579 def delete_lock_files(directory); end580 def extension_name_for(path); end581 def install_extensions(directory); end582 def read_model_prefs; end583 def read_user_prefs(path); end584 def set_manual_proxy_preference(key, value); end585 def stringified?(str); end586 def update_user_prefs_in(directory); end587 def write_prefs(prefs, path); end588 class << self589 def decoded(json); end590 def from_name(name); end591 def ini; end592 end593end594Selenium::WebDriver::Firefox::Profile::DEFAULT_PREFERENCES = T.let(T.unsafe(nil), Hash)595Selenium::WebDriver::Firefox::Profile::VALID_PREFERENCE_TYPES = T.let(T.unsafe(nil), Array)596class Selenium::WebDriver::Firefox::ProfilesIni597 def initialize; end598 def [](name); end599 def refresh; end600 private601 def parse; end602 def path_for(name, is_relative, path); end603end604class Selenium::WebDriver::Firefox::Service < ::Selenium::WebDriver::Service605 private606 def extract_service_args(driver_opts); end607end608Selenium::WebDriver::Firefox::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)609Selenium::WebDriver::Firefox::Service::EXECUTABLE = T.let(T.unsafe(nil), String)610Selenium::WebDriver::Firefox::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)611module Selenium::WebDriver::HTML5; end612class Selenium::WebDriver::HTML5::LocalStorage613 include ::Enumerable614 include ::Selenium::WebDriver::HTML5::SharedWebStorage615 def initialize(bridge); end616 def [](key); end617 def []=(key, value); end618 def clear; end619 def delete(key); end620 def keys; end621 def size; end622end623class Selenium::WebDriver::HTML5::SessionStorage624 include ::Enumerable625 include ::Selenium::WebDriver::HTML5::SharedWebStorage626 def initialize(bridge); end627 def [](key); end628 def []=(key, value); end629 def clear; end630 def delete(key); end631 def keys; end632 def size; end633end634module Selenium::WebDriver::HTML5::SharedWebStorage635 include ::Enumerable636 def each; end637 def empty?; end638 def fetch(key); end639 def has_key?(key); end640 def key?(key); end641 def member?(key); end642end643module Selenium::WebDriver::IE644 class << self645 def driver_path; end646 def driver_path=(path); end647 end648end649class Selenium::WebDriver::IE::Driver < ::Selenium::WebDriver::Driver650 def browser; end651end652Selenium::WebDriver::IE::Driver::EXTENSIONS = T.let(T.unsafe(nil), Array)653class Selenium::WebDriver::IE::Options < ::Selenium::WebDriver::Options654 def initialize(**opts); end655 def add_argument(arg); end656 def args; end657 private658 def process_browser_options(browser_options); end659end660Selenium::WebDriver::IE::Options::BROWSER = T.let(T.unsafe(nil), String)661Selenium::WebDriver::IE::Options::CAPABILITIES = T.let(T.unsafe(nil), Hash)662Selenium::WebDriver::IE::Options::KEY = T.let(T.unsafe(nil), String)663Selenium::WebDriver::IE::Options::SCROLL_BOTTOM = T.let(T.unsafe(nil), Integer)664Selenium::WebDriver::IE::Options::SCROLL_TOP = T.let(T.unsafe(nil), Integer)665class Selenium::WebDriver::IE::Service < ::Selenium::WebDriver::Service666 private667 def extract_service_args(driver_opts); end668end669Selenium::WebDriver::IE::Service::DEFAULT_PORT = T.let(T.unsafe(nil), Integer)670Selenium::WebDriver::IE::Service::EXECUTABLE = T.let(T.unsafe(nil), String)671Selenium::WebDriver::IE::Service::MISSING_TEXT = T.let(T.unsafe(nil), String)672Selenium::WebDriver::IE::Service::SHUTDOWN_SUPPORTED = T.let(T.unsafe(nil), TrueClass)673module Selenium::WebDriver::Interactions674 class << self675 def key(name); end676 def none(name = T.unsafe(nil)); end677 def pointer(kind, **kwargs); end678 end679end680class Selenium::WebDriver::Interactions::InputDevice681 def initialize(name = T.unsafe(nil)); end682 def actions; end683 def add_action(action); end684 def clear_actions; end685 def create_pause(duration = T.unsafe(nil)); end686 def name; end687 def no_actions?; end688end689class Selenium::WebDriver::Interactions::Interaction690 def initialize(source); end691 def source; end692end693Selenium::WebDriver::Interactions::Interaction::PAUSE = T.let(T.unsafe(nil), Symbol)694Selenium::WebDriver::Interactions::KEY = T.let(T.unsafe(nil), Symbol)695class Selenium::WebDriver::Interactions::KeyInput < ::Selenium::WebDriver::Interactions::InputDevice696 def create_key_down(key); end697 def create_key_up(key); end698 def encode; end699 def type; end700end701Selenium::WebDriver::Interactions::KeyInput::SUBTYPES = T.let(T.unsafe(nil), Hash)702class Selenium::WebDriver::Interactions::KeyInput::TypingInteraction < ::Selenium::WebDriver::Interactions::Interaction703 def initialize(source, type, key); end704 def assert_type(type); end705 def encode; end706 def type; end707end708Selenium::WebDriver::Interactions::NONE = T.let(T.unsafe(nil), Symbol)709class Selenium::WebDriver::Interactions::NoneInput < ::Selenium::WebDriver::Interactions::InputDevice710 def encode; end711 def type; end712end713Selenium::WebDriver::Interactions::POINTER = T.let(T.unsafe(nil), Symbol)714class Selenium::WebDriver::Interactions::Pause < ::Selenium::WebDriver::Interactions::Interaction715 def initialize(source, duration = T.unsafe(nil)); end716 def encode; end717 def type; end718end719class Selenium::WebDriver::Interactions::PointerCancel < ::Selenium::WebDriver::Interactions::Interaction720 def encode; end721 def type; end722end723class Selenium::WebDriver::Interactions::PointerInput < ::Selenium::WebDriver::Interactions::InputDevice724 def initialize(kind, name: T.unsafe(nil)); end725 def assert_kind(pointer); end726 def create_pointer_cancel; end727 def create_pointer_down(button); end728 def create_pointer_move(duration: T.unsafe(nil), x: T.unsafe(nil), y: T.unsafe(nil), element: T.unsafe(nil), origin: T.unsafe(nil)); end729 def create_pointer_up(button); end730 def encode; end731 def kind; end732 def type; end733end734Selenium::WebDriver::Interactions::PointerInput::KIND = T.let(T.unsafe(nil), Hash)735class Selenium::WebDriver::Interactions::PointerMove < ::Selenium::WebDriver::Interactions::Interaction736 def initialize(source, duration, x, y, element: T.unsafe(nil), origin: T.unsafe(nil)); end737 def encode; end738 def type; end739end740Selenium::WebDriver::Interactions::PointerMove::ORIGINS = T.let(T.unsafe(nil), Array)741Selenium::WebDriver::Interactions::PointerMove::POINTER = T.let(T.unsafe(nil), Symbol)742Selenium::WebDriver::Interactions::PointerMove::VIEWPORT = T.let(T.unsafe(nil), Symbol)743class Selenium::WebDriver::Interactions::PointerPress < ::Selenium::WebDriver::Interactions::Interaction744 def initialize(source, direction, button); end745 def assert_button(button); end746 def assert_direction(direction); end747 def encode; end748 def type; end749end750Selenium::WebDriver::Interactions::PointerPress::BUTTONS = T.let(T.unsafe(nil), Hash)751Selenium::WebDriver::Interactions::PointerPress::DIRECTIONS = T.let(T.unsafe(nil), Hash)752Selenium::WebDriver::Interactions::SOURCE_TYPES = T.let(T.unsafe(nil), Array)753module Selenium::WebDriver::KeyActions754 def key_down(*args, device: T.unsafe(nil)); end755 def key_up(*args, device: T.unsafe(nil)); end756 def send_keys(*args, device: T.unsafe(nil)); end757 private758 def key_action(*args, action: T.unsafe(nil), device: T.unsafe(nil)); end759end760module Selenium::WebDriver::Keys761 class << self762 def [](key); end763 def encode(keys); end764 def encode_key(key); end765 end766end767Selenium::WebDriver::Keys::KEYS = T.let(T.unsafe(nil), Hash)768class Selenium::WebDriver::Location < ::Struct769 def altitude; end770 def altitude=(_); end771 def latitude; end772 def latitude=(_); end773 def longitude; end774 def longitude=(_); end775 class << self776 def [](*_arg0); end777 def inspect; end778 def members; end779 def new(*_arg0); end780 end781end782class Selenium::WebDriver::LogEntry783 def initialize(level, timestamp, message); end784 def as_json(*_arg0); end785 def level; end786 def message; end787 def time; end788 def timestamp; end789 def to_s; end790end791class Selenium::WebDriver::Logger792 extend ::Forwardable793 def initialize(progname = T.unsafe(nil)); end794 def close(*args, &block); end795 def debug(*args, &block); end796 def debug?(*args, &block); end797 def deprecate(old, new = T.unsafe(nil), id: T.unsafe(nil), reference: T.unsafe(nil), &block); end798 def error(*args, &block); end799 def error?(*args, &block); end800 def fatal(*args, &block); end801 def fatal?(*args, &block); end802 def ignore(id); end803 def info(*args, &block); end804 def info?(*args, &block); end805 def io; end806 def level(*args, &block); end807 def level=(*args, &block); end808 def output=(io); end809 def warn(message, id: T.unsafe(nil)); end810 def warn?(*args, &block); end811 private812 def create_logger(name); end813 def default_level; end814end815class Selenium::WebDriver::Logs816 def initialize(bridge); end817 def available_types; end818 def get(type); end819end820class Selenium::WebDriver::Manager821 def initialize(bridge); end822 def add_cookie(opts = T.unsafe(nil)); end823 def all_cookies; end824 def cookie_named(name); end825 def delete_all_cookies; end826 def delete_cookie(name); end827 def logs; end828 def new_window(type = T.unsafe(nil)); end829 def timeouts; end830 def window; end831 private832 def convert_cookie(cookie); end833 def datetime_at(int); end834 def seconds_from(obj); end835 def strip_port(str); end836end837Selenium::WebDriver::Manager::SECONDS_PER_DAY = T.let(T.unsafe(nil), Float)838class Selenium::WebDriver::Navigation839 def initialize(bridge); end840 def back; end841 def forward; end842 def refresh; end843 def to(url); end844end845class Selenium::WebDriver::Options846 def initialize(options: T.unsafe(nil), **opts); end847 def ==(other); end848 def add_option(name, value = T.unsafe(nil)); end849 def as_json(*_arg0); end850 def eql?(other); end851 def options; end852 def options=(_arg0); end853 private854 def camel_case(str); end855 def camelize?(_key); end856 def convert_json_key(key, camelize: T.unsafe(nil)); end857 def generate_as_json(value, camelize_keys: T.unsafe(nil)); end858 def process_browser_options(_browser_options); end859 def process_json_hash(value, camelize_keys); end860 def process_w3c_options(options); end861 def w3c?(key); end862 class << self863 def chrome(**opts); end864 def driver_path; end865 def edge(**opts); end866 def firefox(**opts); end867 def ie(**opts); end868 def internet_explorer(**opts); end869 def microsoftedge(**opts); end870 def safari(**opts); end871 def set_capabilities; end872 end873end874Selenium::WebDriver::Options::W3C_OPTIONS = T.let(T.unsafe(nil), Array)875module Selenium::WebDriver::Platform876 private877 def assert_executable(path); end878 def assert_file(path); end879 def bitsize; end880 def ci; end881 def cygwin?; end882 def cygwin_path(path, **opts); end883 def engine; end884 def exit_hook; end885 def find_binary(*binary_names); end886 def find_in_program_files(*binary_names); end887 def home; end888 def interfaces; end889 def ip; end890 def jruby?; end891 def linux?; end892 def localhost; end893 def mac?; end894 def make_writable(file); end895 def null_device; end896 def os; end897 def ruby_version; end898 def unix_path(path); end899 def windows?; end900 def windows_path(path); end901 def wrap_in_quotes_if_necessary(str); end902 def wsl?; end903 class << self904 def assert_executable(path); end905 def assert_file(path); end906 def bitsize; end907 def ci; end908 def cygwin?; end909 def cygwin_path(path, **opts); end910 def engine; end911 def exit_hook; end912 def find_binary(*binary_names); end913 def find_in_program_files(*binary_names); end914 def home; end915 def interfaces; end916 def ip; end917 def jruby?; end918 def linux?; end919 def localhost; end920 def mac?; end921 def make_writable(file); end922 def null_device; end923 def os; end924 def ruby_version; end925 def unix_path(path); end926 def windows?; end927 def windows_path(path); end928 def wrap_in_quotes_if_necessary(str); end929 def wsl?; end930 end931end932class Selenium::WebDriver::Point < ::Struct933 def x; end934 def x=(_); end935 def y; end936 def y=(_); end937 class << self938 def [](*_arg0); end939 def inspect; end940 def members; end941 def new(*_arg0); end942 end943end944module Selenium::WebDriver::PointerActions945 def click(element = T.unsafe(nil), device: T.unsafe(nil)); end946 def click_and_hold(element = T.unsafe(nil), device: T.unsafe(nil)); end947 def context_click(element = T.unsafe(nil), device: T.unsafe(nil)); end948 def default_move_duration; end949 def default_move_duration=(_arg0); end950 def double_click(element = T.unsafe(nil), device: T.unsafe(nil)); end951 def drag_and_drop(source, target, device: T.unsafe(nil)); end952 def drag_and_drop_by(source, right_by, down_by, device: T.unsafe(nil)); end953 def move_by(right_by, down_by, device: T.unsafe(nil)); end954 def move_to(element, right_by = T.unsafe(nil), down_by = T.unsafe(nil), device: T.unsafe(nil)); end955 def move_to_location(x, y, device: T.unsafe(nil)); end956 def pointer_down(button, device: T.unsafe(nil)); end957 def pointer_up(button, device: T.unsafe(nil)); end958 def release(device: T.unsafe(nil)); end959 private960 def button_action(button, action: T.unsafe(nil), device: T.unsafe(nil)); end961 def get_pointer(device = T.unsafe(nil)); end...

Full Screen

Full Screen

features.rb

Source:features.rb Github

copy

Full Screen

...19 module WebDriver20 module Firefox21 module Features22 FIREFOX_COMMANDS = {23 get_context: [:get, 'session/:session_id/moz/context'],24 set_context: [:post, 'session/:session_id/moz/context'],25 install_addon: [:post, 'session/:session_id/moz/addon/install'],26 uninstall_addon: [:post, 'session/:session_id/moz/addon/uninstall'],27 full_page_screenshot: [:get, 'session/:session_id/moz/screenshot/full']28 }.freeze29 def commands(command)30 FIREFOX_COMMANDS[command] || self.class::COMMANDS[command]31 end32 def install_addon(path, temporary)33 if @file_detector34 local_file = @file_detector.call(path)35 path = upload(local_file) if local_file36 end37 payload = {path: path}38 payload[:temporary] = temporary unless temporary.nil?39 execute :install_addon, {}, payload40 end41 def uninstall_addon(id)42 execute :uninstall_addon, {}, {id: id}43 end44 def full_screenshot45 execute :full_page_screenshot46 end47 def context=(context)48 execute :set_context, {}, {context: context}49 end50 def context51 execute :get_context52 end53 end # Bridge54 end # Firefox55 end # WebDriver56end # Selenium...

Full Screen

Full Screen

context

Using AI Code Generation

copy

Full Screen

1driver.find_element(:name, 'q').send_keys "Hello WebDriver!"2driver.find_element(:name, 'btnG').click3wait.until { driver.title.downcase.start_with? "hello webdriver!" }4driver.find_element(:name, 'q').send_keys "Hello WebDriver!"5driver.find_element(:name, 'btnG').click6wait.until { driver.title.downcase.start_with? "hello webdriver!" }7driver.find_element(:name, 'q').send_keys "Hello WebDriver!"8driver.find_element(:name, 'btnG').click9wait.until { driver.title.downcase.start_with? "hello webdriver!" }10driver.find_element(:name, 'q').send_keys "Hello WebDriver!"11driver.find_element(:name, 'btnG').click12wait.until { driver.title.downcase.start_with? "hello webdriver!" }

Full Screen

Full Screen

context

Using AI Code Generation

copy

Full Screen

1event_driver = Selenium::WebDriver::EventFiringWebDriver.new(driver)2event_driver.listen_to(:contextmenu) do |event|3driver.action.context_click(driver.find_element(:tag_name, 'body')).perform

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