我想要自动化的部分原因是:

  • 转到:this

  • 从“页面大小”下拉列表中选择"25"(生成报告所需的选择) .

  • 单击“查看报告”按钮 .

  • 等待生成报告 .

  • 单击“保存/导出”按钮,然后选择“CSV”选项 .

enter image description here

但是,如何设置可以检测报告是否生成的条件?从步骤4到步骤5有2种可能的转换 - 加载或只是空白(我不知道为什么):

enter image description here

enter image description here

这是失败的测试用例:

enter image description here

这是我第一次使用 Selenium ,我打算将其导出为 C# .

谢谢!