O'Reilly logo

Selenium 2 Testing Tools Beginner's Guide by David Burns

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix A

Pop quiz – how do you use WebDriverBackedSelenium

  1. Answer: Create a new instance of the browser you want to use using Selenium WebDriver. Then pass this into the WebDriverBackedSelenium with the URL that you would like to test. It will look like this:
    @Before
        public void setup(){
          driver = new FirefoxDriver();
          selenium = new WebDriverBackedSelenium(driver, http://book.theautomatedtester.co.uk)
        }

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required