Getting the type of a control using Javascript 1

Getting the type of a control using Javascript

"button"
nodes.length

Here is what the above code is Doing:
1. We’re using the find_elements_by_css_selector method to find all the elements that have the CSS class name “button”.
2. We’re storing the elements in a variable called nodes.
3. We’re printing the length of the nodes variable.

Similar Posts