Hello,
I set the following properties:
*static {*
* System.setProperty("browser", "firefox");*
* System.setProperty("webdriver.firefox.driver",
"/home/julien/system/firefox-3.6.28/firefox");*
*}*
*
*
In my SpringWebStories class. Here is the full content:
@RunWith(SpringAnnotatedEmbedderRunner.class)
@Configure(using = SeleniumConfiguration.class, pendingStepStrategy =
FailingUponPendingStep.class)
@UsingEmbedder(embedder = Embedder.class, generateViewAfterStories = true,
ignoreFailureInStories = true, ignoreFailureInView = true)
@UsingSpring(resources = {
/*"classpath:META-INF/spring/applicationContext.xml","classpath:META-INF/spring/applicationContext-mail.xml",*/
"classpath:META-INF/spring/steps.xml" })
@UsingSteps(instances = { WebSteps.class })
public class SpringWebStories extends InjectableEmbedder {
static {
System.setProperty("browser", "firefox");
System.setProperty("webdriver.firefox.driver",
"/home/julien/system/firefox-3.6.28/firefox");
}
@Test
public void run() {
injectedEmbedder().useExecutorService(MoreExecutors.sameThreadExecutor());
injectedEmbedder().runStoriesAsPaths(storyPaths());
}
protected List<String> storyPaths() {
String searchInDirectory =
CodeLocations.codeLocationFromPath("src/test/resources/stories").getFile();
return new StoryFinder().findPaths(searchInDirectory,
Arrays.asList("**/*.story"), null);
}
}
However, when I run the following story class, the current version of FF
installed on my machine is used instead of the old version specified in the
"webdriver.firefox.driver" property...
Can anyone please let me know how to make sure JBehave web/Selenium uses
the specified version of FF?
Regards,
Julien.