selenium参考别人的定位元素方法时间:2023-03-10 01:30:16 根据ID名称相同,定位第3个的手写方法 解决方案写法如下: //*[@id="weekDays" and @data-num="3"]