Book Image

Learning Selenium Testing Tools - Third Edition

Book Image

Learning Selenium Testing Tools - Third Edition

Overview of this book

Table of Contents (22 chapters)
Learning Selenium Testing Tools Third Edition
About the Author
About the Reviewers

Working with InternetExplorerDriver

Internet Explorer is the most commonly used browser in the world, followed by Firefox and Google Chrome, so getting IEDriver working is a high priority. The current version IEDriver supports IE6 through to IE9 so that you will be able to test websites that work on old browsers right up to the latest version of the browser.


If you haven't downloaded IEDriverServer, you will need to do it now for the following section. You will also need to set an environment path to where it is so that InternetExplorerDriver in Java will know where to get it. This is similar to what we did for the ChromeDriver earlier.

On Windows, set PATH=$PATH;\path\to\chromedriver.

In this section, we will get the text of the element on the page. This is something that most people have to do to check that the right things are happening on the page.

We will need to instantiate InternetExplorerDriver and the getText()call on the element. Let's get to it:

  1. Update the setUp() method to load...