Discussion:
[selenium-users] Firefox runtime error 21 with SeleniumBasic 2.0.9.0
CMC
2017-03-17 20:43:58 UTC
Permalink
I am totally new to Selenium so please forgive any ignorance. I did search
for answers here and in the wild on google, but haven't found it, so I am
hoping someone here can help me.

I have just installed SeleniumBasic 2.0.9.0 and when I try to run a very
basic script (open the browser and navigate to google) I am getting a
runtime error 21 with Firefox, and a message about Disable developer mode
extensions when I try the same simple script with Chrome. .

Just some background as to what I am trying to do: I have been using VBA to
share information between and automate Word and Internet Explorer, all
without problems, working great. However, when one of the things I was
automating using VBA (Unifi hotspot controller) was upgraded two days ago
(I have no control over that), it no longer will run in Internet Explorer,
so I have to now use a different browser, such as Firefox or Chrome. VBA is
pretty much the best/most efficient option for working in Word, and there
is a lot of data to pass back and forth, so I really want to stay with VBA
if at all possible, as that is much easier/less complicated/fewer moving
parts.

When I looked up VBA and Firefox and Chrome, pretty much the only thing
that came up was SeleniumBasic, so I installed it. There does not seem to
be any place to ask questions for the SeleniumBasic, so I hope this is the
appropriate forum. If not, can you please direct me to the right place?

When I try to run the code listed below, it opens Firefox and then after a
delay, it displays the error "run-time error 21: Timeout error. FIrefox
failed to open the listening port 127.0.0.1:53925 within 15s."

I searched for this error, and it said that this is because the browser and
the selenium driver for the browser are not compatible, and I should make
sure to get the latest version of both. I have the latest version of
Firefox and the latest version of SeleniumBasic. It would seem that maybe I
need to get a previous version of Firefox, rather than the latest one. Does
anyone know what version of Firefox will work?

Here is my current environment:

OS: Windows 8.1

Browsers:

Firefox 52.0 (32-bit)

Chrome Version 57.0.2987.110 (64-bit)

SeleniumBasic: 2.0.9.0 (I don't know how to tell what version of Selenium
this is using, or whether it is the latest version or not. FWIW, the date
on the files is 1/21/2016.)



Code with Firefox:

Sub Test()

Dim driver As New Selenium.FirefoxDriver

driver.Get ("wwww.google.com")

driver.Quit

End Sub


Result

Firefox opens, but then after a delay, an error box displays with the
message:

"Run-time error 21: Timeout error. FIrefox failed to open the listening
port 127.0.0.1:53925 within 15s."

The page remains blank.


Code with Chrome:

Sub Test()

Dim driver As New Selenium.ChromeDriver

driver.Get ("wwww.google.com")

driver.Quit

End Sub

Result:

Chrome opens, but the URL displays as "! Not Secure | Data", and after a
delay, a message displays in the upper right corner of the browser window:
"Disable developer mode extensions." Disable or cancel buttons are
displayed, but no button for "Yes I want developer mode - just continue!"
The page remains blank. I have tried to go into the extensions page and
check the box for developer mode, but this check box must be volatile,
because every time it restarts, I find it unchecked again. I'm not even
sure if having the box checked would make any difference.

Eventually an error box comes up that says "Runtime error 101.
WebRequestTimeout. No response from the server within 100 seconds.
(http://localhost:54012/session.)"


When I searched for this problem, I found someone who had the same problem,
and he simply said something to the effect that someone from Selenium
helped him, and solved the problem, but he didn't say what they did to help
him, so no help there.


Thanks in advance for any help you can give!
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/4e5b57a3-6616-43e6-8f1a-372ed9896f4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
p***@gmail.com
2017-05-21 01:06:44 UTC
Permalink
https://github.com/florentbr/SeleniumBasic/issues/133 - some good info on
chrome

but first go to C:\Users\Pawel\AppData\Local\SeleniumBasic\Scripts
click on chrome and if aksed - intstall net.framework
you may need to also go to control panel/turn on off windos featur/ click
on all items in net.framework 3.5
Post by CMC
I am totally new to Selenium so please forgive any ignorance. I did search
for answers here and in the wild on google, but haven't found it, so I am
hoping someone here can help me.
I have just installed SeleniumBasic 2.0.9.0 and when I try to run a very
basic script (open the browser and navigate to google) I am getting a
runtime error 21 with Firefox, and a message about Disable developer mode
extensions when I try the same simple script with Chrome. .
Just some background as to what I am trying to do: I have been using VBA
to share information between and automate Word and Internet Explorer, all
without problems, working great. However, when one of the things I was
automating using VBA (Unifi hotspot controller) was upgraded two days ago
(I have no control over that), it no longer will run in Internet Explorer,
so I have to now use a different browser, such as Firefox or Chrome. VBA is
pretty much the best/most efficient option for working in Word, and there
is a lot of data to pass back and forth, so I really want to stay with VBA
if at all possible, as that is much easier/less complicated/fewer moving
parts.
When I looked up VBA and Firefox and Chrome, pretty much the only thing
that came up was SeleniumBasic, so I installed it. There does not seem to
be any place to ask questions for the SeleniumBasic, so I hope this is the
appropriate forum. If not, can you please direct me to the right place?
When I try to run the code listed below, it opens Firefox and then after a
delay, it displays the error "run-time error 21: Timeout error. FIrefox
failed to open the listening port 127.0.0.1:53925 within 15s."
I searched for this error, and it said that this is because the browser
and the selenium driver for the browser are not compatible, and I should
make sure to get the latest version of both. I have the latest version of
Firefox and the latest version of SeleniumBasic. It would seem that maybe I
need to get a previous version of Firefox, rather than the latest one. Does
anyone know what version of Firefox will work?
OS: Windows 8.1
Firefox 52.0 (32-bit)
Chrome Version 57.0.2987.110 (64-bit)
SeleniumBasic: 2.0.9.0 (I don't know how to tell what version of
Selenium this is using, or whether it is the latest version or not. FWIW,
the date on the files is 1/21/2016.)
Sub Test()
Dim driver As New Selenium.FirefoxDriver
driver.Get ("wwww.google.com")
driver.Quit
End Sub
Result
Firefox opens, but then after a delay, an error box displays with the
"Run-time error 21: Timeout error. FIrefox failed to open the listening
port 127.0.0.1:53925 within 15s."
The page remains blank.
Sub Test()
Dim driver As New Selenium.ChromeDriver
driver.Get ("wwww.google.com")
driver.Quit
End Sub
Chrome opens, but the URL displays as "! Not Secure | Data", and after a
"Disable developer mode extensions." Disable or cancel buttons are
displayed, but no button for "Yes I want developer mode - just continue!"
The page remains blank. I have tried to go into the extensions page and
check the box for developer mode, but this check box must be volatile,
because every time it restarts, I find it unchecked again. I'm not even
sure if having the box checked would make any difference.
Eventually an error box comes up that says "Runtime error 101.
WebRequestTimeout. No response from the server within 100 seconds. (
http://localhost:54012/session.)"
When I searched for this problem, I found someone who had the same
problem, and he simply said something to the effect that someone from
Selenium helped him, and solved the problem, but he didn't say what they
did to help him, so no help there.
Thanks in advance for any help you can give!
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/bebf6ce7-64ef-4f7b-a51f-8b184d8c0bdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...