Skip to content

Disable W3C protocol in Chrome 75+#640

Merged
OndraM merged 1 commit intophp-webdriver:communityfrom
OndraM:fix/chromedriver-hotfix
Jun 9, 2019
Merged

Disable W3C protocol in Chrome 75+#640
OndraM merged 1 commit intophp-webdriver:communityfrom
OndraM:fix/chromedriver-hotfix

Conversation

@OndraM
Copy link
Collaborator

@OndraM OndraM commented Jun 8, 2019

Chromedriver 75 released together with Chrome 75 on 4th June 2019 uses W3C WebDriver protocol by default.

But php-webdriver does not (see #469) support this protocol yet, so this hotfix disables the W3C WebDriver protocol and re-enables the old one JsonWire aka OSS.

Unfortunately, this change in Chromedriver 75 accidentally broke the old JsonWire protocol, so just disabling the new protocol is not enough :-/. See Chromedriver bug 2943. The bug causes Chromedriver to require at least some data in POST body request (what should not be required in JsonWire protocol). So as a workaround for the Chromedriver bug, we are adding some dummy data in the body (as suggested here), until Chrome team fixes the bug.

@OndraM OndraM changed the title Disable default W3C protocol in Chrome 75+ Disable W3C protocol in Chrome 75+; add workaround for Chrome bug #2943 Jun 8, 2019
@OndraM OndraM changed the title Disable W3C protocol in Chrome 75+; add workaround for Chrome bug #2943 Disable W3C protocol in Chrome 75+ Jun 8, 2019
@OndraM OndraM merged commit 79d1bb3 into php-webdriver:community Jun 9, 2019
@OndraM OndraM deleted the fix/chromedriver-hotfix branch October 11, 2020 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants