Skip to content

[🐛 Bug]: First script example #922

@ajl275

Description

@ajl275

What happened?

On the page: https://www.selenium.dev/documentation/webdriver/getting_started/first_script/
The complete script example in Java at the bottom of the page does not compile due to two errors, there is a missing semicolon on the line: WebElement searchButton = driver.findElement(By.name("btnK")) and a missing import statement: import org.openqa.selenium.WebElement;

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

Chrome 97.0.4692.71
Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions