MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / get_local_driver

Function get_local_driver

seleniumbase/core/browser_launcher.py:4048–6204  ·  view source on GitHub ↗

Spins up a new web browser and returns the driver. Can also be used to spin up additional browsers for the same test.

(
    browser_name,
    headless,
    locale_code,
    servername,
    proxy_string,
    proxy_auth,
    proxy_user,
    proxy_pass,
    proxy_scheme,
    proxy_bypass_list,
    proxy_pac_url,
    multi_proxy,
    user_agent,
    recorder_ext,
    disable_cookies,
    disable_js,
    disable_csp,
    enable_ws,
    enable_sync,
    use_auto_ext,
    undetectable,
    uc_cdp_events,
    uc_subprocess,
    log_cdp_events,
    no_sandbox,
    disable_gpu,
    headless1,
    headless2,
    incognito,
    guest_mode,
    dark_mode,
    devtools,
    remote_debug,
    enable_3d_apis,
    swiftshader,
    ad_block_on,
    host_resolver_rules,
    block_images,
    do_not_track,
    chromium_arg,
    firefox_arg,
    firefox_pref,
    user_data_dir,
    extension_zip,
    extension_dir,
    disable_features,
    binary_location,
    driver_version,
    page_load_strategy,
    external_pdf,
    mobile_emulator,
    device_width,
    device_height,
    device_pixel_ratio,
)

Source from the content-addressed store, hash-verified

4046
4047
4048def get_local_driver(
4049 browser_name,
4050 headless,
4051 locale_code,
4052 servername,
4053 proxy_string,
4054 proxy_auth,
4055 proxy_user,
4056 proxy_pass,
4057 proxy_scheme,
4058 proxy_bypass_list,
4059 proxy_pac_url,
4060 multi_proxy,
4061 user_agent,
4062 recorder_ext,
4063 disable_cookies,
4064 disable_js,
4065 disable_csp,
4066 enable_ws,
4067 enable_sync,
4068 use_auto_ext,
4069 undetectable,
4070 uc_cdp_events,
4071 uc_subprocess,
4072 log_cdp_events,
4073 no_sandbox,
4074 disable_gpu,
4075 headless1,
4076 headless2,
4077 incognito,
4078 guest_mode,
4079 dark_mode,
4080 devtools,
4081 remote_debug,
4082 enable_3d_apis,
4083 swiftshader,
4084 ad_block_on,
4085 host_resolver_rules,
4086 block_images,
4087 do_not_track,
4088 chromium_arg,
4089 firefox_arg,
4090 firefox_pref,
4091 user_data_dir,
4092 extension_zip,
4093 extension_dir,
4094 disable_features,
4095 binary_location,
4096 driver_version,
4097 page_load_strategy,
4098 external_pdf,
4099 mobile_emulator,
4100 device_width,
4101 device_height,
4102 device_pixel_ratio,
4103):
4104 """Spins up a new web browser and returns the driver.
4105 Can also be used to spin up additional browsers for the same test."""

Callers 1

get_driverFunction · 0.85

Calls 15

quitMethod · 0.95
connectMethod · 0.95
_special_binary_existsFunction · 0.85
override_driver_dirFunction · 0.85
is_using_ucFunction · 0.85
_set_firefox_optionsFunction · 0.85
geckodriver_on_pathFunction · 0.85
extend_driverFunction · 0.85
iedriver_on_pathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…