require 'watir-webdriver'
b=Watir::Browser.new
b.goto 'www.google.com'
I am writing the above code to open the google.com in firefox, but the problem is, control is not leaving the second line even after opening the firefox browser and later it throws the given below error, Can anyone suggest me how to overcome this problem?
/webdriver/firefox/launcher.rb:90:in `connect_until_stable': unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) (Selenium::WebDriver::Error::WebDriverError)
This pops up occasionally and it seems like one of the best options to start with is updating the selenium-webdriver gem. That did the trick for me.
gem update selenium-webdriver
I currently run with selenium-webdriver (2.53.4) with no issues.
Related
I can't load a site. Selenium starts when I run my code (aka the specified browser opens - in this case Firefox) but absolutely nothing happens! I just have a blank browser. My code is as follows:
from selenium import webdriver
driver = webdriver.Firefox()
driver.get('http://isol.alachuaclerk.org/RealEstate/SearchEntry.aspx')
I can load the site manually in Firefox but Selenium/geckodriver can't. What's going on?!
I still do not know what the issue is. Not really a fix but rolling back a few geckodriver versions solved this. Why the latest geckodriver doesn't load this site but an older version does is beyond me.
So before the question I wanna point out that the only thing I could find on this issue was on this stackoverflow question. This issue suggest that this was an issue with wappalyzer, and it was fixed in version 4.0.1. however I am using wappalyzer version 5.1.4 and is up to date with this.
I am building a web-app based on the MEAN-stack, everything worked as intended for a long time, until this error kept poping up in my google-chrome console:
Everytime i would click in my app header, and use my front-end routing to load up different components / modules this error appears, however I dont see any issue with what the web-app presents to me (it's not like I am missing data)
More details on the error:
I have no idea whats going on, or where this issue comes from.
This was due to a failing plugin.
Disable all plugins, and enable them one at a time to find failing chrome extensions.
In this case it was the wappalyzer extension.
When I'm using selenium to start firefox, it suffers such a problem. I just write a simple demo to test, by failed.
Have you tried to update your Selenium version to version 3.3.0 ?
I had the same problem as yours : changing the proxy settings as mentioned elsewhere did not work, but updating selenium was the solution.
Mac OS X Solution
If updating did not work for other people, i suggest looking at my answer Why doesn't Selenium's response have a sessionId?
I am using the chrome.runtime.port to connect to the background script. But for some users somehow the portId_ is missing from the port object. The weird thing is that its missing from some users not all. Any help would be appreciated.!
It looks like that they took out portId_ in chrome version 34. So some users are using the latest version of chrome and the others don't, but they are going to face the problem as soon as they update to the latest one.
I'm having some issues with the JPlayer widget.
I'm using JPlayer 1.1.1 with Firefox 3.6.4 and I'm testing this locally on my laptop. I'm all setup to use local domains i.e. http://mylocaldomain, etc.
I have JPlayer in a folder under htdocs called myfolder that I access by going to http://myfolder. I have a test script setup just like the playlist demo on the JPlayer Web site (http://www.happyworm.com/jquery/jplayer/latest/demo-02.htm).
When I load my test script in Firefox it plays like half a second of the audio track. However, my script works fine using Safari and Chrome, and plays the tracks in sequence.
Is there a way to not use the .swf as I have been seeing in other posts as it's becoming really annoying trying to debug this for Firefox when it works in other browsers. I've tried various swfPath settings but it still doesn't work.
I just completed a JPlayer project using Firefox 3.6.10 as the main dev browser, and JPlayer 1.2.0, and I did not see an issue with it cutting off as you describe. You might try upgrading to JPlayer 1.2.
However there is this in the dev guide:
"Firefox 3.6 (Windows, Mac) †
...
* When using {oggSupport: true}, the browser appears to enable file seeking, which can cause the music to pause briefly when a new play position is selected."
Again, I don't think I saw the problem you mentioned. However, that means I do have working code. Have you tested on multiple machines, and what OS are you running Firefox on?
Try loading my application in your Firefox ( http://alinesoundscape.org/ )and see if it works. If so, I can post the relevant parts of my source and you can compare with what you have.