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!