Move to Element Syntax in Seleniumbasic - Excel VBA

大城市里の小女人 提交于 2020-06-28 09:10:06

问题


I have looked across everywhere to find answers but could not get it, so would like your help in guiding me. Selenium Basic (Excel VBA ) is giving me syntax error at the time of compilation. My Objective is to move the mouse to a known element.

Here are the codes

 Dim driver As New WebDriver
 Dim actions As Selenium.actions
 driver.Start "chrome", "http://anywebsite.com"
 driver.get "/"

 WebElement we = driver.FindElementByClass("MyClassName")
 actions.MoveToElement (we)

It gives me an error at the compilation level as and FindElementByClass is highlighted. However in the watch window I can see values against it.

Compile Error: Sub or Function Not Defined

Would request if you can guide me since in the watch

来源:https://stackoverflow.com/questions/44345998/move-to-element-syntax-in-seleniumbasic-excel-vba

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!