O'Reilly logo

Selenium WebDriver Recipes in C#, Second Edition by Zhimin Zhan

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 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

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