简体   繁体   English

如何在C#中使用Selenium Webdriver将数据导出到Excel工作表

[英]How to export data to Excel sheet using Selenium webdriver in C#

I need to export the data from table to Excel sheet on button click, and read the data in the Excel sheet by using the selenium webdriver in C#. 我需要在单击按钮时将数据从表导出到Excel工作表,并使用C#中的Selenium Webdriver读取Excel工作表中的数据。

Is there any solution? 有什么解决办法吗? If there is any method, then please write the full code here. 如果有任何方法,请在此处编写完整代码。

Selenium cannot interact with Excel spreadsheets, it is a browser automation tool that can only interact with HTML through a browser. Selenium无法与Excel电子表格进行交互,它是一种浏览器自动化工具,只能通过浏览器与HTML进行交互。

To manipulate Excel spreadsheets you will need some code that interacts with Excel documents. 要操作Excel电子表格,您将需要一些与Excel文档进行交互的代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM