When I want to use selenium,firefox and geckodriver to scrape something ,I meet with the question as follows.
So I google it,it tells me that maybe It's because of their version doesn't macth well with each other.but I change the firefox version from firefox esr 45.0 to firefox 47.0,it doesn't work.
My computer system version is Debian jessie8,and now firefox version is 47.0,geckodriver version is 0.16.1;Apart from that,selenium version is 3.4.3.(just as the following pictures show)
code
error
The following should work together. Let us know if that fixes your problem.
Selenium – version 3.4
Firefox – version 53.0/52.0
GeckoDriver – version 0.16.1
Related
I'm having a difficult time getting RSelenium to work with my ChromeDriver in R v4.1.2. Initially, I installed the ChromeDriver v97 because I had Chrome v97 running on my Mac as my browser. However, despite installing the v97 ChromeDriver, I would get an error every time that read
Selenium message:session not created: This version of ChromeDriver only supports Chrome version 98
So I did some research and everything I read said I could either upgrade Google Chrome or downgrade my driver. I tried both. I uninstalled the driver and installed an earlier version (v96) but it still gave me the exact same error. Then I tried upgrading my Chrome browser, but it said it was up to date and that no upgrade was available. So I just figured I'd wait until v98 was ready to install. As soon as v98 was out, I upgraded my browser to Chrome v98 and Selenium with the ChromeDriver ran smoothly without issues. I haven't changed anything since. It ran for a couple of days, but now, all of a sudden, I'm getting the error again but now it says
"This version of ChromeDriver only supports Chrome version 99"
But I have not upgraded my ChromeDriver since installing the v97 driver. It seems as though the driver must have some code in it that checks what the most current version of Chrome is (even if that is a Beta release) and requires that I have it, regardless of which driver or browser I have installed. Has anyone come across this issue before? Any idea of how I can resolve this? I cannot upgrade to v99, it's not available yet, and uninstalling my ChromeDriver and reinstalling a previous version doesn't seem to do anything either.
Thank you in advance.
To know the chrome version use,
binman::list_versions("chromedriver")
$win32
[1] "85.0.4183.87" "86.0.4240.22" "87.0.4280.20" "87.0.4280.88" "88.0.4324.27" "91.0.4472.101" "91.0.4472.19" "92.0.4515.107" "92.0.4515.43"
Then you can try the versions which works for you,
library(RSelenium)
driver <- rsDriver(browser = "chrome",port = 9537L, chromever = "96.0.4664.45")
or else you can use firefox,
driver = rsDriver(port = 4841L, browser = c("firefox"))
The Mac has problems because there are two architectures (Intel and M1), and the code that loads the RSelenium driver hasn't been updated since the M1 came out.
This patch https://github.com/ropensci/wdman/pull/26 fixed the issue for me, working on an Intel Mac. You should also see this issue: https://github.com/ropensci/RSelenium/issues/221, which offers some code to sequentially try drivers until it finds one that works.
I am new to Rselenium and I want to use it to scrape data from a website. When trying to establish a connection I get the error that my chrome driver is not compatible with my current browser version, here is the code and the error I got so far
library(RSelenium)
library(RCurl)
driver <- rsDriver()
remDr <- driver[["client"]]
remDr$open()
> remDr$open()
[1] "Connecting to remote server"
Selenium message:session not created: This version of ChromeDriver only supports Chrome version 97
Current browser version is 96.0.4664.45 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
The error report is very long, but I think the essence of the error is described in the first sentence; my chromedriver and current version of chrome are not compatible.
So I did some research, since I don't know what a chrome driver is. I found out I can download older versions of chrome driver. I searched the 96.0.4664.45 version since my browser is that version (it seems there is only a 32 bit version, which I thought was odd but its the only one for windows so I downloaded that one).
After I downloaded the chromedriver.exe, I moved it to a specific folder and I added that folder to my system path as I read online this is what I have to do in order for R to recognize. Then, I used the cmd prompt to execute the chrome driver, which seems to work;
Then when I start up R and retry, I still got the same error, so it seems I am still doing something wrong. Do I need to 'overide' the chromedriver 97? And why do I even have a version 97 when my browser is a 96? Any help would be greatly appreciated.
I used to Atom editor for coding Golang, PHP,...
When I am coding, sometimes it is automatic close. I install it on Window 10.
Maybe when I switch tab or move mouse but I don't know why so.
UPDATE:
Version: 1.18.0 (before, it is older version but It also so)
Atom : 1.18.0
Electron: 1.3.15
Chrome : 52.0.2743.82
Node : 6.5.0
Do you have any more information? Anything special you did when installing? Have you followed the suggestions in the Debugging document? Also, could you give the following information?
Which version of Atom are you using?
Can you reproduce the issue after completely exiting Atom and restarting using atom --safe?
To utilize the inherent UTF-8 support for windows console, I wanted to freeze my script in python 3.6, but I'm unable to find any. Am I missing something, or none of the freezing modules updated for 3.6 yet?
Otherwise I'll just keep a 3.5.2 frozen version and a 3.6 script version for computers with English consoles.
Thanks.
The bytecode format changed for Python 3.6 but I just pushed a change to cx_Freeze that adds support for it. You can compile it yourself or wait for the next release -- which should be sometime this week.
I don't like the 3.6 version at all. It has too many bugs and it's too slow compared with the previous versions, so I'd like to install to a previous version and wait till they fix the problems. I can't downgrade the installation, so no, not an option.
I know that in this web: https://wiki.appcelerator.org/display/guides2/Reverting+to+a+Previous+Version there is a list of old versions, but this are VERY old, I'd like to download at least the 3.4.2 version or newer (like 3.5), but I can't see any link from wich I can download it. Can anyone give me a link or way to get previous versions of aptana?
Oh yes, oh yes, finally I found them:
MAC OS
http://d1iwq2e2xrohf.cloudfront.net/tools/studio/standalone/3.4.2.201308081805/mac/Aptana_Studio_3_Setup_3.4.2.dmg
WINDOWS
http://d1iwq2e2xrohf.cloudfront.net/tools/studio/standalone/3.4.2.201308081805/win/Aptana_Studio_3_Setup_3.4.2.exe
Linux 32 bits
http://d1iwq2e2xrohf.cloudfront.net/tools/studio/standalone/3.4.2.201308081805/linux/Aptana_Studio_3_Setup_Linux_x86_3.4.2.zip
Linux 64 bits
http://d1iwq2e2xrohf.cloudfront.net/tools/studio/standalone/3.4.2.201308081805/linux/Aptana_Studio_3_Setup_Linux_x86_64_3.4.2.zip
Can't get the plugin, sorry.
You could find Aptana 3.4.2 as Eclipse plugin at the following URL: http://d1iwq2e2xrohf.cloudfront.net/tools/studio/plugin/update/studio3/3.4.2.201308081736/com.aptana.feature.studio-3.4.2.201308081736-7W7I57boG98RAi489ctbvKi7VXbq.zip
When you are installing it from the zip, make sure you un-tick "Group Items by Category"