Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private cd As Selenium.ChromeDriver
- Sub DownloadWithHeadless()
- Dim lnk As Selenium.WebElement
- Set cd = New Selenium.ChromeDriver
- With cd
- .SetPreference "download.default_directory", ThisWorkbook.Path & "\"
- .AddArgument "--headless"
- .Start
- .Get "https://www.wiseowl.co.uk/vba-macros/videos/vba-scrape-websites/web-scraping-selenium-chrome/"
- Set lnk = .FindElementByLinkText("here")
- lnk.Click
- End With
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement