is possible run selenium with headless browser to handle functionalities?

左心房为你撑大大i 提交于 2019-12-23 05:25:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!