Selenium missing or invalid 'entry.level' Error

后端 未结 4 1177
小鲜肉
小鲜肉 2020-12-17 07:45

I\'m trying to run a selenium test which should work just fine (hasn\'t changed and used to work) but I\'m getting this strange error.

System.InvalidOperatio         


        
相关标签:
4条回答
  • 2020-12-17 08:24

    For Mac users, I made a

    webdriver-manager clean
    

    and then a

    webdriver-manager update
    
    0 讨论(0)
  • 2020-12-17 08:29

    Just make sure you've set the browser exe correctly, like to execute your tests on Chrome you would need chromedriver.exe in your path.

     System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir")+
                    "\\src\\main\\resources\\chromedriver.exe");
    
    0 讨论(0)
  • 2020-12-17 08:31

    Please update all your maven dependencies:

    • maven-compiler-plugin
    • maven-surefire-plugin
    • webdrivermanager
    • selenium-chrome-driver
    0 讨论(0)
  • 2020-12-17 08:50

    I resolved this by updating my chrome driver to the latest version (v2.34 at the time of writing).

    You can get the chromedriver here: https://sites.google.com/a/chromium.org/chromedriver/downloads

    just download the .exe file then replace the chromedriver file in your project's selenium/bin folder.

    0 讨论(0)
提交回复
热议问题