Selenium Design Patterns and Best Practices by Dima Kovalenko

Selenium Design Patterns and Best Practices by Dima Kovalenko

Author:Dima Kovalenko [Kovalenko, Dima]
Language: eng
Format: epub, pdf
Publisher: Packt Publishing
Published: 2014-09-22T21:00:00+00:00


All of the tests we have written so far now live in the tests directory, as shown here:

The images directory is where we will store screenshots of the web page on test failures, but right now it is empty. Finally, the helpers directory, shown in the following screenshot, is where we will store the selenium_wrapper.rb. We will implement the Action Wrapper pattern in this file:

The SeleniumWrapper class will become a single point of contact between the tests and the web page being tested. Let's take a look at this class in detail; we will start with methods responsible for the creation and destruction of browser sessions:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.