How do I get chrome working with selenium, using php webdriver?

前端 未结 2 410
情深已故
情深已故 2021-01-05 07:27

Everything works fine with Firefox, but I can\'t start chrome. I\'m on linux, using php webdriver bindings.

require_once \"/usr/local/src/selenium/php-webdri         


        
2条回答
  •  滥情空心
    2021-01-05 08:12

    You can try passing the webdriver.chrome.driver property from commandline while starting the selenium server. Like this:

     java -Dwebdriver.chrome.driver = pathtochromedriver -jar selenium-server.jar
    

    I am not sure about the reason why the other one is not working. You need to check whether its really setting the system property from code..

提交回复
热议问题