Java selenium operation pop-up window example code
•
Java
How to handle pop ups in selenium
Reading catalog
principle
In the code, through @ h_ 301_ 20@ Set
allWindowsId = driver. getWindowHandles();
To get the handle of all pop-up browsers, and then traverse, using switchto Window (newwindow_handle) method. You can navigate to a new window
HTML of the test page
Java code
The above is an example of Java selenium operation pop-up window. Continue to sort out relevant materials in the future. Thank you for your support for this site!
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码