Selenium webdriver tests pop-up windows, including identifying pop-ups, transferring driver to a new window, executing the steps in a new string hook, and then converting to the original window.
Identified and processed by name:
Selenium Webdriver allows us to identify the window through the Name property or a handle to the window, and then switch between the different Windows through the Webdriver.switchto (). Window () method.
Definition of Window Name property
The Name property can be set or given a window whose value is a string. The syntax is as follows:
1 window.name = [name]
The name is specified in the open () method when the window is created or by using the Name property of a <frame> tag, by default the Name property value is empty.
Tip: The Name property of the window can be used for the target property value of the <a> or <form> tag, which means that the hyperlink document or form submission results should appear in the window or frame of the specified name.
Personal feeling this name property is less common and most sites are default values, which are empty
[Selenium webdriver Java] processing pop-up windows