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

[🐛 Bug]: Missing code from getting_started/first_script page #2208

Closed
DevLoggith opened this issue Mar 4, 2025 · 3 comments
Closed

[🐛 Bug]: Missing code from getting_started/first_script page #2208

DevLoggith opened this issue Mar 4, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@DevLoggith
Copy link

What happened?

In going through the documentation to set up my Seleium project, I noticed on the "getting started/first issue" page that there is a missing line of code needed to demonstrate requesting element information (under section 7). The web page is missing the line:

message = driver.find_element(by=By.ID, value="message")

before text = message.text. It is present however in the first_script.py file in the repo on line18. This omission seems to be present for all of the code examples on the web page (Java, Python, CSharp, Ruby, JavaScript, Kotlin).

An additional thought

It might also be help first-timers to explicitly state on the web page what imports are needed also, but not sure if that should be rolled out into a separate issue.

from selenium import webdriver
from selenium.webdriver.common.by import By

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

Just to make sure it wasn't a rendering issue, I've tested this on:

Browsers

  • Firefox (Version 135.0.1)
  • Chrome (Version 133.0.6943.142)
  • Edge (Version 133.0.3065.92)
  • Safari (Version 18.3)

OS

  • Windows (Build 19045.5555)
  • MacOS (Sequoia 15.3.1)
@DevLoggith DevLoggith added bug Something isn't working needs-triaging labels Mar 4, 2025
Copy link
Contributor

github-actions bot commented Mar 4, 2025

@DevLoggith, 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!

@harsha509 harsha509 added enhancement New feature or request and removed bug Something isn't working needs-triaging labels Mar 9, 2025
@harsha509
Copy link
Member

Hello @DevLoggith,

Thank you for bringing this to our attention.

The initial documentation could indeed be somewhat confusing for newcomers.
Fixed with commit 7eecdbd.

Thanks,
Sri

@harsha509
Copy link
Member

Closing as resolved!

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

No branches or pull requests

2 participants