Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created April 25, 2025 12:09
Show Gist options
  • Save SarahElson/a26e99c95985b138099373ee429dce11 to your computer and use it in GitHub Desktop.
Save SarahElson/a26e99c95985b138099373ee429dce11 to your computer and use it in GitHub Desktop.
What Is New In Selenium 4 And What Is Deprecated In It?
public void test_LambdaTest_pause_demo() {
driver.navigate().to("https://www.google.com/");
driver.manage().window().maximize();
try {
Actions action = new Actions(driver);
WebElement inputBox = driver.findElement(By.name("q"));
action.moveToElement(inputBox)
.click()
.pause(Duration.ofSeconds(2))
.sendKeys("Selenium 4")
.build()
.perform();
} catch (Exception e) {
System.out.println(e.getMessage());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment