Skip to content
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

Selenium update breaking selenider_session() #27

Open
AntonioBergallo opened this issue Jul 18, 2024 · 3 comments
Open

Selenium update breaking selenider_session() #27

AntonioBergallo opened this issue Jul 18, 2024 · 3 comments

Comments

@AntonioBergallo
Copy link

Hey! I was trying to run selenider now and got this error message

session_sel <- selenider_session(
session = "selenium",
browser = "chrome",
timeout = 6)

Error in utils::download.file(url, path, quiet = !verbose) :
cannot open URL 'https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.23.0/selenium-server-4.23.0.jar'
In addition: Warning messages:
1: In utils::download.file(url, path, quiet = !verbose) :
downloaded length 0 != reported length 0
2: In utils::download.file(url, path, quiet = !verbose) :
cannot open URL 'https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.23.0/selenium-server-4.23.0.jar': HTTP status was '404 Not Found'

I think it has somehthing to do with selenium's new release, which has a different name due to being a beta version, as the image below shows.

image

Is there a quick fix for that? I skimmed through the code for selenider_session but could not find it right away.

@kasimrafique
Copy link

Is this still an issue after v4.23.0 was released 7 days ago?

@AntonioBergallo
Copy link
Author

No, right now it is working. It might break when a later beta version is released with a name that doesn't fit the pattern. You can also download 4.23.0 and pull the file from your computer. The function itself has a parameter for that, "temp" if I'm not mistaken.

@ashbythorpe
Copy link
Owner

This is an issue in selenium, not selenider, that should be fixed in the dev version of selenium (pak::pak("ashbythorpe/selenium-r")). I haven't tested this very thoroughly because I'm in another country at the moment, so let me know if it breaks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants