How to explicitly specify a path to Firefox for Selenium?

后端 未结 8 2299
伪装坚强ぢ
伪装坚强ぢ 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:50
    selenium("localhost", 4444, "*firefox C:\Program Files\Mozilla Firefox\firefox.exe", "http://change-this-to-the-site-you-are-testing/")
    

    Worked in Java.

    0 讨论(0)
  • 2021-02-14 14:50

    The *firefox etc are the keys for which browser to use to run the tests.

    There is a long list of them at How to run Google Chrome with Selenium RC? - so you can target Firefox v2 (*firefox2), Firefox v3 (*firefox3), Google Chrome (*googlechrome) etc

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