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


Reply via email to