编程知识 cdmana.com

Example code of capturing mtime news by selenium chrome headless mode under VBA

vba Next selenium Chrome  Headless mode grab Mtime News sample code
Sub qwe()
Dim driver As New ChromeDriver, post As Object
With driver
.AddArgument "--headless" ''This is the fix
.Get "http://news.mtime.com"
End With





For Each post In driver.FindElementByClass("newscontent").FindElementsByTag("h4")
Debug.Print (post.Text)
Next post

End Sub

版权声明
本文为[oscu iqlfn]所创,转载请带上原文链接,感谢

Scroll to Top