简体   繁体   中英

So when I run my python selenium script through jenkins, how should I write the 'driver = webdriver.Chrome()'?

So when I run my python selenium script through Jenkins, how should I write the driver = webdriver.Chrome()

How should I put the chrome webdriver EXE in jenkins?

Where should I put it?

If you have added your repository path in jenkins during job configuration, Jenkins will create a virtual copy of your workspace. So, as long as the webdriver file is somewhere in your project folder structure and as long as you are using relative path to reference it in your code, there shouldn't be any issues with respect to driver in invocation.

You question also depends on several params like: 1. Whether you are using Maven to run the test 2. Whether you are running tests on Jenkins locally or on a remote machine using Selenium Grid Architecture.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM