Thanks Christian!

2013/4/24 Karlsson Christian <[email protected]>

>  Hello****
>
> I use the property****
>
> webdriver.firefox.bin=/var/tmp/firefox/firefox****
>
> instead.****
>
> ** **
>
> 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<https://wmail.cag.se/owa/redir.aspx?C=G2EjVQkj7kGZyieqy24uGB6NV2uAkM9Iy3xqV4cZFUaEVGXCGlWIq_V5O25t1jIUtjHgAaGFl0U.&URL=http%3a%2f%2fwww.cag.se%2f>
> ****
>
> ** **
>
> *Från:* Julien Martin [mailto:[email protected]]
> *Skickat:* den 24 april 2013 13:03
> *Till:* [email protected]
> *Ämne:* [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