Re: [jbehave-dev] Selenium Actions -Bug

2013-05-10 Thread Mauro Talevi
Look again:  you're trying to cast a WebDriverProvider to a WebDriver - 
they are not the same thing.


To get a WebDriver instance you need to invoke the get() method on the 
driverProvider.


On 10/05/2013 08:53, Selenium Learner 2013 wrote:

Hi,

Is there any Jbehave binding for Interface Action,Class 
Action(org.openqa.selenium.interactions.Actions) of selenium 
webdriver?I want to use methods present inside those ones..


I have code like this :

public void mouseClickByLocator(By by)
{
try
{
WebElement webElement= findElement( by);
Actions builder= new Actions((Webdriver) driverProvider);
builder.moveToElement(webElement).click(webElement).perform();
}
catch(Exception e)
{
e.printStackTrace();
}

I am getting an exception as 
org.jbehave.web.selenium.PropertyWebdriver cant be cast to 
org.openqa.selenium.Webdriver


When I look WebDriverPage.class of jbehave web, I can't see any 
methods supporting Actions class or Interface..Is there any Bug 
present in Jbehave?


I have recently started using Jbehave with Webdriver as I am in 
process of building framework..


Regards,
Selenium-777



-
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




Re: [jbehave-dev] Selenium Actions -Bug

2013-05-10 Thread Selenium Learner 2013
Hello Mauro,

yes, i have created an abstract class in the framework where I have created
custom method like
public void OpenURL(String URL)
{
get(URL);
}

Now , over here get method call will call method inside WebdriverPage class
as my page
is extending WebdriverPage class as I have defined Abstract class as
public abstract class customAbstractPage extends WebdriverPage

Now, this confirms according to me that, I am using get() to get Webdriver
instance..

Please confirm if there is any problem exist in Jbehave binding of webdriver




On Fri, May 10, 2013 at 1:34 PM, Mauro Talevi wrote:

> Look again:  you're trying to cast a WebDriverProvider to a WebDriver -
> they are not the same thing.
>
> To get a WebDriver instance you need to invoke the get() method on the
> driverProvider.
>
>
> On 10/05/2013 08:53, Selenium Learner 2013 wrote:
>
>> Hi,
>>
>> Is there any Jbehave binding for Interface Action,Class
>> Action(org.openqa.selenium.**interactions.Actions) of selenium
>> webdriver?I want to use methods present inside those ones..
>>
>> I have code like this :
>>
>> public void mouseClickByLocator(By by)
>> {
>> try
>> {
>> WebElement webElement= findElement( by);
>> Actions builder= new Actions((Webdriver) driverProvider);
>> builder.moveToElement(**webElement).click(webElement).**perform();
>> }
>> catch(Exception e)
>> {
>> e.printStackTrace();
>> }
>>
>> I am getting an exception as org.jbehave.web.selenium.**PropertyWebdriver
>> cant be cast to org.openqa.selenium.Webdriver
>>
>> When I look WebDriverPage.class of jbehave web, I can't see any methods
>> supporting Actions class or Interface..Is there any Bug present in Jbehave?
>>
>> I have recently started using Jbehave with Webdriver as I am in process
>> of building framework..
>>
>> Regards,
>> Selenium-777
>>
>
>
> --**--**-
> To unsubscribe from this list, please visit:
>
>
> http://xircles.codehaus.org/**manage_email
>
>
>


Re: [jbehave-dev] Selenium Actions -Bug

2013-05-10 Thread Mauro Talevi
Which get() method are you calling and where?  There is not get method in 
WebDriverPage.

If you want us to help, you'll need to provide an example project reproducing  
the issue.

On 10 May 2013, at 10:13, Selenium Learner 2013 <777selen...@gmail.com> wrote:

> Hello Mauro,
> 
> yes, i have created an abstract class in the framework where I have created 
> custom method like
> public void OpenURL(String URL)
> {
> get(URL);
> }
> 
> Now , over here get method call will call method inside WebdriverPage class 
> as my page
> is extending WebdriverPage class as I have defined Abstract class as
> public abstract class customAbstractPage extends WebdriverPage
> 
> Now, this confirms according to me that, I am using get() to get Webdriver 
> instance..
> 
> Please confirm if there is any problem exist in Jbehave binding of webdriver
> 
> 
> 
> 
> On Fri, May 10, 2013 at 1:34 PM, Mauro Talevi  
> wrote:
>> Look again:  you're trying to cast a WebDriverProvider to a WebDriver - they 
>> are not the same thing.
>> 
>> To get a WebDriver instance you need to invoke the get() method on the 
>> driverProvider.
>> 
>> 
>> On 10/05/2013 08:53, Selenium Learner 2013 wrote:
>>> Hi,
>>> 
>>> Is there any Jbehave binding for Interface Action,Class 
>>> Action(org.openqa.selenium.interactions.Actions) of selenium webdriver?I 
>>> want to use methods present inside those ones..
>>> 
>>> I have code like this :
>>> 
>>> public void mouseClickByLocator(By by)
>>> {
>>> try
>>> {
>>> WebElement webElement= findElement( by);
>>> Actions builder= new Actions((Webdriver) driverProvider);
>>> builder.moveToElement(webElement).click(webElement).perform();
>>> }
>>> catch(Exception e)
>>> {
>>> e.printStackTrace();
>>> }
>>> 
>>> I am getting an exception as org.jbehave.web.selenium.PropertyWebdriver 
>>> cant be cast to org.openqa.selenium.Webdriver
>>> 
>>> When I look WebDriverPage.class of jbehave web, I can't see any methods 
>>> supporting Actions class or Interface..Is there any Bug present in Jbehave?
>>> 
>>> I have recently started using Jbehave with Webdriver as I am in process of 
>>> building framework..
>>> 
>>> Regards,
>>> Selenium-777
>> 
>> 
>> -
>> To unsubscribe from this list, please visit:
>> 
>>http://xircles.codehaus.org/manage_email
> 


Re: [jbehave-dev] Selenium Actions -Bug

2013-05-10 Thread Selenium Learner 2013
Oh my god!..I'll give you example project to reproduce but it'll will take
some time,please have a patience till then.
I have imported source code for Jbehave web where I could easily see class
like WebdriverPage.class.This source code is available to all of us I
guess.Over there is one method as
public void get(String url)
{
driverProvider.get().get(url)..
}

Hope you can find the source code.I have used the same in my framework.Plus
on all githun examples I can't see the usage of Action class..Don't know
why:):)

Regards,
Selenium-777



On Fri, May 10, 2013 at 5:33 PM, Mauro Talevi wrote:

> Which get() method are you calling and where?  There is not get method in
> WebDriverPage.
>
> If you want us to help, you'll need to provide an example project
> reproducing  the issue.
>
> On 10 May 2013, at 10:13, Selenium Learner 2013 <777selen...@gmail.com>
> wrote:
>
> Hello Mauro,
>
> yes, i have created an abstract class in the framework where I have
> created custom method like
> public void OpenURL(String URL)
> {
> get(URL);
> }
>
> Now , over here get method call will call method inside WebdriverPage
> class as my page
> is extending WebdriverPage class as I have defined Abstract class as
> public abstract class customAbstractPage extends WebdriverPage
>
> Now, this confirms according to me that, I am using get() to get Webdriver
> instance..
>
> Please confirm if there is any problem exist in Jbehave binding of
> webdriver
>
>
>
>
> On Fri, May 10, 2013 at 1:34 PM, Mauro Talevi 
> wrote:
>
>> Look again:  you're trying to cast a WebDriverProvider to a WebDriver -
>> they are not the same thing.
>>
>> To get a WebDriver instance you need to invoke the get() method on the
>> driverProvider.
>>
>>
>> On 10/05/2013 08:53, Selenium Learner 2013 wrote:
>>
>>> Hi,
>>>
>>> Is there any Jbehave binding for Interface Action,Class
>>> Action(org.openqa.selenium.**interactions.Actions) of selenium
>>> webdriver?I want to use methods present inside those ones..
>>>
>>> I have code like this :
>>>
>>> public void mouseClickByLocator(By by)
>>> {
>>> try
>>> {
>>> WebElement webElement= findElement( by);
>>> Actions builder= new Actions((Webdriver) driverProvider);
>>> builder.moveToElement(**webElement).click(webElement).**perform();
>>> }
>>> catch(Exception e)
>>> {
>>> e.printStackTrace();
>>> }
>>>
>>> I am getting an exception as org.jbehave.web.selenium.**PropertyWebdriver
>>> cant be cast to org.openqa.selenium.Webdriver
>>>
>>> When I look WebDriverPage.class of jbehave web, I can't see any methods
>>> supporting Actions class or Interface..Is there any Bug present in Jbehave?
>>>
>>> I have recently started using Jbehave with Webdriver as I am in process
>>> of building framework..
>>>
>>> Regards,
>>> Selenium-777
>>>
>>
>>
>> --**--**-
>> To unsubscribe from this list, please visit:
>>
>>
>> http://xircles.codehaus.org/**manage_email
>>
>>
>>
>


Re: [jbehave-dev] Selenium Actions -Bug

2013-05-10 Thread Mauro Talevi
As already said:  new Actions(driverProvider.get()) is what you want to do.

We can add a method to create actions but it's simple syntactic sugar.

On 10 May 2013, at 13:17, Selenium Learner 2013 <777selen...@gmail.com> wrote:

> Oh my god!..I'll give you example project to reproduce but it'll will take 
> some time,please have a patience till then.
> I have imported source code for Jbehave web where I could easily see class 
> like WebdriverPage.class.This source code is available to all of us I 
> guess.Over there is one method as 
> public void get(String url)
> {
> driverProvider.get().get(url)..
> }
> 
> Hope you can find the source code.I have used the same in my framework.Plus 
> on all githun examples I can't see the usage of Action class..Don't know 
> why:):) 
> 
> Regards,
> Selenium-777
> 
> 
> 
> On Fri, May 10, 2013 at 5:33 PM, Mauro Talevi  
> wrote:
>> Which get() method are you calling and where?  There is not get method in 
>> WebDriverPage.
>> 
>> If you want us to help, you'll need to provide an example project 
>> reproducing  the issue.
>> 
>> On 10 May 2013, at 10:13, Selenium Learner 2013 <777selen...@gmail.com> 
>> wrote:
>> 
>>> Hello Mauro,
>>> 
>>> yes, i have created an abstract class in the framework where I have created 
>>> custom method like
>>> public void OpenURL(String URL)
>>> {
>>> get(URL);
>>> }
>>> 
>>> Now , over here get method call will call method inside WebdriverPage class 
>>> as my page
>>> is extending WebdriverPage class as I have defined Abstract class as
>>> public abstract class customAbstractPage extends WebdriverPage
>>> 
>>> Now, this confirms according to me that, I am using get() to get Webdriver 
>>> instance..
>>> 
>>> Please confirm if there is any problem exist in Jbehave binding of webdriver
>>> 
>>> 
>>> 
>>> 
>>> On Fri, May 10, 2013 at 1:34 PM, Mauro Talevi  
>>> wrote:
 Look again:  you're trying to cast a WebDriverProvider to a WebDriver - 
 they are not the same thing.
 
 To get a WebDriver instance you need to invoke the get() method on the 
 driverProvider.
 
 
 On 10/05/2013 08:53, Selenium Learner 2013 wrote:
> Hi,
> 
> Is there any Jbehave binding for Interface Action,Class 
> Action(org.openqa.selenium.interactions.Actions) of selenium webdriver?I 
> want to use methods present inside those ones..
> 
> I have code like this :
> 
> public void mouseClickByLocator(By by)
> {
> try
> {
> WebElement webElement= findElement( by);
> Actions builder= new Actions((Webdriver) driverProvider);
> builder.moveToElement(webElement).click(webElement).perform();
> }
> catch(Exception e)
> {
> e.printStackTrace();
> }
> 
> I am getting an exception as org.jbehave.web.selenium.PropertyWebdriver 
> cant be cast to org.openqa.selenium.Webdriver
> 
> When I look WebDriverPage.class of jbehave web, I can't see any methods 
> supporting Actions class or Interface..Is there any Bug present in 
> Jbehave?
> 
> I have recently started using Jbehave with Webdriver as I am in process 
> of building framework..
> 
> Regards,
> Selenium-777
 
 
 -
 To unsubscribe from this list, please visit:
 
http://xircles.codehaus.org/manage_email
> 


Re: [jbehave-dev] Selenium Actions -Bug

2013-05-15 Thread Selenium Learner 2013
I was out for vacation hence could not reply immediately..
Thanks for the reply and admitting that method to create action is not
present in Jbehave .I would request to add but final decision is yours[?].




On Fri, May 10, 2013 at 7:02 PM, Mauro Talevi wrote:

> As already said:  new Actions(driverProvider.get()) is what you want to do.
>
> We can add a method to create actions but it's simple syntactic sugar.
>
> On 10 May 2013, at 13:17, Selenium Learner 2013 <777selen...@gmail.com>
> wrote:
>
> Oh my god!..I'll give you example project to reproduce but it'll will take
> some time,please have a patience till then.
> I have imported source code for Jbehave web where I could easily see class
> like WebdriverPage.class.This source code is available to all of us I
> guess.Over there is one method as
> public void get(String url)
> {
> driverProvider.get().get(url)..
> }
>
> Hope you can find the source code.I have used the same in my
> framework.Plus on all githun examples I can't see the usage of Action
> class..Don't know why:):)
>
> Regards,
> Selenium-777
>
>
>
> On Fri, May 10, 2013 at 5:33 PM, Mauro Talevi 
> wrote:
>
>> Which get() method are you calling and where?  There is not get method in
>> WebDriverPage.
>>
>> If you want us to help, you'll need to provide an example project
>> reproducing  the issue.
>>
>> On 10 May 2013, at 10:13, Selenium Learner 2013 <777selen...@gmail.com>
>> wrote:
>>
>> Hello Mauro,
>>
>> yes, i have created an abstract class in the framework where I have
>> created custom method like
>> public void OpenURL(String URL)
>> {
>> get(URL);
>> }
>>
>> Now , over here get method call will call method inside WebdriverPage
>> class as my page
>> is extending WebdriverPage class as I have defined Abstract class as
>> public abstract class customAbstractPage extends WebdriverPage
>>
>> Now, this confirms according to me that, I am using get() to get
>> Webdriver instance..
>>
>> Please confirm if there is any problem exist in Jbehave binding of
>> webdriver
>>
>>
>>
>>
>> On Fri, May 10, 2013 at 1:34 PM, Mauro Talevi > > wrote:
>>
>>> Look again:  you're trying to cast a WebDriverProvider to a WebDriver -
>>> they are not the same thing.
>>>
>>> To get a WebDriver instance you need to invoke the get() method on the
>>> driverProvider.
>>>
>>>
>>> On 10/05/2013 08:53, Selenium Learner 2013 wrote:
>>>
 Hi,

 Is there any Jbehave binding for Interface Action,Class
 Action(org.openqa.selenium.**interactions.Actions) of selenium
 webdriver?I want to use methods present inside those ones..

 I have code like this :

 public void mouseClickByLocator(By by)
 {
 try
 {
 WebElement webElement= findElement( by);
 Actions builder= new Actions((Webdriver) driverProvider);
 builder.moveToElement(**webElement).click(webElement).**perform();
 }
 catch(Exception e)
 {
 e.printStackTrace();
 }

 I am getting an exception as org.jbehave.web.selenium.**PropertyWebdriver
 cant be cast to org.openqa.selenium.Webdriver

 When I look WebDriverPage.class of jbehave web, I can't see any methods
 supporting Actions class or Interface..Is there any Bug present in Jbehave?

 I have recently started using Jbehave with Webdriver as I am in process
 of building framework..

 Regards,
 Selenium-777

>>>
>>>
>>> --**--**
>>> -
>>> To unsubscribe from this list, please visit:
>>>
>>>
>>> http://xircles.codehaus.org/**manage_email
>>>
>>>
>>>
>>
>
<<330.gif>>