Cannot find Chrome binary when executing a selenium (testng) test in jenkins on windows 7

后端 未结 13 1651
太阳男子
太阳男子 2020-12-29 10:22

I have a basic login test with selenium and testng. When executed from eclipse, it works as expected and invoke Google Chrome. If executed from TESTNG command line, it works

13条回答
  •  北海茫月
    2020-12-29 10:50

    Please check your binary path if still not works then

    you should have installed chrome in your machine

    and your chromedriver.exe version should accordingly (like if you have chrome 87.0 ver then download chromedriver.exe for ver 87.0)

    download form it from https://chromedriver.chromium.org/downloads

    and given new chromedriver.exe path to your script.

    This works fine for me

提交回复
热议问题