Closed Bug 2091217 Opened 10 days ago Closed 10 days ago

Avoid stale-element failure in bug-edit Selenium test

Categories

(bugzilla.mozilla.org :: Continous Integration, defect)

Production
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

Details

Attachments

(1 external file)

The test_selenium_1 job repeatedly failed in 1_test_bug_edit.t with a stale-element reference while checking whether the QA-Selenium-TEST group checkbox was editable.

  • Change: Read the checkbox’s disabled state in one browser-side query, avoiding a separate WebDriver element lookup and state check.
  return document.querySelector(
    'input[type="checkbox"][name="groups"][value="QA-Selenium-TEST"]'
  ).disabled;
Attached file GitHub Pull Request —
Status: ASSIGNED → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: