Closed
Bug 805475
Opened 13 years ago
Closed 12 years ago
[B2G] Please add active_element property to Marionette
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18 fixed)
RESOLVED
FIXED
mozilla21
People
(Reporter: zcampbell, Assigned: automatedtester)
References
Details
Attachments
(1 file, 1 obsolete file)
|
8.33 KB,
patch
|
automatedtester
:
review+
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Comment 2•12 years ago
|
||
Still needed but not as a high priority.
Low-medium
| Assignee | ||
Comment 3•12 years ago
|
||
Desktop Try
https://tbpl.mozilla.org/?tree=Try&rev=9356626b67cd
Mobile Try
https://tbpl.mozilla.org/?tree=Try&rev=d581863b9c0a
OS: Windows 7 → Gonk (Firefox OS)
Hardware: x86_64 → All
| Assignee | ||
Comment 4•12 years ago
|
||
Will set review when try results come in
Comment 5•12 years ago
|
||
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
| Assignee | ||
Updated•12 years ago
|
Attachment #699184 -
Flags: review?(jgriffin)
Comment 6•12 years ago
|
||
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+
| Assignee | ||
Comment 7•12 years ago
|
||
proposed method change to Selenium to keep us in line which makes our lives easier
| Assignee | ||
Comment 8•12 years ago
|
||
updating patch as per comments and carrying r+ forward
Attachment #699184 -
Attachment is obsolete: true
Attachment #701089 -
Flags: review+
| Assignee | ||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
| Assignee | ||
Updated•12 years ago
|
Whiteboard: [automation-needed-in-aurora][automation-needed-in-b2g18]
| Assignee | ||
Updated•12 years ago
|
Whiteboard: [automation-needed-in-aurora][automation-needed-in-b2g18] → [automation-needed-in-b2g18]
Comment 11•12 years ago
|
||
status-b2g18:
--- → fixed
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Whiteboard: [automation-needed-in-b2g18]
Comment 12•10 years ago
|
||
I'm still getting: "UnknownCommandError: POST /session/432419a6-def5-1f47-b9d5-1e97bd99dde1/element/active did not match a known command"
Comment 13•10 years ago
|
||
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)
Comment 14•10 years ago
|
||
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)
Comment 15•10 years ago
|
||
(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.
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
•