How to select element with a random index in selenium webdriver (Python)?

后端 未结 0 1327
广开言路
广开言路 2021-01-13 03:58

I have a todo list app and have to randomly select a list element and delete it. Class is always the same, just index changes (e.g. xpath:(//*[@class="view"])[n]).

相关标签:
回答
  • 消灭零回复
提交回复
热议问题