Forum Discussion

hkap's avatar
hkap
Contributor
7 years ago

How do I get a web element from Chrome browser using VBScript?I

Using VBScript on Google Chrome browser, I am trying to search a product name

 

ex: 

Dim Chrome, oVal

Set Chrome = CreateObject("GoogleChrome.Application")
Chrome.Visible = True

Chrome.Navigate "http://smartbear.com/"

Set oVal = Chrome.Document.GetElementsByName("PhraseToSearch").Value = "ProductA"

 

I am getting runtime error.

ActiveX component can't create object: 'GoogleChrome.Application'