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