SeleniumHQ / seleniumhq.github.io

Official Selenium website and documentation
https://selenium.dev
Apache License 2.0
1.11k stars 1.3k forks source link

[🐛 Bug]: Incorrect line numbers being referenced on about/style page #2006

Open harshitBhardwaj97 opened 11 hours ago

harshitBhardwaj97 commented 11 hours ago

What happened?

On the style page, under Reference GitHub Examples section, the incorrect line numbers are being referenced from the test scripts, due to which either the code is not shown, or incorrect code is being shown.

https://github.com/user-attachments/assets/825b676e-03d5-4b3c-8a7e-6b7b45c1a6c9

Also, we are showing different code snippets for Kotlin vs other languages. So @diemol, @harsha509 kindly let me know which snippets need to be shown here, capturing the textbox and submitButton -

WebElement textBox = driver.findElement(By.name("my-text"));
WebElement submitButton = driver.findElement(By.cssSelector("button"));

Or capturing the message element and extracting it's text -

WebElement message = driver.findElement(By.id("message"));
message.getText();

Or if anything else apart from these ?

What browsers and operating systems are you seeing the problem on?

All

github-actions[bot] commented 11 hours ago

@harshitBhardwaj97, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!