Selenium Webdriver
First, locate a group of elements:
Webdriver can conveniently use the Findelement method to locate objects that are fixed by a certain object. But sometimes we have to locate a group of objects, and then we need to use the findelements method.
Application Scenarios:
1. Bulk operation of objects, such as the selection of all the checkboxes on the page;
2. First get a set of objects, and then filter out some objects that need to be located in this set of objects. For example, locate all the checkboxes on the page and then select the last one.
Second, multi-layer frame, window positioning
Switch_to_frame ()
Switch_to_window ()
Sometimes we locate an element, the locator is not a problem, but has been unable to locate, this time to check whether this element is in a frame, selenium Webdriver provides a switch_to_frame method, can easily solve the problem.
Selenium Webdriver Study notes (ii)