Selenium missing or invalid 'entry.level' Error

后端 未结 4 1186
小鲜肉
小鲜肉 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: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");
    

提交回复
热议问题