Issues addressed in this verse:
How do I locate a set of elements?
Scene
As you can see from the example in the previous section, Webdriver can easily use the Findelement method to locate a particular object, but sometimes we need to locate a set of objects.
This is the time to use the Findelements method.
Locating a set of objects is generally used for the following scenarios:
Bulk manipulating objects, such as hooking all the checkbox on the page
Get a set of objects and then filter out some objects that need to be positioned in this group of objects. For example, locate all the checkbox on the page and select the last
Copy this code to Notepad and save it as a checkbox.html file. (Note that this page needs to be placed in the same directory as our automation script)
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/extra/