[Webkit-unassigned] [Bug 232995] New: CSS hover does not trigger on click-command on iOS

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 11 06:03:43 PST 2021


            Bug ID: 232995
           Summary: CSS hover does not trigger on click-command on iOS
           Product: WebKit
           Version: Safari 14
          Hardware: iPhone / iPad
                OS: iOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sebastian.klaar at sick.de
                CC: bburg at apple.com

When testing on iOS 13 and 14 in Safari using Appium, we launch a simple web page with some divs that have a hover effect. Clicking on the div should activate the hover effect on mobile devices. This happens when we exectue the click manually. But the command session/some_session_id/element/some_element_id/click does not trigger a hover effect. A simple html page for reproducing the behavior can be found below.

Issue was reported already 3 years ago: https://discuss.appium.io/t/invoke-hover-state-in-safari-ios/22853

Steps to reproduce the behavior:

    .test1 {
      display: flex;
      width: 200px;
      height: 50px;
      background-color: yellow;

    .test2 {
      display: flex;
      width: 100px;
      height: 25px;
      background-color: red;
    .test2:hover {
      background-color: green;
    .test1:hover {
      background-color: blue;

  <div class="test1" onclick="void(0)">
    Test 1
    <div class="test2" id="test" onclick="void(0)">
      Test 2

Appium logs
2021-08-17 06:57:24:714 - [HTTP] --> POST /wd/hub/session/some_session_id/element/5000/click
2021-08-17 06:57:24:715 - [HTTP] {}
2021-08-17 06:57:24:715 - [debug] [MJSONWP (2cd46df3)] Calling AppiumDriver.click() with args: ["5000","2cd46df3-26e9-4f35-afd7-d2dce67967fe"]
2021-08-17 06:57:24:715 - [debug] [XCUITest] Executing command 'click'
2021-08-17 06:57:24:716 - [debug] [RemoteDebugger] Executing atom 'click' with 'args=[{"ELEMENT":":wdc:1629183444508"}]; frames='
2021-08-17 06:57:24:724 - [debug] [RemoteDebugger] Executing 'click' atom in default context
2021-08-17 06:57:24:724 - [debug] [RemoteDebugger] Sending javascript command: '(function(){return function(){var h,aa=this;fun...'
2021-08-17 06:57:24:725 - [debug] [RemoteDebugger] Sending '_rpc_forwardSocketData:' message to app 'PID:3360', page '1', target 'page-35' (id: 170): 'Runtime.evaluate'
2021-08-17 06:57:24:781 - [debug] [RemoteDebugger] Received data response from send (id: 170): '"{"status":0,"value":null}"'
2021-08-17 06:57:24:781 - [debug] [RemoteDebugger] Sending to Web Inspector took 57ms
2021-08-17 06:57:24:781 - [debug] [RemoteDebugger] Received result for atom 'click' execution: null
2021-08-17 06:57:24:782 - [debug] [MJSONWP (2cd46df3)] Responding to client with driver.click() result: null
2021-08-17 06:57:24:783 - [HTTP] <-- POST /wd/hub/session/some_session_id/element/5000/click 200 68 ms - 76

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211111/97ccb53b/attachment-0001.htm>

More information about the webkit-unassigned mailing list