Thanks Paul but I am already using Jbehave maven goals which has property
like <systemProperties> which would invoke system values.

Please correct me if I am wrong.

Good news is that able to solve wrapper class issue hence written custom
class for invoking browser where in createChromeDriver or IE method put
code line as System.setProperty("webdriver.*.driver", "path of exe");

Hence no need to pass additional parameters like -Dwebdriver.ie.driver to
invoke the specific browser.

Thanks Mauro and all for the help. Will post more questions in seperate
thread if comes..



Thanks and Regards,
K



On Wed, Apr 2, 2014 at 4:32 PM, Paul B. <iwebdeve...@gmail.com> wrote:

> 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
> Date:04/01/2014 10:12 AM (GMT-05:00)
> To: dev@jbehave.codehaus.org
> 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 
> <mauro.tal...@aquilonia.org>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
>>
>>
>>
>

Reply via email to