Friday, November 21, 2008

Running Selenium Scripts Under Multi-Window mode

Hi All,

By default, Selenium runs the application under test in a subframe. (Running the AUT in a subframe gives us a great deal of control over the AUT.) But some apps don't run properly in a subframe, preferring to be loaded into the top frame of the window. In that case, you need to make your application under test run in a seperate window rather than in the default frame. To do that, start selenium server with the -multiWindow parameter:

java -jar selenium-server.jar -multiWindow

Note that multiWindow mode is a little less stable than running in a frame, so you should probably avoid doing this if you can possibly help it.

No comments: