CHAPTER 13

image

Pop-up

In this chapter, I show you how to handle file upload and popup dialog boxes. Most pop-up dialog boxes, such as Choose File to Upload, are native windows rather than browser windows. This would be a challenge for testing, as Selenium only drives browsers. If one pop-up window is not handled properly, test execution will be halted.

File upload

Figure 13-1 shows a sample file upload page.

9781484217412_Fig13-01.jpg

Figure 13-1. Sample file upload page

Get Selenium WebDriver Recipes in C#, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.