hello
I hope find solution . why this code occures different errors out of memory or application defined error in this line ?
.FindElementByClass("coi-banner__accept--fixed-margin").Click
somtimes is gone and stop it without extract any data by debug in word stop in the end of code .
currently no error but just show debug in word stop.
Sub test2()
Dim driver As New webdriver
With driver
.Start "Chrome"
.Get "https://www.maersk.com/tracking/"
.FindElementByClass("coi-banner__accept--fixed-margin").Click
.FindElementById("track-input").SendKeys (Range("C2").Value)
.FindElementByClass("track__search__button").Click
cNum = .FindElementByClass("search-summary--bol__dd").Text
frm = .FindElementByClass("search-summary--from__dd").Text
to_ = .FindElementByClass("search-summary--to__dd").Text
arrDate = .FindElementByClass("summary__text--date").Text
LastLoc = .FindElementByClass("summary__text--location").Text
TranPlan = .FindElementByClass("transport-plan").Text
End With
Stop
End Sub
I put the expected result should be in sheet ship based on cell C2