You need to set path in pom file... I think that is your issue...
Sent from my MetroPCS 4G Wireless Phone -------- Original message -------- From: Kaustubh Joshi <[email protected]> Date:04/01/2014 10:12 AM (GMT-05:00) To: [email protected] Subject: Re: [jbehave-dev] How to run Git sample Jbehave projects in Multiple browsers Thanks Mauro for the reply. I could able to run successfully via command prompt by giving maven command like - mvn test -Dbrowser=IE -Dwebdriver.ie.driver= path where exe file is present. But, this is strange behavior because when I am setting same path in path variable of system and try to invoke maven command like mvn test -Dbrowser=IE , it's failing..I am using windows 7-64 bit version ..is there any problem in setting path in the path variable (in advance system settings)?? Pls advise I've also created another wrapper class by overriding methods present in the PropertyWebDriverProviderand placed @BeforeStories annotation ..somehow it's not working will soon share the code/sample project. Thanks and Regards, K On Tue, Apr 1, 2014 at 3:17 AM, Mauro Talevi <[email protected]> wrote: In general, JBehave just gives you a thin wrapper for the provision of WebDriver instances, via the WebDriverProvider interface. You can choose the implementation that best suits your needs. In your case, you may want to look at PropertyWebDriverProvider, which allows you to instance WebDrivers for multiple browsers. Then, how you configure the WebDriver instance is overrideable via the createXXXDriver() methods. But WebDriver classes are Selenium's, not JBehave's. Cheers On 28/03/2014 15:00, Kaustubh Joshi wrote: Hi All, I want to use Jbehave running selenium scripts in multiple browsers. Normally in the selenium we can use below snippet of code (just an example) to run in chrome or ie // Code Snippet System.setProperty("webdriver.ie.driver", "C:\\SeleniumD\\Selenium\\IEDriverServer.exe"); WebDriver browser = new InternetExplorerDriver(capabilities); OR /System.setProperty("webdriver.chrome.driver", "C:\\KaustubhSelenium\\chromedriver.exe"); //WebDriver browser = new ChromeDriver(); How to use it in Jbehave? Pls advise. I am using seleniumConfiguration in Project while using Jbehave. Awaiting the reply. Cheers, K --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
