Skip to content

Standard pattern for calling browser-specific functions on webdriver? #262

Open
@dhalperi

Description

@dhalperi

Hi,

We make great use of the chrome_options and firefox_options fixtures - they're great.

However, some functionality is only exposed on a specific instance of Webdriver, e.g., ChromiumDriver#set_network_conditions

Is there a standard place/way to call these functions only when the right type of browser is in use? Obviously we can inspect the current webdriver, pytestconfig, test environment, etc., to determine whether it's a ChromiumDriver, but since the options are handled so nicely I thought maybe this would be too.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions