Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.

Figure out a way to automatically download/update webdriver #125

Open
NISH1001 opened this issue Oct 10, 2020 · 7 comments
Open

Figure out a way to automatically download/update webdriver #125

NISH1001 opened this issue Oct 10, 2020 · 7 comments

Comments

@NISH1001
Copy link
Owner

This can be a standalone script that can be invoked irrespective of using playx or not. Later we might integrate it. But, I have to allocate a time to solve the issue.

@deepjyoti30
Copy link
Contributor

@NISH1001 So this script needs to be able to update the webdriver to the latest version?

We're using Chromium right? So a script that would basically update Chromium would suffice?

@NISH1001
Copy link
Owner Author

Ya. I was trying to write. But got bored easily. It can be a seemingly-simple script (but might be complex too while parsing?) I guess. I think it can be downloaded directly from https://chromedriver.storage.googleapis.com/index.html.

What I have in my mind is something like this:

  • check for current chromium version
  • check for webdriver version
  • if the webdriver version is lower, parse the index.html to get the download link
  • download, unzip and put to desired path (probably we need sudo privilege for this)

@NISH1001
Copy link
Owner Author

NISH1001 commented Oct 14, 2020

Re: We could do something like
playx --update webdriver which invokes the download script.

So the script doesn't have to be be dependent on any modules within playx itself. Just an independent utility inside the source.

Something like that...

@NISH1001
Copy link
Owner Author

Also, probably there's already an external library/package to do that?

@deepjyoti30
Copy link
Contributor

@NISH1001 During the first installation of playx, isn't the webdriver installed automatically? So do you mean when chromium is updated the webdriver is not updated? And that is why we need to update the webdriver automatically because sometimes chromium gets udpated but the webdriver does not?

I have never had to do any updating from my side and I always update chromium through Arch's package manager which is what you're also using I guess?

@deepjyoti30
Copy link
Contributor

@NISH1001 I'll look around for a library. If there won't be one, I can make a simple script I guess based on the steps you've listed down.

Also playx --update webdriver seems like the way to go.

@NISH1001
Copy link
Owner Author

Thanks a lot @deepjyoti30 . I should figure out to allocate time for playx too I guess. Haven't really touched the codebase for many months. Haha.

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

No branches or pull requests

2 participants