Closed
Bug 820297
Opened 12 years ago
Closed 11 years ago
HTMLElement does not have ways to select options.
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: askeing, Unassigned)
Details
HTMLElement can use is_selected() to check the status of options.
However, there is no way to assign the selected=true to options.
For example,
open Clock app, creating an alarm, and click Repeat field,
the <option>s under <select> will displayed.
But no way to select any options.
opt_1 = slef.marionette.find_element("css selector", "#repeat-select option")
opt_1.click() # not work
slef.marionette.long_press(opt_1) # not work
slef.marionette.execute_script("return document.getelementbyId('repeat-select').options[0].selected=true;") # not work
Comment 1•11 years ago
|
||
Is this still an issue? It's quite stale, and am guessing it may no longer be relevant.
Reporter | ||
Comment 2•11 years ago
|
||
The select() method of apps/base.py resolve this issue.
It's WFM now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 3•11 years ago
|
||
example:
tests/functional/clock/test_clock_set_alarm_repeat.py
apps/clock/regions/alarm.py
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•