问题
My objective is running automation based selenium webdriver from Jenkins, but jenkins cannot open browser when build job. so I modified my code to run in headless mode. since implementing headless browser, having some big question
- is possible to handle end to end business on headless browser? cause end to end need inspect element as the process
- if headless browser cannot handle, do you have some suggestion?
thanks, I'm very low to integrate automation
回答1:
You don't have to change the code to run a Selenium test with Jenkins in headless mode.
You can use a Jenkins plugin of a headless X server to run your tests on an installed browser. You will even get screenshots.
来源:https://stackoverflow.com/questions/46151887/is-possible-run-selenium-with-headless-browser-to-handle-functionalities