Closed Bug 820297 Opened 12 years ago Closed 11 years ago

HTMLElement does not have ways to select options.

Categories

(Remote Protocol :: Marionette, defect)

18 Branch
All
Gonk (Firefox OS)
defect
Not set
normal

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
Is this still an issue? It's quite stale, and am guessing it may no longer be relevant.
The select() method of apps/base.py resolve this issue. It's WFM now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
example: tests/functional/clock/test_clock_set_alarm_repeat.py apps/clock/regions/alarm.py
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.