pub struct ChromeCapabilities { /* private fields */ }

Implementations

Create a new ChromeCapabilities struct.

Add the specified Chrome option. This is a helper method for add_chrome_arg().

Get the specified Chrome option.

Get the current list of command-line arguments to chromedriver as a vec.

Get the current list of Chrome extensions as a vec. Each item is a base64-encoded string containing the .CRX extension file contents. Use add_extension() to add a new extension file.

Get the path to the chrome binary (if one was previously set).

Set the path to chrome binary to use.

Get the current debugger address (if one was previously set).

Set the debugger address.

Add the specified command-line argument to chromedriver. Eg. “–disable-local-storage” The full list of switches can be found here: https://chromium.googlesource.com/chromium/src/+/master/chrome/common/chrome_switches.cc

Remove the specified Chrome command-line argument if it had been added previously.

Add a base64-encoded extension.

Remove the specified base64-encoded extension if it had been added previously.

Add Chrome extension file. This will be a file with a .CRX extension.

Remove the specified Chrome extension file if an identical extension had been added previously.

Set the browser to run headless.

Unset the headless option.

Set disable web security.

Unset disable web security.

Set ignore certificate errors.

Unset ignore certificate errors.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Converts to this type from the input type.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more