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

Chapter 6

Pop quiz – working with FirefoxDriver

  1. Answer: Create a profile object and call setPreference() method with the details needed.
  2. Answer: We can use the FirefoxBinary class to tell it where to look.

Pop quiz – using ChromeDriver

  1. Answer: ChromeOptions
  2. Answer: The PATH environment variable needs to be set with where the ChromeDriver executable lives. This is so that when we call ChromeDriver with our Java code, it will load the relevant executable and load the browser as quickly as possible.

Pop quiz – working with OperaDriver

  1. Answer: Use the latest stable version of Opera.
  2. Answer: Use the OperaProfile object and update the preferences where needed.

Pop quiz – working with InternetExplorerDriver

  1. Answer: All versions of IE6, IE7, IE8, and IE9 for both ...

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