简体   繁体   English

不使用webdriver加载项如何执行SeleniumWrapper.WebDriver使用Excel宏

[英]Without using webdriver add-in how to execute the SeleniumWrapper.WebDriver used excel macro

I have created an excel vba macro code using selenium webdriver. 我已经使用Selenium Webdriver创建了一个Excel VBA宏代码。

"Dim selenium As New SeleniumWrapper.WebDriver". “将硒作为新的SeleniumWrapper.WebDriver删除”。

It works well in my system as I have used "SeleniumWrapperSetup-1.0.17.0" to create the macro. 它在我的系统中运行良好,因为我已经使用“ SeleniumWrapperSetup-1.0.17.0”创建了宏。 But I cannot ask my whole team to install SeleniumWrapperSetup-1.0.17.0 as business wont accept installing the same in all my team members systems(around 200). 但是我不能要求我的整个团队安装SeleniumWrapperSetup-1.0.17.0,因为企业不会接受在我的所有团队成员系统中安装相同的组件(大约200个)。

Is there a way where I can execute the selenium based macro(Helps to fetch data from the webpage in Chrome browser) without installing the seleniumWrapper? 有没有一种方法可以执行基于硒的宏(帮助在Chrome浏览器中从网页获取数据)而无需安装seleniumWrapper?

No matter what flavor of Selenium you use, you will have to at least distribute some files. 无论您使用哪种硒风格,都必须至少分发一些文件。 If it helps people get the job done more quickly, why wouldn't the business support this? 如果它可以帮助人们更快地完成工作,那么企业为什么不支持呢?

Have you considered writing the tool in C#, compiling it into an EXE, and the distributing it with the Selenium dlls? 您是否考虑过用C#编写工具,将其编译为EXE,并与Selenium dll一起分发? It will avoid installation but you will still have to distribute files. 这样可以避免安装,但是您仍然必须分发文件。

Another option is to write the script in Selenium IDE and distribute the script. 另一种选择是在Selenium IDE中编写脚本并分发脚本。 Everyone would have to install the Selenium IDE (Firefox browser plugin). 每个人都必须安装Selenium IDE(Firefox浏览器插件)。

If your team members are somewhat web savvy, you could write the scraper in Javascript and give them a file that they could run as a Chrome snippet in their browser... no installs necessary. 如果您的团队成员精通网络,则可以使用Javascript编写抓取工具,并为他们提供一个文件,使其可以在其浏览器中以Chrome浏览器段的形式运行...无需安装。

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

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