Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

when I run my test in selenium, the newly opened firefox window is opened without my installed addons like xpathchecker.

Is it possible to setup selenium so that it will use firefox with installed addons?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
196 views
Welcome To Ask or Share your Answers For Others

1 Answer

If you are using selenium remote control,

  1. you might need to create a separate profile for testing with your addons.
  2. After that you can install the addons in that new profile. Note down the path of the profile folder in profile manager or check here to locate your profile folder
  3. Then when you start selenium, use

    -firefoxProfileTemplate "path to the profile"

to specify the location of the profile with addons installed.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...