browser = new DefaultSelenium("localhost", 4444, "*firefox", "http://localhost/");
How can I do this?
Exit firefox and then in a terminal type "firefox -P" to open the profile manager. You can then create one and switch between them (note, all instances of firefox need to be closed for this to appear). Simply disable JS in the profile you wish to use and you're away!
Alternatively, you could create the profile in your code and disable JS directly using the following code: