[Webkit-unassigned] [Bug 232202] New: "Clicking" option element via WebDriver the second time doesn't fire change event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 23 11:34:15 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=232202

            Bug ID: 232202
           Summary: "Clicking" option element via WebDriver the second
                    time doesn't fire change event
           Product: WebKit
           Version: Other
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebDriver
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: johnchen902 at gmail.com
                CC: bburg at apple.com

Created attachment 442270

  --> https://bugs.webkit.org/attachment.cgi?id=442270&action=review

Python script to reproduce the problem.

"Clicking" option element via WebDriver the second time doesn't fire change event, even though the selection has been changed via JavaScript.

Steps to Reproduce (see the attached script):
1. Create a <select> with two <option>
2. Listen to the change event of the <select>
3. Select ("click") the second <option> via WebDriver
4. Select the first <option> via JavaScript
5. Select ("click") the second <option> via WebDriver

Expected Results: A change event is fired at step 5

Actual Results: No change event is fired at step 5

My environment:
* Arch Linux
* webkit2gtk 2.32.4-1
* python 3.9.7-1
* python-selenium 3.141.0-3

My educated guess is that WebKit::WebAutomationSessionProxy::selectOptionElement should call WebCore::HTMLSelectElement::saveLastSelection before calling WebCore::HTMLSelectElement::optionSelectedByUser.

-- 
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/20211023/518c694d/attachment-0001.htm>


More information about the webkit-unassigned mailing list