leochabi / selenium-vba

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

Internet Explorer not work #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system and version (32/64bit) : XP 32bit
.Net Framework version : 3.5 SP1 and 4 Extended both
Office name and version(32/64bit) : Office 2010 32Bit
Browser name and version : IE 8 Version 7.057
SeleniumWrapper version : 1.0.19.0

What steps will reproduce the problem with a public website ?
1.
2.
3.

What is the expected output? What do you see instead?

Just tried opening google.com on IE.using below line of code from VBA.

Sub TEST()
Dim sw As New SeleniumWrapper.WebDriver

sw.Start "ie", "google.com"
End Sub

It open-up IE (http://localhost:1155/) with following message in body.

This is the initial start page for the WebDriver server.

Attached is the screen shot for reference.

Please provide any additional information below.

Thanks & Regards
Rohit Bhatia

Original issue reported on code.google.com by rohitkbh...@gmail.com on 1 Aug 2014 at 7:35

Attachments:

GoogleCodeExporter commented 8 years ago
The start command only starts the browser and define the root Url.
To display the page, you need to call the open or get command.
Moreover, the root Url is missing the http:// or https://.

The correct syntax would be:
Sub TEST()
  Dim sw As New SeleniumWrapper.WebDriver
  sw.Start "ie", "http://google.com"
  sw.open "/"
End Sub

Original comment by florentbr on 4 Aug 2014 at 5:02