Sir I am getting problem to get Data into excel I have some selenium code to get data from URL max pagination number. in to excel.
Public Sub URL_Max_Page()
Dim driver As New ChromeDriver
Dim URL As String
'open the page with the URL
URL = "https://www.justdial.com/Rajkot/Software-Companies/page-60"
driver.Get [URL]
'get maximum page number in to excel
MX = driver.FindElementsById("paginationlastPageNum").Text
ActiveSheet.Range("A7") = MX
driver.Quit
End Sub
I am getting some error .. i don't know how to make my code working
