Skip to content

[🐛 Bug]: When using Safari version Sequoia 18.5 for execution, the input box cannot be focused on during the first operation on the iframe page #16162

@1betty2

Description

@1betty2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-defectSomething is not working as intendedOS-mac

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions