I am running Selenium tests from Eclipse, but I cannot load the Firefox user profile.
Most sources suggest that I run Selenium Server as follows:
java -jar selenium-server.jar -firefoxProfileTemplate </path/to/template/>
But when I run my test from Eclipse, it does not use this - the tests will run if the Selenium server is not running.
This thread assumes that I can set the profile in the DefaultSelenium constructor:
Selenium RC - disabling cookie browser
But the code created for me by the Selenium IDE (Firefox plugin) does not use this constructor:
package com.example.tests; import com.thoughtworks.selenium.*; import java.util.regex.Pattern; public class Example extends SeleneseTestCase { public void setUp() throws Exception { setUp("http://www.example.com/", "*firefox"); } public void testExample() throws Exception { selenium.open("/"); selenium.click("//body"); } }
Where can I set DefaultSelenium configuration parameters? Or is there some other method that I can use to download my custom Firefox template?
Thanks! Stu
eclipse firefox junit selenium
stubotnik
source share