Hi,
m migrating from Selenium 1.3 to Selenium 2
I am looking for some function in webdriver which can fetch me same
results as Selenium1.3
Functions in Selenium 1.3 which need to be migrated to Webdriver are:
selenium = new DefaultSelenium(seleniumRC_IPAddress, seleniumPort,
"*"+browser, applicationURL);
selenium.start();
selenium.setContext(GenericAdapter.class.getName());
selenium.setSpeed(seleniumSpeed);
selenium.windowMaximize();
selenium.windowFocus();
please help me out with this...
Regards,
Saorabh Singh
The WebDriverBackedSelenium is really there to help with migration. If
you're using the webdriver APIs directly, you can:
* For the selenium.window* commands:
Use ((JavascriptExecutor) driver).executeScript() and call the JS
functions directly (eg: window.focus())
* setSpeed is meaningless and is a no-op in WebDriver. If you'd like
ways of slowing down tests, you need to wrap the webdriver instance.
* setContext: replace with logging using your language's normal
logging functionality.
Regards,
Simon
> --
> You received this message because you are subscribed to the Google Groups
> "Selenium Users" group.
> To post to this group, send email to seleniu...@googlegroups.com.
> To unsubscribe from this group, send email to
> selenium-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/selenium-users?hl=en.
>
Simon
On Fri, Jul 8, 2011 at 6:22 PM, Luke Inman-Semerau
Hi all,can you help me out to get replacement forselenium.selectWindow(windowID);I am using webdriver APIs directly.So please help me out.Regards,Saorabh Singh
Simon