Need better Element description when passing element instead of ID
Bug #1005972 reported by
Mark Kennedy
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
selenium-simple-test |
Fix Released
|
Undecided
|
Corey Goldberg |
Bug Description
For methods that accept id_or_elem, the description that is generated when passing a WebElement is the default description returned by that class, which isn't a great format. For example, this:
"Writing to textfield <selenium.
It would be nice to generate a more useful description if the argument is a WebElement. For example, you could inspect the element to see if it has an ID or a name, and if so use that in the description, e.g.:
"Writing to textfield identified as 'foobar' with text 'Hello, World!'"
or
"Writing to textfield named 'foobar' with text 'Hello, World!'"
MK
Related branches
lp:~coreygoldberg/selenium-simple-test/console-output-cleanup
- Leo Arias (community): Approve
-
Diff: 298 lines (+41/-33)2 files modifiedsrc/sst/actions.py (+39/-32)
src/sst/runtests.py (+2/-1)
Changed in selenium-simple-test: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I just fixed this up. will land to trunk after review.
-Corey