[英]How to write test script for grid checkbox in webdriver
A checkbox in Selenium web driver. Selenium Web 驱动程序中的复选框。 How to automate a checkbox in the grid.
如何自动化网格中的复选框。 I am not able to assign IDs into the cells/row- checker checkbox
我无法将 ID 分配到单元格/行检查器复选框中
We cannot help without seeing the code of your page.如果没有看到您页面的代码,我们将无法提供帮助。 Just be aware that there are other Locator Strategies like CSS Selectors or XPath Selectors which are capable of uniquely identifying any element in the DOM even if it doesn't have a unique ID attribute .
请注意,还有其他定位器策略,如CSS 选择器或XPath 选择器,它们能够唯一标识DOM 中的任何元素,即使它没有唯一的ID 属性。
If you're using Java client bindings and the "grid" is a normal HTML Table - you will find Table class from the HtmlElements framework very useful.如果您使用Java 客户端绑定并且“网格”是一个普通的HTML 表格- 您会发现HtmlElements 框架中的Table类非常有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.