Hi All,

After doing some more analysis, I've found a solution to run on the chrome
browser mentioned below.

In the command prompt put

mvn test -Dtest.browser=chrome -DWebdriver.chrome.driver=path of chrome
driver exe present

and it's working.

If anybody else got another way,can dev share? pls advise

I've another question for IE now like what is substitution we need to make
in the command like parameter for Webdriver.chrome.driver so that it can be
run in IE browser as well???

It's been two days since I've posted my original question hence asking
again. Hope it's ok ....

Thanks and Regards,
K


On Fri, Mar 28, 2014 at 8:30 PM, Kaustubh Joshi <[email protected]>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
>
>

Reply via email to