Skip to content

[py] Don't override browser options with desired capabilities by defa…#6814

Merged
lmtierney merged 1 commit intoSeleniumHQ:masterfrom
WebKitGTK:webkitgtk-capabilities
Jan 4, 2019
Merged

[py] Don't override browser options with desired capabilities by defa…#6814
lmtierney merged 1 commit intoSeleniumHQ:masterfrom
WebKitGTK:webkitgtk-capabilities

Conversation

@carlosgcampos
Copy link
Copy Markdown
Contributor

@carlosgcampos carlosgcampos commented Jan 4, 2019

…ult in WebKitGTK

When desired_capabilities parameter is omitted in WebKitGTK driver, the
default capabilities are used. If options are also passed they are
updated from desired capabilities, overriding the passed options. The
desired_capabalities parameter should default to None instead.


This change is Reviewable

from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver
from .service import Service

from .options import Options
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you address the flake8 error here? Then we can merge.

@lmtierney lmtierney added the C-py Python Bindings label Jan 4, 2019
…ult in WebKitGTK

When desired_capabilities parameter is omitted in WebKitGTK driver, the
default capabilities are used. If options are also passed they are
updated from desired capabilities, overriding the passed options. The
desired_capabalities parameter should default to None instead.
@carlosgcampos carlosgcampos force-pushed the webkitgtk-capabilities branch from 9d26ea8 to 26b699b Compare January 4, 2019 14:19
@lmtierney lmtierney merged commit a920faa into SeleniumHQ:master Jan 4, 2019
@lmtierney
Copy link
Copy Markdown
Member

Merged, thank you!

@carlosgcampos carlosgcampos deleted the webkitgtk-capabilities branch January 4, 2019 16:27
shs96c pushed a commit to shs96c/selenium that referenced this pull request Feb 18, 2019
…ult in WebKitGTK (SeleniumHQ#6814)

When desired_capabilities parameter is omitted in WebKitGTK driver, the
default capabilities are used. If options are also passed they are
updated from desired capabilities, overriding the passed options. The
desired_capabalities parameter should default to None instead.
@bphd
Copy link
Copy Markdown

bphd commented Jun 19, 2023

WebKitGTK is now the only browser that can't run without any options, producing an error asking about desired capabilities. Is that because of you?

@titusfortner
Copy link
Copy Markdown
Member

@bphd please file a bug report if you believe the code is not doing what it should.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-py Python Bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants