'Selenium on VBA can't find Xpath
I'm trying to find the Xpath for this HTMLcode:
(Copied XPATH) /html/body/hub-menu//section-header//hubmenu-wrapper/div/search-customers//input [Picture af the inspected code]: https://i.stack.imgur.com/pOFIR.png
My code is limple as This:
Dim MP As New Selenium.ChromeDriver
Dim Keys As New Selenium.Keys
With MP
.Start
.Get "https://hub.xpi.com.br"
Application.Wait (Now + TimeValue("00:00:10"))
.FindElementByXPath("/html/body/hub-menu//section-header//hubmenu-wrapper/div/search-customers//input").SendKeys "3676812"
End With
End Sub
I'm doing this to sent the input to this imputbox: [Input Box]: https://i.stack.imgur.com/819v7.png
The error I get is the element not found one
I've already tested looking for the element by type but it didn't work.
Can someone help me?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|