I'm looking to automate a very basic xpath check from Excel using Selenium and am getting a run-time error '7': Out of memory.
I've succesfully automated quite a bit using AHK but new to VBA so I'm curious what might be causing the problem. Currently the page loads but as soon as it goes to check the XPath it almost immediately pops up with an out of memory run-time error.
I've double checked to see if there are extra processes running or if I'm low on memory and neither seems to be an issue. I have plenty of free memory and have closed all processes so I assume there is an error with my code or some issue I'm not aware of. I've updated to the newest version of ChromeDriver for Selenium and am pretty certain that the Xpath is correct.
Public Sub DupeCheck()
Dim CID As String
Dim HireURL As String
Dim SearchResult As String
CID = 14962738
HireURL = "https://hire.amazon.com/search?q=" & CID & "&sort=relevance_desc&type=candidate"
Dim bot As New WebDriver
bot.Start "chrome", HireURL
bot.Get "/"
SearchResult = bot.FindElementByXPath(".//*[@id='search-page-root']/div[1]/div[2]/div/div[2]/div/div/div[2]/div/div/ul/li[1]/div/div[1]/div[1]/div[2]").Attribute("innerText")
MsgBox (SearchResult)
bot.Quit
End Sub
Does anyone have any idea what might be causing the issue? I genuinely appreciate any help or ideas! Thanks!