Replies: 1 comment
-
Hi @ds4573, For either late bound (with registration) like in your case, or for using with no registration (calling the DLL directly from your project), you will have to declare SeleniumVBA's Enums in your project. A complete set of Enum declares can be found in Can twinBASIC DLL be used without registration? Let us know if that works for you. Mike |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use the following code with late binding
Dim Bot As Object
Set Bot = CreateObject("SeleniumVBA.WebDriver")
Bot.StartChrome
Bot.OpenBrowser
Bot.NavigateTo "https://www.wikipedia.org"
ElemCheck = Bot.IsPresent(By.ID, "searchInput", 2000, ElemFound:=InputCell) '''<------------- gets stuck here
InputCell.SendKeys "aaaa"
Equivalent code with early binding works fine, however above code falls over at the ElemCheck line.
Problem seesm related to the "IsPresent(By.ID..." part, and I think there is some is some problem with how to define / declare the "By" function in late binding.
Set By = CreateObject("SeleniumVBA.By") doesn't work
It's easy enough to work around by getting "InputCell" via another method - eg
InputCell = Bot.FindElementByID("searchInput") etc
however I'd prefer to use the IsPresent(By.ID...) method if possible.
Any suggestions? Hopefully there's something obvious I'm missing.
Thanks, Dain
PS. Thanks to the SeleniumVBA developers, it works great.
Beta Was this translation helpful? Give feedback.
All reactions