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

Not able to run the the selenium Test cases on chrome driver version121 #139

Open
nakka-sandeep opened this issue Feb 17, 2024 · 3 comments · May be fixed by #140
Open

Not able to run the the selenium Test cases on chrome driver version121 #139

nakka-sandeep opened this issue Feb 17, 2024 · 3 comments · May be fixed by #140
Labels

Comments

@nakka-sandeep
Copy link

Reproduction steps

Currently jenkins supports only 114 version (https://updates.jenkins.io/updates/org.jenkins-ci.plugins.chromedriver.ChromeDriver.json)

so latest version is not getting picked

Expected Results

It has to pick the latest version of chrome driver while executing .

https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json

Actual Results

https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json

Anything else?

No response

@MarkEWaite
Copy link
Contributor

Thanks for the report @nakka-sandeep . Based on the contents of https://github.com/GoogleChromeLabs/chrome-for-testing it looks like changes are needed in the crawler for Chromedriver versions. Are you interested in making those changes and proposing a pull request?

@nakka-sandeep
Copy link
Author

nakka-sandeep commented Feb 18, 2024

@MarkEWaite i am not proficient at groovy script. Please review below code whether it works

`import groovy.json.JsonSlurper
import groovy.json.JsonOutput

def url = 'https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json'
def jsonString = new URL(url).text
def jsonData = new JsonSlurper().parseText(jsonString)

def jsonList = []

// Extract information only for the "Stable" channel
def stableData = jsonData.channels.Stable
def chromeDriverData = stableData.downloads.chromedriver
chromeDriverData.each { entry ->
def id = "${entry.platform}_${stableData.version}"
def url = entry.url
jsonList << ["id": id, "url": url]
}

lib.DataWriter.write("org.jenkins-ci.plugins.chromedriver.ChromeDriver",JSONObject.fromObject([list:jsonList]));`

@MarkEWaite
Copy link
Contributor

Thanks for the proposal @nakka-sandeep . I'm not very proficient with groovy script either. Could you submit it as a pull request in hopes that others will be able to assist?

nakka-sandeep added a commit to nakka-sandeep/crawler that referenced this issue Feb 20, 2024
Not able to run the the selenium Test cases on chrome driver version121
@MarkEWaite MarkEWaite linked a pull request Mar 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants