Selenium - Custom Firefox profile

后端 未结 2 660
离开以前
离开以前 2020-12-21 18:34

I\'ve setup a new firefox profile for use with Selenium (accepted certificate warnings for local QA site).

But, I keep getting told the profile directory does not ex

相关标签:
2条回答
  • 2020-12-21 18:48

    I think the problem was actually the location of the profile.

    I created a new profile and put it in "c:\lib\selenium\ff_profile" as suggested on: http://agileqatesting.com/?p=27

    and it seems to work correctly!

    so the line in the batch file now looks like

    java -jar selenium-server.jar -firefoxProfileTemplate "C:\lib\selenium\ff_profile"
    
    0 讨论(0)
  • 2020-12-21 19:13

    The way you start your server is correct, just do not mention the user home directory (~/) then it should be fine. I am not sure if the backward slash () works, if not try out with forward slashes (/):

    
    java -jar selenium-server.jar -firefoxProfileTemplate "C:\Documents and Settings\dadams\Application Data\Mozilla\Firefox\Profiles\k39jzisz.SeleniumUser"
    
    0 讨论(0)
提交回复
热议问题