在 MVC2 应用程序中访问 Telerik Grid 中的行

发布于 2024-10-09 16:10:05 字数 194 浏览 0 评论 0原文

我在 mvc2 应用程序中使用 telerik grid。我必须为我的应用程序执行 Watin UI 测试。为此,我需要从 Telerik 网格中选择一行。我无法为 Telerik 网格选择 id,因为 Telerik 网格没有任何 id。你能帮我从网格中选择特定的行吗?我的网格中有 6 列。根据列中一行的值(应该遍历该列),我需要选择该行的 id 并点击该行的选择按钮。

I am using telerik grid in mvc2 application. I have to perform Watin UI test for my application. For that i need to select a row from the telerik grid. I was not able to select id for the telerik grid as the telerik grid doesn't have any id. can u please help me to select the particular row from the grid. I have 6 columns in the grid. Based on the value of a row in the column(should iterate though the column) i need to select the id of that row and hit on the select button of that row.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

み零 2024-10-16 16:10:05

Telerik MVC 网格始终具有一个 ID 属性,该属性基本上是由 Name() 方法指定的值。我建议您检查生成的输出。

我没有任何使用 Watin 的经验,但应该可以使用它的 API 来遍历表行并提取单元格的值。

The Telerik MVC Grid always has an ID attribute which is basically the value specified by the Name() method. I suggest you check the generated output.

I don't have any experience with Watin but it should be possible to use its API to traverse table rows and extract the values of the cells.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文