Skip to content

Commit

Permalink
[py] Ensure test is reliable in the RBE
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Jun 13, 2024
1 parent 7cba9cf commit f49c615
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion py/test/selenium/webdriver/common/w3c_interaction_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,18 @@ def test_dragging_element_with_mouse_fires_events(driver, pages):
@pytest.mark.xfail_remote
def test_pen_pointer_properties(driver, pages):
pages.load("pointerActionsPage.html")
pointerArea = driver.find_element(By.CSS_SELECTOR, "#pointerArea")

pointer_input = PointerInput(interaction.POINTER_PEN, "pen")

# Make sure the pointer starts in a known location
reset_actions = ActionBuilder(driver, mouse=pointer_input)
reset_actions.pointer_action.move_to_location(x=0, y=0)
reset_actions.perform()
# Clear the events state
driver.execute_script("allEvents.events = [];")

pointerArea = driver.find_element(By.CSS_SELECTOR, "#pointerArea")

actions = ActionBuilder(driver, mouse=pointer_input)
center = _get_inview_center(pointerArea.rect, _get_viewport_rect(driver))
actions.pointer_action.move_to(pointerArea).pointer_down(pressure=0.36, tilt_x=-72, tilt_y=9, twist=86).move_to(
Expand Down

0 comments on commit f49c615

Please sign in to comment.