Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/275.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 无法在selenium C中单击动态web表中的元素#_C#_Selenium_Selenium Webdriver_C# 4.0 - Fatal编程技术网

C# 无法在selenium C中单击动态web表中的元素#

C# 无法在selenium C中单击动态web表中的元素#,c#,selenium,selenium-webdriver,c#-4.0,C#,Selenium,Selenium Webdriver,C# 4.0,我有table方法,我正在使用这些方法读取并单击动态web表中的元素。我无法单击表中的元素。我发现“索引超出范围”。必须为非负且小于集合“错误”的大小 我试图从表中删除“自动化脚本创建的QA测试文件” 错误消息和代码: 在此方面的任何帮助都将不胜感激,谢谢 错误消息: System.ArgumentOutOfRangeException:索引超出范围。必须为非负数且小于集合的大小。 参数名称:索引 在System.ThrowHelper.ThrowarGumentofrangeExceptio

我有table方法,我正在使用这些方法读取并单击动态web表中的元素。我无法单击表中的元素。我发现“索引超出范围”。必须为非负且小于集合“错误”的大小

我试图从表中删除“自动化脚本创建的QA测试文件”

错误消息和代码:

在此方面的任何帮助都将不胜感激,谢谢

错误消息:

System.ArgumentOutOfRangeException:索引超出范围。必须为非负数且小于集合的大小。
参数名称:索引
在System.ThrowHelper.ThrowarGumentofrangeException处(ExceptionArgument参数,ExceptionResource资源)
位于System.Collections.Generic.List`1.get_项(Int32索引)
位于System.Collections.ObjectModel.ReadOnlyCollection`1.get_项(Int32索引)
在C:\Madhan \-localRepo\Automation\Automation\TablePage.cs中的Automation.TablePage.ReadTable(IWebElement表)中:第47行

在C:\Madhan \-localRepo\Automation\Automation\FunstionalTestPage.cs中的Automation.FunstionalTestPage.TestPage()处:第313行
请阅读为什么会出现错误。考虑使用格式化的基于文本的相关HTML、代码试验和错误堆栈跟踪更新问题。谢谢@ DEBANJANB,我已经更新了HTML代码而不是屏幕截图。