Description
Hi,
Execute this method element.sendKeys (s) on the input box in an iframe page to input content into the text box. I have executed this method on several versions of Safari(Monterey 15.6/Ventura 16.5/Sonoma 17.3) and it can be executed, but only in Sequoia, when inputting text, it cannot focus on the text box and requires clicking to focus。
Reproducible Code
My environment:
Apple M2 Max, macOS Sequoia v15.5
java 11
Selenium 4.16.1
Safari 18.5 (Developer settings active, Allow remote automation enabled)
So, I have this code:
WebDriver webDriver = new SafariDriver();
webDriver.switchTo().frame(element);
WebElement email =webDriver.findElement(By.xpath("//*[@id=\"emailRegister-inputEmailField\"]"))
email.sendKeys("[email protected]");
WebElement pwd =webDriver.findElement(By.xpath("//*[@id=\"emailRegister-inputPasswordField\"]"))
email.sendKeys("123456");
The above code cannot input text when executed in Safari 18.5