Created
April 25, 2025 12:09
-
-
Save SarahElson/a26e99c95985b138099373ee429dce11 to your computer and use it in GitHub Desktop.
Revisions
-
SarahElson created this gist
Apr 25, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ 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()); } }