List of Selenium RC browser launchers

2019-01-16 19:44发布

问题:

I am trying to find a full list of Selenium RC browser launchers. So far I've not been able to find any documentation that lists them all. I've gathered the following ones from various sources.

  • *iexplore - Launches IE
  • *firefox - Launches Firefox
  • *safari - Launches Safari
  • *opera - Launches Opera
  • *googlechrome - Launches Google Chrome
  • *chrome - Launches special Firefox profile with elevated security privileges, to bypass Javascript security errors
  • *iehta - Launches IE with elevated security privileges
  • *piiexplore - Launches IE in proxy injection mode
  • *pifirefox - Launches Firefox in proxy injection mode
  • *custom - Launches your own custom browser executable

Are there any others lurking out there? Is there any source of documentation on how each one is used?

回答1:

If you try and start a selenium session with the wrong browser id

e.g.

selenium = new DefaultSelenium("localhost", server.getPort(),
                "*gf", "http://www.eviltester.com");

Then selenium 1.0.3 will report the following list:

Supported browsers include:

  • firefox
  • mock
  • firefoxproxy
  • pifirefox
  • chrome
  • iexploreproxy
  • iexplore
  • firefox3
  • safariproxy
  • googlechrome
  • konqueror
  • firefox2
  • safari
  • piiexplore
  • firefoxchrome
  • opera
  • iehta
  • custom

This lists a few more than you have.