问题
I'd like to develop an Excel VBA project that interacts with the browser. I hear Selenium is a great tool for this but Excel 2013 where I work doesn't seem to have it listed as an object library under Tools > References... in the VBA editor.
Is there a site where I can download Selenium for Excel VBA and import it via the Browse button, or am I doomed to abandon this project? Having looked online, I can find selenium downloads for several programming languages, but not VBA.
Alternately, is there some other method I can use to read the URL of a user's active tab in a Chrome browser with Excel? The computers here are pretty locked down so I can't write a chrome extension for them like I usually would so I'm looking for a workaround!
Many thanks!
回答1:
you can install add in and then enable Selenium wrapper option in Excel>Tools>reference and then you can proceed with your activities. Visit Selenium Add in for excel to download the file
来源:https://stackoverflow.com/questions/37479711/how-can-i-add-selenium-to-excel-vba-2013