简体   繁体   English

如何在webdriver中为网格复选框编写测试脚本

[英]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.

相关问题 Selenium Webdriver。 通过硒网格进行测试时如何安装chrome extension? - Selenium webdriver. How to install chrome extension when run test via selenium grid? 在Selenium Webdriver中运行测试脚本100次 - run a test script 100 times in selenium webdriver Selenium Webdriver脚本中的测试用例报告 - Test Case Reporting in Selenium Webdriver script 如何在Selenium-WebDriver(Ruby)中编写KeyPress事件的测试用例? - How can I write test case for KeyPress event in Selenium-WebDriver (Ruby)? 如何为webdriver编写keyDown和keyUp? - How to write a keyDown and keyUp for webdriver? 如何使用带有Selenium WebDriver的TestNG Framework在Excel文件中编写测试结果(通过/失败)? - How can I write Test Result (Pass/Fail) in Excel file using TestNG Framework with Selenium WebDriver? 卡住以确定已选中复选框以在Selenium Webdriver和python中进行测试 - Stuck to determine the checkbox is checked to test in selenium webdriver & python 如何在硒webdriver中选择“ mat-checkbox”? - How to select 'mat-checkbox' in selenium webdriver? How to select multiple checkbox using selenium webdriver? - How to select multiple checkbox using selenium webdriver? 如何检查是否在带有Ruby的Selenium WebDriver中选中了复选框 - How to check if a checkbox is selected in Selenium WebDriver with Ruby
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM