Sync Usage

SyncInput

cdp_patches.input.SyncInput()

Kwargs
Type
Usage
Defaults

pid

int

The Main Chrome Browser Window PID to connect to. Can also be found in Chromes Task-Manager (Shift+Esc).

None

browser

sync_browsers

A Sync Browser Instance. Can be any of: (sd = selenium_driverless) (pw = playwright) selenium.webdriver.Chrome, sd.sync.webdriver.Chrome, pw.sync_api.Browser, pw.sync_api.BrowserContext

None

scale_factor

float

The Scaling Factor of the Browser. If a browser Instance is passed, this value gets determined automatically.

1.0

emulate_behaviour

bool

Whether to emulate human behaviour.

True

window_timeout

float

Timeout to wait for a window to be recognized. In Seconds.

30


SyncInput Properties

Property
Type
Usage
Defaults

emulate_behaviour

bool

Whether to emulate human behaviour.

True

window_timeout

int

The Time of how long to search for the Window in seconds.

30

base

WindowsBase | LinuxBase

The Base Interaction Layer. Can be useful in some special cases in which emulate_behaviour isnt sufficient. Only Readable.

None

scale_factor

float

The Scaling Factor of the Browser. If a browserInstance is passed, this value gets determined automatically.

1.0

sleep_timeout

float

How long to sleep after certain actions, for example in between a double-click. In Seconds.

0.01

window_timeout

float

Timeout to wait for a window to be recognized. In Seconds.

30

typing_speed

int

How fast to type in WPM.

50


SyncInput Methods

Last updated