how to start browser instance?

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

how to start browser instance?

praveenkumar
Reply | Threaded
Open this post in threaded view
|

Re: how to start browser instance?

softwaretestingforum
Administrator
On selenium 1 you can create browser instance as -

Selenium selenium = new DefaultSelenium(seleniumServerHost, seleniumServerPort, browser, appURL)

where browser is the instance of browser.

Does this help?

Also please try to be more descriptive in your questions.
~ seleniumtests.com
Reply | Threaded
Open this post in threaded view
|

Re: how to start browser instance?

Illusion0Reality
In reply to this post by praveenkumar
In selenium 2, (or webdriver) -

protected Webdriver driver;
driver = new FirefoxDriver(); will create a browser instance.
And,
     driver.get("www.google.com");  - will open the URL in the above opened firefox browser.

Thanks Tarun, for your replies.