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

前端 未结 2 390
情深已故
情深已故 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:03

    Without any blanks it worked for me on WinXP32:

    java -Dwebdriver.chrome.driver=C:\chromedriver.exe -jar selenium-server.jar
    
    0 讨论(0)
  • 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..

    0 讨论(0)
提交回复
热议问题