Skip to content
Advertisement

Only click on first 10 items in Selenium element list

I want to click on the first 10 elements from the returned list below.

Currently, Selenium is clicking on all the elements but I want it to be limited to the first 10 clicks only.

How do I do this?

JavaScript

Advertisement

Answer

JavaScript
Advertisement