Comments (3)
There isn't an automated way to do that yet
I've written some logic a while ago that automatically determines the latest ChromeDriver version compatible with the stable Chrome binary of your system, see ropensci/RSelenium#221. It should work on Linux, macOS and Windows.
I'd be happy to revise that code (for example we shouldn't rely on binman::list_versions()
since it just returns an error in the case of a fresh install where no ChromeDriver versions had been downloaded before and instead parse https://chromedriver.storage.googleapis.com/index.html
directly) and submit a PR if you could provide some guidance.
from wdman.
There isn't an automated way to do that yet, but you can list available chrome drivers and manually pass the compatible version to chromever
in rsDriver()
.
> binman::list_versions("chromedriver")
$win32
[1] "73.0.3683.20" "73.0.3683.68" "74.0.3729.6"
> rs <- RSelenium::rsDriver(chromever = "73.0.3683.68")
from wdman.
I resorted to this code inside r, to download the latest driver automatically. This works for Linux.
You need wget and 7z installed on your system
library(rvest)
library(tidyverse)
chrome_driver_url <-
read_html("https://googlechromelabs.github.io/chrome-for-testing") |>
html_elements("table") |>
html_table()
chrome_driver_url <-
chrome_driver_url[[2]] |>
filter(Binary == "chromedriver", Platform == "linux64") |>
pull(URL)
directory_path <- "$HOME/.local/share/binman_chromedriver/linux64/"
version <- str_replace(chrome_driver_url, ".+/([\d\.]+)/.+", "\1")
folder_path <- paste0(directory_path, version)
system(paste("mkdir -p", folder_path))
system(paste0("wget -O ", folder_path, "/chromedriver_linux64.zip ", chrome_driver_url))
system(paste0("7z e ", folder_path, "/chromedriver_linux64.zip -o", folder_path))
system(paste("find", shQuote(directory_path),
"-type f -name 'LICENSE.chromedriver' -exec rm {} \;"))
from wdman.
Related Issues (20)
- Unable to run rsDriver, SSL certification error after disabling verfiying HOT 2
- the problem of rsDriver HOT 2
- Unable to download selenium server HOT 6
- downloading phantom but unzipped HOT 3
- Bug in java_check HOT 1
- Do you have any plan to add tor?
- Could Not Create Process / Access is denied HOT 1
- unable to download files in headless chrome HOT 5
- Run RSelenium through wdman in parallel
- chrome not starting HOT 3
- Refactor to use processx instead of subprocess
- New mac64 chromedriver binary names lead to wrong binary being installed HOT 1
- Starting with 0.27.0, the geckodriver binaries for Linux have .asc files, the presence of which breaks downloads HOT 3
- Curl error when downloading Selenium standalone using selenium() function HOT 2
- RSelenium wdman issue HOT 6
- RSelenium Firefox Fails due to wdman HOT 8
- Could not find or load main class c(-Dwebdriver.chrome.driver ... HOT 2
- Chromedriver not updated HOT 6
- ARM64 version of Linux Chromedriver: "Timed out waiting for driver server to start."
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wdman.