Hello

I use the property

webdriver.firefox.bin=/var/tmp/firefox/firefox

instead and can get it to work.



Regards,

Christian



Christian Karlsson
CAG Contactor AB
Adress: Jan Stenbecks Torg 17, SE-164 40 Kista
Mobil: +46 (0)706694527
Mail: christian.karlsson <at> cag.se
www.cag.se<http://www.cag.se/>
________________________________
From: Julien Martin [[email protected]]
Sent: Wednesday, April 24, 2013 1:02 PM
To: [email protected]
Subject: [jbehave-user] Using a previous version of firefox for running 
web/selenium stories

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.

Reply via email to