-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chromedriver not updated #34
Comments
Not sure if this will help but for windows, i downloaded latest chromedriver from the link you had which had the link below then i created a folder called and extracted the contents from .zip file into the new 116.0.5845.96 folder and specified version of chromedriver to use in specify versionpJS <- wdman::chrome(port = port, version = '116.0.5845.96') and it works now.. not a great solution since wdman doesn’t seem to have 116 drivers automatically but works if you are in a pinch and need things to get things working |
A similar workaround worked for me on an Intel Mac. I unzipped the downloaded driver in |
This is a first attempt at an update of the code. I added a new function to #' Pre-download function for Chrome-for-testing site
#'
#' @param url URL of the JSON to use for files
#' @param platform One of `c("linux64", "mac-arm64", "mac-x64",
#' "win32", "win64")
#' @param history Integer number of recent entries
#' @param appname Name of the app, typically `"chromedriver"`
#'
#' @return A named list of dataframes. The name indicates the platform. The dataframe should contain the version, url, and file to
#' be processed. Used as input for `binman::download_files()` or an equivalent.
#' @export
predl_chrome_for_testing <- function(url, platform, history,
appname) {
assert_that(is_URL_file(url))
assert_that(is_character(platform))
assert_that(is_integer(history))
assert_that(is_string(appname))
ver_data <- jsonlite::fromJSON(url)[[2]]
ver_data <- Filter(function(x) !is.null(x$downloads[[appname]]),
ver_data)
ver_data <- ver_data[order(as.numeric(names(ver_data)))]
unwrap <- function(entry) {
version <- entry$version
downloads <- entry$downloads[[appname]]
if (!is.null(downloads)) {
platform <- downloads$platform
url <- downloads$url
file <- basename(url)
data.frame(version, platform, url, file)
}
}
extracted <- do.call(rbind, lapply(ver_data, unwrap))
app_links <- tapply(extracted, extracted$platform, identity)
assign_directory(setNames(app_links, platform), appname)
} This is the change to
There are still a number of issues to address:
|
@dmurdoch I can test this on Mac (just got a new one), but it would be useful to have a branch to check out. |
@dietrichson: I just submitted my changes as a PR #35. They aren't ready to merge. Someone who knows |
@dmurdoch I tested this today, this is what I got:
Creating directory: ~/Library/Application Supp... Creating directory: ~/Library/Application Supp... Creating directory: ~/Library/Application Supp... Creating directory: ~/Library/Application Supp... BEGIN: POSTDOWNLOAD |
Google Chrome has just updated to version 116.x.y.z, and there's no chromedriver available for that version. The website https://chromedriver.chromium.org/downloads refers to https://googlechromelabs.github.io/chrome-for-testing/, which the driver to be installed in a different way.
Will this be supported by RSelenium?
The text was updated successfully, but these errors were encountered: