Opened 3 years ago
Closed 3 years ago
#33455 closed Cleanup/optimization (fixed)
Missleading error message when running selenium tests without selenium.
Reported by: | David Smith | Owned by: | Mohamed Nabil Rady |
---|---|---|---|
Component: | Testing framework | Version: | 4.0 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
I got tripped up by the error message generated by this line
The issue was that I didn't have selenium installed. However, the error message I received was
runtests.py: error: argument --selenium: Selenium browser specification 'chrome' is not valid.
Therefore much head scratching trying to think about what was wrong with chrome/webdriver rather than not having selenium installed. Maybe there is something better we could do here?
Change History (3)
comment:1 by , 3 years ago
Component: | Uncategorized → Testing framework |
---|---|
Summary: | Potentially missleading error message when running selenium tests → Missleading error message when running selenium tests without selenium. |
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 3 years ago
Easy pickings: | set |
---|---|
Has patch: | set |
Owner: | changed from | to
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
We could try to import
selenium
before callingimport_webdriver()
.