본문 바로가기
Automation

AppiumService가 시작되지 않을때 해결법 (WebDriver.__init__() got an unexpected keyword argument)

by Zeromk2 2024. 3. 6.
728x90

새 기능들을 테스트 해보려고 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 버전을 수정해보시는 것을 시도해보세요~!

댓글