7Gabriel / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 0 forks source link

Run time error -'2146232832 (80131600) automation error #87

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system and version (32/64bit) : windows 7 and version 64 bit
.Net Framework version :4.0
Office name and version(32/64bit) :
microsoft office professional plus 2010 (32 bit)
Browser name and version :Morzilla
SeleniumWrapper version :1.0.17.0

I am running the below program
Private Sub CommandButton1_Click()
Dim selenium As New SeleniumWrapper.WebDriver
selenium.Start "firefox", "https://www.google.com"
selenium.Open "https://www.google.com"
selenium.setTimeout ("120000")
selenium.setImplicitWait (5000)
selenium.Type "Id=gbqfq", abcd
End Sub

Output:-
Getting an Run time error -'2146232832 (80131600) automation error at the line 
7 
selenium.Type "Id=gbqfq", abcd

Please provide any additional information below.

Original issue reported on code.google.com by jhansi27...@gmail.com on 24 Aug 2014 at 4:42

GoogleCodeExporter commented 8 years ago
This is a syntax error as abcd is not defined.
The correct syntax would be:

Dim selenium As New SeleniumWrapper.WebDriver
selenium.Start "firefox", "https://www.google.com"
selenium.Open "/"
selenium.setTimeout "120000"
selenium.setImplicitWait 5000
selenium.Type "id=gbqfq", "abcd"

Original comment by florentbr on 26 Aug 2014 at 10:24

GoogleCodeExporter commented 8 years ago

Original comment by florentbr on 6 Feb 2015 at 9:30

GoogleCodeExporter commented 8 years ago

Original comment by florentbr on 6 Feb 2015 at 9:30