Bug 291615
| Summary: | [WebDriver][GLIB] Some interactions tests failing due to failure to perform actions related to mouse actions | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Lauro Moura <lmoura> |
| Component: | WebDriver | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | bburg |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=193684 | ||
Lauro Moura
Basically, tests using the following fixture: perform_drag_and_drop_with_mouse, which uses the Perform Actions API:
```
def perform_drag_and_drop_with_mouse(driver, pages):
"""Copied from org.openqa.selenium.interactions.TestBasicMouseInterface."""
pages.load("draggableLists.html")
dragReporter = driver.find_element(By.ID, "dragging_reports")
toDrag = driver.find_element(By.ID, "rightitem-3")
dragInto = driver.find_element(By.ID, "sortable1")
holdItem = ActionChains(driver).click_and_hold(toDrag)
moveToSpecificItem = ActionChains(driver).move_to_element(driver.find_element(By.ID, "leftitem-4"))
moveToOtherList = ActionChains(driver).move_to_element(dragInto)
drop = ActionChains(driver).release(dragInto)
assert "Nothing happened." == dragReporter.text
holdItem.perform()
moveToSpecificItem.perform()
moveToOtherList.perform()
assert "Nothing happened. DragOut" == dragReporter.text
drop.perform()
```
Example test:
imported/selenium/py/test/selenium/webdriver/common/interactions_tests.py::test_dragging_element_with_mouse_moves_it_to_another_list
Running the test shows no mouse interaction being actually performed.
Digging into the SimulatedInputDispatcher code, the keyframes arrive into the browser without the `mouseInteraction` field, which `transitionInputSourceToState` uses to actually call `m_client.simulateMouseInteraction`.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Lauro Moura
Changing to a better title, as this actually related to mouse actions and not drag and drop. For example, Selenium has a `context_click()` action helper, which does a right click, and is also failing.
Lauro Moura
It is indeed a duplicate of bug280567.
*** This bug has been marked as a duplicate of bug 280567 ***