【发布时间】:2022-10-23 14:39:10
【问题描述】:
如您在此处看到的,我如何选择在 XPath 中可以选择的同名选择器? 我在这里选择第一个元素。
cy.xpath(`(//div[contains(@class,'dx-scheduler-appointment-collector-content')])[1]`)
我在这里选择第二个元素。
cy.xpath(`(//div[contains(@class,'dx-scheduler-appointment-collector-content')])[2]`)
什么是 jquery 或 CSS 中的这些 XPath 方法的完全匹配。
【问题讨论】:
标签: xpath css-selectors jquery-selectors cypress