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.
Related
I am trying to create a program to automate my Chrome browser. But the selenium chrome driver is not working. It opens up chrome for 1-2 seconds and then automatically canceled. Then it gives these errors.
You have a basic syntax problem.
Try this:
from selenium import webdriver
driver = webdriver.Chrome('D:\python projects\chromedriver.exe')
driver.get("https://www.youtube.com")
That error means your Chromdriver.exe is not updated based on your Google Chrom version.
In the error says your version of Google Chrome is 90.0.443.212.
Here: https://chromedriver.chromium.org/ you can download the chromedriver.exe
Download the chromdriver and then replace it, this should do the work.
I want to run my python script which uses selenium to do some work. I need to test the code repeatedly and need to use the terminal as well. Thus the chrome window bugs me when it opens up in the foreground everytime. Also, I can't use the headless mode since my script crashes.
Is there any solution for this ??
You can minimize window after selenium started
from selenium import webdriver
driver = webdriver.Chrome()
driver.minimize_window
driver.get("your_pages")
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?
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.
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.