How to explicitly specify a path to Firefox for Selenium?

后端 未结 8 2347
伪装坚强ぢ
伪装坚强ぢ 2021-02-14 14:16

I got Selenium IDE, followed this post, got to

python test_default_server.py

and it complains Firefox is not in my path:

Please         


        
8条回答
  •  南旧
    南旧 (楼主)
    2021-02-14 14:41

    This helps very much. setUp("http://localhost:8080/BingDemo/BingDriver.html", "*firefox C:\Program Files (x86)\Mozilla Firefox\firefox.exe");

    However, replace all occurrences of \ with \\ in *firefox C:\Program Files (x86)\Mozilla Firefox\firefox.exe

    Additionally, you could point your PATH to in environmental variables to mozilla.exe

提交回复
热议问题