새 기능들을 테스트 해보려고 Appium Driver나 Appium의 버전을 올려서 이것저것 실험을 할 때가 있습니다.
Selenium도 마찬가지인데요, 업그레이드만 해 놓고 한동안 사용하지 않다가 오랜만에 사용할때 문제가 생기면
참 난감합니다.
이번에도 이 문제가 발생하면서 AppiumService가 실행되지 않았습니다.
WebDriver.__init__() got an unexpected keyword argument 'desired_capabilities'
응? 'desired_capabilities' 는 구버전에서 사용하던 것인데 왜 이 에러가?....
이럴때는 역시 근 to the 본 구글링을 해줍니다.
찾아보니 이런 문제는 오래전부터 다른분들이 겪었던 이슈였는데 이 문제는 Selenium 버전에 의한 문제였습니다.
Getting TypeError: WebDriver.__init__() got an unexpected keyword argument 'desired_capabilities' when using Appium with Seleniu
Error: HOOK-ERROR in before_scenario: TypeError: WebDriver.__init__() got an unexpected keyword argument 'desired_capabilities' Hello, we currently cannot run our script together with the latest Selenium 4.10. Is this Appium error or Python error? capabili
discuss.appium.io
해결법은 Selenium을 4.10.0 버전보다 낮게 설정하시면 됩니다. 저 같은경우 4.9.1 로 낮추니 문제가 해결되었습니다.
혹시 동일한 현상을 겪고 계시다면 Selenium 버전을 수정해보시는 것을 시도해보세요~!
'Automation' 카테고리의 다른 글
Appium WebdriverAgent 빌드시 발생하는 Parameter of overriding method should be annotated with __attribute__((noescape)) 에러 해결하기 (0) | 2024.04.17 |
---|---|
Chrome driver 115버전 이후 버전 다운 (0) | 2024.03.13 |
Appium 2.0 uiautomator2 에서 세션종료시 앱 종료하기 (1) | 2024.02.28 |
App 테스트 자동화를 위한 Sample Test App 공유 (APK) (2) | 2023.12.05 |
Appium 병렬 실행을 위한 capabilities 설정 (0) | 2023.09.06 |
댓글