<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>232995</bug_id>
          
          <creation_ts>2021-11-11 06:03:43 -0800</creation_ts>
          <short_desc>CSS hover does not trigger on click-command on iOS</short_desc>
          <delta_ts>2021-11-15 04:28:11 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebDriver</component>
          <version>Safari 14</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 14</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>sebastian.klaar</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1813999</commentid>
    <comment_count>0</comment_count>
    <who name="">sebastian.klaar</who>
    <bug_when>2021-11-11 06:03:43 -0800</bug_when>
    <thetext>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:

&lt;head&gt;  
  &lt;style&gt;
    .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;
      }

  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
  &lt;div class=&quot;test1&quot; onclick=&quot;void(0)&quot;&gt;
    Test 1
    &lt;div class=&quot;test2&quot; id=&quot;test&quot; onclick=&quot;void(0)&quot;&gt;
      Test 2
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/body&gt;

Appium logs
2021-08-17 06:57:24:714 - [HTTP] --&gt; 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: [&quot;5000&quot;,&quot;2cd46df3-26e9-4f35-afd7-d2dce67967fe&quot;]
2021-08-17 06:57:24:715 - [debug] [XCUITest] Executing command &apos;click&apos;
2021-08-17 06:57:24:716 - [debug] [RemoteDebugger] Executing atom &apos;click&apos; with &apos;args=[{&quot;ELEMENT&quot;:&quot;:wdc:1629183444508&quot;}]; frames=&apos;
2021-08-17 06:57:24:724 - [debug] [RemoteDebugger] Executing &apos;click&apos; atom in default context
2021-08-17 06:57:24:724 - [debug] [RemoteDebugger] Sending javascript command: &apos;(function(){return function(){var h,aa=this;fun...&apos;
2021-08-17 06:57:24:725 - [debug] [RemoteDebugger] Sending &apos;_rpc_forwardSocketData:&apos; message to app &apos;PID:3360&apos;, page &apos;1&apos;, target &apos;page-35&apos; (id: 170): &apos;Runtime.evaluate&apos;
2021-08-17 06:57:24:781 - [debug] [RemoteDebugger] Received data response from send (id: 170): &apos;&quot;{&quot;status&quot;:0,&quot;value&quot;:null}&quot;&apos;
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 &apos;click&apos; 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] &lt;-- POST /wd/hub/session/some_session_id/element/5000/click 200 68 ms - 76</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1814000</commentid>
    <comment_count>1</comment_count>
    <who name="">sebastian.klaar</who>
    <bug_when>2021-11-11 06:05:44 -0800</bug_when>
    <thetext>Reference: https://feedbackassistant.apple.com/feedback/9522743</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1815019</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-11-15 04:28:11 -0800</bug_when>
    <thetext>rdar://82019343</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>