wtnb75 / selenible

selenium like ansible
https://pypi.org/project/selenible/
MIT License
3 stars 2 forks source link

chrome driverが動かなくなっている #40

Closed wtnb75 closed 5 years ago

wtnb75 commented 5 years ago
# sw_vers
ProductName:    Mac OS X
ProductVersion: 10.14.5
BuildVersion:   18F132
# chromedriver --version
ChromeDriver 75.0.3770.90 (a6dcaf7e3ec6f70a194cc25e8149475c6590e025-refs/branch-heads/3770@{#1003})
# /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --version
Google Chrome 75.0.3770.100

https://github.com/wtnb75/selenible/blob/master/selenible/drivers/base.py#L188

log_types, w3c, window_positionも? getattrで取得しようとすると例外が発生する状況。

  File "/path/to/selenible/lib/python3.7/site-packages/selenible/drivers/base.py", line 188, in run1
    self.variables[v] = getattr(self.driver, v)
  File "/path/to/selenible/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 1247, in log_types
    return self.execute(Command.GET_AVAILABLE_LOG_TYPES)['value']
  File "/path/to/selenible/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/path/to/selenible/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown command: Cannot call non W3C standard command while in W3C mode
wtnb75 commented 5 years ago

ついでに、PyYAMLのwarning表示にも対応した。 ログがうるさいのでログレベルを下げたほうがいいかもしれない。