HENNGE / arsenic

Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Other
351 stars 54 forks source link

desiredCapabilities deprecated according to Firefox(?) #84

Closed dimaqq closed 4 years ago

dimaqq commented 4 years ago

Running tests with arsenic I get these in the logs:

webdriver::command WARN You are using deprecated legacy session negotiation patterns (desiredCapabilities/requiredCapabilities), see https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities#Legacy

tarekziade commented 4 years ago

The fix is simple, on this line https://github.com/HDE/arsenic/blob/master/src/arsenic/webdriver.py#L43

This replacement should work:

data={"capabilities": {"alwaysMatch": browser.capabilities}},
dimaqq commented 4 years ago

@tarekziade would you know what is the first version of geckodriver that supports the new format for capabilities?

tarekziade commented 4 years ago

@dimaqq 0.16.0 (2017-04-21)

ojii commented 4 years ago

fixed in 20.9