如何使用Selenium在WebDatagrid(Infragistics)中输入值?
我在工作的网页之一上有一个infragistics webdatagrid。它显示出像桌子一样显示的,当我们单击任何单元格时,它将变成一个输入框。
我试图使用硒将值输入其中一个单元格。
该单元格最初以TD元素的形式显示,一旦我们单击它,它将进行编辑,一旦我们检查它显示输入元素。
因此,我首先单击TD XPATH,然后尝试在输入框中输入像50之类的值。
单击是可以的,因为它在单击后显示了输入框,但是一旦Selenium脚本试图在输入元素中输入一个值,它就会立即变得不正确,并丢弃了“对不起!元素是不可编辑”之类的错误。
有人知道如何在WebDatagrid单元格中输入值吗?
谢谢。
I have a Infragistics webdatagrid on one of the web pages I am working. It shows like a table and when we click on any of the cell, it will become like an input box.
I am trying to enter a value into one of the cells using selenium.
The cell initially shows as td element and once we click on it, it will be edited and once we inspect it shows an input element.
So I am first clicking on td xpath and then trying to enter a value like 50, into the input box.
Click is ok as it is showing the input box after clicking but once the selenium script tries to enter a value into the input element, it is becoming immediately uneditable and throwing an error like "Sorry! element is uneditable".
Any one know how to enter a value into the webdatagrid cells?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论