How can I count items of drop-down list, and create a loop to click the drop-down items one by one?

Hello, I met a drop-down list on the webpage that contains items needed to be clicked one by one to fresh the page. Here are my questions:

  1. How can I count how many items are contained in the drop-down list?
  2. How can I create a loop to select the items one by one?

Thank you!

Hello there,
Try this.

1 Like

Thank you! Find children & get attribute are awesome :slight_smile: !

1 Like