【发布时间】:2020-10-13 11:19:06
【问题描述】:
我需要获取“n”行的元素,但是元素值的增量如下:
<select aria-invalid="false" id="select-fieldName-0-1" class="css-14xtrl2">.
<select aria-invalid="false" id="select-fieldName-0-1-0" class="css-14xtrl2">.
<select aria-invalid="false" id="select-fieldName-0-1-1-0" class="css-14xtrl2">.
<select aria-invalid="false" id="select-fieldName-0-1-1-1-0" class="css-14xtrl2">.
等等。 如何获取元素“id”以将其循环“n”次? 在此先感谢:)
【问题讨论】:
-
你忘了分享它是如何递增的。请分享该信息
-
这能回答你的问题吗? How to loop through ID elements in html
-
你是否能够同时解决增量@bhaws?
标签: javascript element playwright