官术网_书友最值得收藏!

What this book covers

Chapter 1, Getting Started, demonstrates how to set up Selenium WebDriver with Eclipse, Maven, or ANT for test development on a Java platform. Then it shows how to set up Visual Studio, Ruby, and Python for test development. This chapter also shows how to set up various browsers for testing.

Chapter 2, Finding Elements, introduces you to the locator techniques supported by Selenium WebDriver to find elements on pages in your web applications. Selenium WebDriver provides a number of techniques to find elements on web pages with multiple locator strategies such as XPath, CSS, and DOM. We can also implement custom locator strategies to locate elements. This chapter will also help you get started with the Selenium WebDriver locator API.

Chapter 3, Working with Elements, demonstrates how to use the Selenium WebDriver API to automate interaction with various types of UI elements used in web applications, including textboxes, buttons, dropdowns, radio buttons, checkboxes, and tables.

Chapter 4, Working with Selenium API, demonstrates how to use the Selenium WebDriver API to build tests. We will explore the API and investigate advanced user interactions to perform complex mouse and keyboard operations and work with various types of UI elements used in web applications.

Chapter 5, Synchronizing Tests, demonstrates how to use the Selenium WebDriver API to handle synchronization with implicit and explicit waits to implement robust and reliable tests.

Chapter 6, Working with Alerts, Frames and Windows, demonstrates how to handle multiple windows, pop-ups, and alerts that are displayed during test execution.

Chapter 7, Data-Driven Testing, introduces the data-driven testing approach—a widely used methodology in test automation. Selenium WebDriver does not have built-in features to support data-driven testing. However, we can extend the Selenium WebDriver API to support data-driven testing. This chapter covers recipes to support data-driven testing using JUnit, TestNG, and Apache POI to read data from spreadsheets.

Chapter 8, Using the Page Object Model, introduces the Page Object model pattern, which is widely used for structuring Selenium WebDriver tests. This chapter provides examples and tips on how to build testing frameworks using the Page Object model pattern.

Chapter 9, Extending Selenium, demonstrates how to extend the Selenium WebDriver API and add features to build a scalable test automation framework. This chapter covers some of the important recipes in extending Selenium WebDriver for various practical scenarios such as to support custom UI controls, capture images of elements, and perform image-based verifications.

Chapter 10, Testing HTML5 Web Applications, introduces you to using Selenium WebDriver to test web applications using the HTML5 standard. This chapter explains how to test video and canvas elements and the web storage API of HTML5.

Chapter 11, Behavior-Driven Development, introduces behavior-driven development with Selenium WebDriver, using tools such as Cucumber-JVM, SpecFlow.NET for .NET, Behave for Python, and Capybara for Ruby.

Chapter 12, Integration with Other Tools, demonstrates how to set up Selenium WebDriver with Jenkins to run tests in Continuous Integration using Maven and ANR. This chapter also covers recipes to use tools such as AutoIt and Sikuli to test non-web UI.

Chapter 13, Cross-Browser Testing, demonstrates how to set up a distributed test environment with Selenium Grid for cross-browser testing. We will add nodes with various browser and operating system combinations. We will run tests in parallel using TestNG, which helps to reduce the time of test execution and increases test coverage. This chapter also covers how to use cloud-based services, such as Sauce Labs and BrowserStack, for cross browser testing.

Chapter 14, Testing Applications on Mobile Browsers, introduces you to testing mobile web applications with the Apple iOS and Android platforms using Appium. This chapter covers recipes to configure and use Selenium WebDriver to test a mobile web application on iPhone and Android-based devices/simulators.

主站蜘蛛池模板: 衡水市| 格尔木市| 盐山县| 七台河市| 万载县| 砚山县| 肇州县| 苍溪县| 桐城市| 平舆县| 淄博市| 孙吴县| 漾濞| 平度市| 谢通门县| 钦州市| 石嘴山市| 沧州市| 迁安市| 庆阳市| 新巴尔虎右旗| 兰西县| 伊川县| 南和县| 天镇县| 石家庄市| 九龙城区| 和政县| 墨脱县| 克东县| 上犹县| 彰化县| 博野县| 蛟河市| 滨海县| 岗巴县| 罗定市| 洮南市| 青州市| 东安县| 康平县|