Webdriver equivalent for DefaultSelenium

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Webdriver equivalent for DefaultSelenium

Ashwin
Hi,

I am using WebDriverBackedSelenium() API to migrate from Selenium RC to Webdriver.

DefalutSelenium selenium;

public class testNew(DefaultSelenium selenium)
{
       selenium = sel
}

what is the equivalent way to do in wedriver

I have done

WebDriver driver() = new FirefoxDriver()

Selenium selenium = new WebDriverBackedSelenium(driver,baseUrl);

what i need to pass to the testNew parameter in these case ?

Thanks,
Ashwin
Reply | Threaded
Open this post in threaded view
|

Re: Webdriver equivalent for DefaultSelenium

softwaretestingforum
Administrator
You could use -

WebDriver driver;

public class testNew(WebDriver driver)
{
       this.driver = driver
}
~ seleniumtests.com