Closed Bug 1762211 Opened 3 years ago Closed 1 year ago

Intermittent Android /webdriver/tests/perform_actions/pointer_origin.py | test_viewport_inside - TypeError: 'NoneType' object is not subscriptable

Categories

(Remote Protocol :: Marionette, defect, P5)

Default
All
Android
defect

Tracking

(firefox117 disabled, firefox118 fixed)

RESOLVED WORKSFORME
118 Branch
Tracking Status
firefox117 --- disabled
firefox118 --- fixed

People

(Reporter: whimboo, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure)

With the upcoming support for wdspec tests on Android the following test fails because the mouse move isn't recognized and the position not stored on the window object:

https://treeherder.mozilla.org/logviewer?job_id=372818668&repo=try&lineNumber=108787

[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - TEST-UNEXPECTED-FAIL | /webdriver/tests/perform_actions/pointer_origin.py | test_viewport_inside - TypeError: 'NoneType' object is not subscriptable
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - session = <Session 312d3071-af1e-489b-861d-6daa920944b6>
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - mouse_chain = <webdriver.client.ActionSequence object at 0x7f1325b350f0>
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - origin_doc = <function origin_doc.<locals>.origin_doc at 0x7f1325bfbd08>
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - 
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO -     def test_viewport_inside(session, mouse_chain, origin_doc):
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO -         point = {"x": 50, "y": 50}
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO -     
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO -         session.url = origin_doc("width: 100px; height: 50px; background: green;")
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO -         mouse_chain \
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO -             .pointer_move(point["x"], point["y"], origin="viewport") \
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO -             .perform()
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO -     
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO -         click_coords = session.execute_script("return window.coords;")
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - >       assert click_coords["x"] == pytest.approx(point["x"], abs = 1.0)
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - E       TypeError: 'NoneType' object is not subscriptable
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - 
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - click_coords = None
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - mouse_chain = <webdriver.client.ActionSequence object at 0x7f1325b350f0>
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - origin_doc = <function origin_doc.<locals>.origin_doc at 0x7f1325bfbd08>
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - point      = {'x': 50, 'y': 50}
[task 2022-03-30T12:29:49.999Z] 12:29:49     INFO - session    = <Session 312d3071-af1e-489b-861d-6daa920944b6>
Summary: Intermittent Android mozilla/tests/webdriver/new_session/binary.py | test_shell_script_binary - KeyError: 'binary' → Intermittent /webdriver/tests/perform_actions/pointer_origin.py | test_viewport_inside - TypeError: 'NoneType' object is not subscriptable

It's not perma failing and the failure rate seems to be low. So I'm not going to disable the test.

Keywords: test-disabled

Actually the failure happens more often as this try build shows. I'm going to mark it as pass/fail:
https://treeherder.mozilla.org/jobs?repo=try&revision=0432cbdfebea700328cfec73bf322f943d31c696

Keywords: test-disabled
Summary: Intermittent /webdriver/tests/perform_actions/pointer_origin.py | test_viewport_inside - TypeError: 'NoneType' object is not subscriptable → Intermittent Android /webdriver/tests/perform_actions/pointer_origin.py | test_viewport_inside - TypeError: 'NoneType' object is not subscriptable
Moving bug to Remote Protocol::Marionette component per bug 1815831.
Component: geckodriver → Marionette
Product: Testing → Remote Protocol

It looks like that this is not a failure anymore and now unexpectedly passes. As such I'm going to re-enable this test for Android over on bug 1847578.

Depends on: 1847578
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.