<?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>211330</bug_id>
          
          <creation_ts>2020-05-01 21:08:00 -0700</creation_ts>
          <short_desc>[WebDriver][GTK] Some tests fails to click elements because element is outside visible rect</short_desc>
          <delta_ts>2020-06-19 09:46:21 -0700</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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=210206</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=193684</see_also>
          <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 name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1648189</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-05-01 21:08:00 -0700</bug_when>
    <thetext>List of tests:

  imported/selenium/py/test/selenium/webdriver/common/correct_event_firing_tests.py::testShouldFireClickEventWhenClicking[WebKitGTK]
  imported/selenium/py/test/selenium/webdriver/common/correct_event_firing_tests.py::testShouldFireMouseDownEventWhenClicking[WebKitGTK]
  imported/selenium/py/test/selenium/webdriver/common/correct_event_firing_tests.py::testShouldFireMouseUpEventWhenClicking[WebKitGTK]
  imported/selenium/py/test/selenium/webdriver/common/correct_event_firing_tests.py::testShouldIssueClickEvents[WebKitGTK]

All of them failing with some click events not being delivered. Running the test page in the MiniBrowser shows the elements not being visible. After changing the default size of MiniBrowser to, e.g. 1024x768, the test passes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1649507</commentid>
    <comment_count>1</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-05-05 22:31:21 -0700</bug_when>
    <thetext>Some other tests are passing if we create the window large enough:

* imported/selenium/py/test/selenium/webdriver/common/alerts_tests.py::testShouldHandleAlertOnPageLoad
* imported/selenium/py/test/selenium/webdriver/common/visibility_tests.py::testShouldModifyTheVisibilityOfAnElementDynamically
* imported/selenium/py/test/selenium/webdriver/common/webdriverwait_tests.py::testExpectedConditionElementToBeClickable
* imported/selenium/py/test/selenium/webdriver/common/webdriverwait_tests.py::testExpectedConditionVisibilityOf
* imported/selenium/py/test/selenium/webdriver/common/webdriverwait_tests.py::testExpectedConditionVisibilityOfElementLocated
* imported/selenium/py/test/selenium/webdriver/common/window_switching_tests.py::testThatAccessingFindingAnElementAfterWindowIsClosedAndHaventswitchedDoesntCrash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1649957</commentid>
    <comment_count>2</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-05-06 21:48:10 -0700</bug_when>
    <thetext>In the WebDriver spec for the click[1]:

&gt; The Element Click command scrolls into view the element if it is not already pointer-interactable, and clicks its in-view center point. 

Maybe related to bug193684 instead of a window sizing issue.

https://w3c.github.io/webdriver/#dfn-element-click</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664318</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2020-06-19 04:56:01 -0700</bug_when>
    <thetext>These tests seem to be passing now</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664399</commentid>
    <comment_count>4</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-06-19 09:45:48 -0700</bug_when>
    <thetext>Committed r263273: &lt;https://trac.webkit.org/changeset/263273&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1664400</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-06-19 09:46:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/64534495&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>