Closed Bug 805475 Opened 13 years ago Closed 12 years ago

[B2G] Please add active_element property to Marionette

Categories

(Remote Protocol :: Marionette, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18 fixed)

RESOLVED FIXED
mozilla21
Tracking Status
firefox19 --- wontfix
firefox20 --- wontfix
firefox21 --- fixed
b2g18 --- fixed

People

(Reporter: zcampbell, Assigned: automatedtester)

References

Details

Attachments

(1 file, 1 obsolete file)

Please add the active_element property to Marionette. as per: http://code.google.com/p/selenium/wiki/JsonWireProtocol#POST_/session/:sessionId/element/active We have discussed and think this property will be useful in the frame switching jungle that is B2G.
Is this still needed?
Blocks: 801898
Still needed but not as a high priority. Low-medium
OS: Windows 7 → Gonk (Firefox OS)
Hardware: x86_64 → All
Attached patch Get Active Element on the page (obsolete) — Splinter Review
Will set review when try results come in
Try run for 9356626b67cd is complete. Detailed breakdown of the results available here: https://tbpl.mozilla.org/?tree=Try&rev=9356626b67cd Results (out of 10 total builds): success: 8 warnings: 2 Builds (or logs if builds failed) available at: http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/dburns@mozilla.com-9356626b67cd
Attachment #699184 - Flags: review?(jgriffin)
Comment on attachment 699184 [details] [diff] [review] Get Active Element on the page Review of attachment 699184 [details] [diff] [review]: ----------------------------------------------------------------- r+ with the Marionette method name changed. ::: testing/marionette/client/marionette/marionette.py @@ +488,5 @@ > for x in response: > elements.append(HTMLElement(self, x)) > return elements > > + def switch_to_active_element(self): I think this method is poorly named; we're not switching to anything. This just returns the active element. We should rename this to something like 'get_active_element'.
Attachment #699184 - Flags: review?(jgriffin) → review+
proposed method change to Selenium to keep us in line which makes our lives easier
updating patch as per comments and carrying r+ forward
Attachment #699184 - Attachment is obsolete: true
Attachment #701089 - Flags: review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Whiteboard: [automation-needed-in-aurora][automation-needed-in-b2g18]
Whiteboard: [automation-needed-in-aurora][automation-needed-in-b2g18] → [automation-needed-in-b2g18]
I'm still getting: "UnknownCommandError: POST /session/432419a6-def5-1f47-b9d5-1e97bd99dde1/element/active did not match a known command"
Get Active Element is implemented in wires: https://github.com/jgraham/wires/blob/master/src/marionette.rs#L411 Can you recompile and check that it's accessible to you?
Flags: needinfo?(titus.fortner)
I'm using 0.4.2 OSX binary from release tab. I just re-downloaded to be sure. -> POST session/b5efd61d-6b81-d64d-8e97-4b65908ae2b1/element/active <- {"error":"unknown command","message":"POST /session/b5efd61d-6b81-d64d-8e97-4b65908ae2b1/element/active did not match a known command"}
Flags: needinfo?(titus.fortner)
(In reply to Titus Fortner from comment #14) > I'm using 0.4.2 OSX binary from release tab. I just re-downloaded to be sure. I fear the download may be out of date.
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: