leochabi / selenium-vba

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

Selenium 1.023 fails to start with latest version of Firefox 37.0.2 #150

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system and version (32/64bit): Win 7 64-bit
.Net Framework version : 4.5.2
Office name and version(32/64bit): 2003 32-bit Excel 11.8404.8405 SP3
Browser name and version: Firefox 37.0.2
SeleniumWrapper version: 1.0.23.0

Public Sub a()
    Dim Selenium As New SeleniumWrapper.WebDriver
    Dim BaseUrl As String
    BaseUrl = "http://www.google.com"

    Selenium.setProfile "Selenium"
    Selenium.Start "firefox", BaseUrl
    selenium.setImplicitWait 5000
'    ...
    Selenium.Stop
End Sub

err.Number: -2146233088  (80131500)
err.Description: Failed to start up socket within 45000 ms. Attempted to 
connect to the following addresses: 127.0.0.1:9055

Opens firefox, but fails to connect to URL (www.google.com).  After a few 
seconds throws error.

** Note: Appears to be same issue as in previous versions of driver, i.e. 
incompatible selenium Firefox driver for latest version of FF.  FF update 
results in selenium driver failing?
https://code.google.com/p/selenium-vba/issues/detail?id=91

Original issue reported on code.google.com by sydneybo...@gmail.com on 5 May 2015 at 1:00

GoogleCodeExporter commented 8 years ago
Updated release of Firefox 38.0.1 also fails to start.

As this appears to be an recurring bug with Selenium, is there some way to 
dynamically fix problem?

e.g. change default address 127.0.0.1:9055, or provide more detailed debug info

Original comment by sydneybo...@gmail.com on 20 May 2015 at 12:01

GoogleCodeExporter commented 8 years ago
Resolved...whoo hoo, only 2 1/2 months have passed.

Same issue as #155 
(https://code.google.com/p/selenium-vba/issues/detail?id=155).

Downloaded the full set of drivers from 
http://florentbr.github.io/SeleniumBasic, and with a fair bit of tweaking, got 
Selenium working again.

Syntax has changed, but it works.

Syntax changes I came across...

Excel VBA reference changed from "SeleniumWrapper" to "Selenium"
setImplicitWait >>> wait
.getAttribute("???") >>> .attribute("???")
getScreenshot >>> TakeScreenShot

Original comment by sydneybo...@gmail.com on 24 Jul 2015 at 10:51

GoogleCodeExporter commented 8 years ago
Yes there's been a lot of (free) work done to make it more stable, performant 
and better integrated with Excel.

I also made the choice to change some of the syntax in an attempt to align it 
with the specs of Selenium and with the VB standard. This wasn't a light 
decision but I still think it had to be done.

Regarding the changes you've reported, the setImplicitWait is still present:
driver.Timeouts.ImplicitWait = xxxx
I removed it from the driver object, as implicit waiting is now activated by 
default.

I should probably list the differences with a proper documentation.

Original comment by florentbr on 26 Jul 2015 at 5:22