Closed
Bug 821303
Opened 13 years ago
Closed 12 years ago
Need a switch to default content in marionette
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox25 wontfix, firefox26 wontfix, firefox27 fixed, b2g-v1.2 fixed)
RESOLVED
FIXED
mozilla27
People
(Reporter: automatedtester, Assigned: jotes)
Details
(Whiteboard: [good first bug][lang=py][mentor=automatedtester])
Attachments
(1 file)
3.21 KB,
patch
|
automatedtester
:
review+
|
Details | Diff | Splinter Review |
To be able to tell the browser to switch away to the default content (probably the top frame) so am splitting this from bug 814768.
We can just add the listener to bug 814786 and where it is switched to in this bug.
Reporter | ||
Comment 1•13 years ago
|
||
I just realised we do have this but we should add the selenium helper methods of switch_to_default_content which does the same thing.
Removed the blocker
No longer blocks: 814768
Reporter | ||
Comment 2•13 years ago
|
||
We just need to add helper method to the Marionette object.
marionette.switch_to_default_content() which then just calls self.switch_to_frame()
Whiteboard: [good first bug][lang=py][mentor=automatedtester]
Comment 3•13 years ago
|
||
Can I get some pointers on this bug, I want to try this one. :-)
(In reply to David Burns :automatedtester (PTO until 02/01/2013) from comment #2)
> We just need to add helper method to the Marionette object.
>
> marionette.switch_to_default_content() which then just calls
> self.switch_to_frame()
I would like to work on this bug. Where do i start?
Reporter | ||
Comment 5•13 years ago
|
||
(In reply to Atul Jangra [:atuljangra] from comment #3)
(In reply to Rohit from comment #4)
Hi!
We are currently looking at changing the method name and how it works. When that discussion is complete will update the bug with more info! Thanks for wanting to help!
Reporter | ||
Comment 6•12 years ago
|
||
For this we are going to need to a switch_to_frame() (note that there is no argument)
Details are in https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/frame
and this needs to essentially be a copy of https://code.google.com/p/selenium/source/browse/py/selenium/webdriver/remote/webdriver.py#522
You can port tests from https://code.google.com/p/selenium/source/browse/py/test/selenium/webdriver/common/frame_switching_tests.py that use switch_to_default_content()
Assignee | ||
Comment 7•12 years ago
|
||
Hi, from what i see this bug is still assigned to nobody@. I'd like to work on this bug if it's alright for Rohit and David.
Reporter | ||
Comment 8•12 years ago
|
||
(In reply to Jarek Śmiejczak from comment #7)
> Hi, from what i see this bug is still assigned to nobody@. I'd like to work
> on this bug if it's alright for Rohit and David.
Feel free to start work on it. If Rohit comes back I can look for other tasks for him
David
Assignee | ||
Comment 9•12 years ago
|
||
Thanks for response, i'll work on it.
Assignee | ||
Comment 10•12 years ago
|
||
I've created method as you suggested and ported test which involved switch_to_default_content().
However, i'm not sure about naming conventions of test-methods inside python tests of marionette (camelcase vs. underscores).
I hope i didn't mess up anything :)
Attachment #802628 -
Flags: review?(dburns)
Reporter | ||
Updated•12 years ago
|
Attachment #802628 -
Flags: review?(dburns) → review+
Reporter | ||
Comment 11•12 years ago
|
||
just going to push this to try before landing
https://tbpl.mozilla.org/?tree=Try&rev=5e281b3dc049
https://tbpl.mozilla.org/?tree=Try&rev=43e7db5c23fb
Reporter | ||
Comment 12•12 years ago
|
||
try is green, will land
Reporter | ||
Comment 13•12 years ago
|
||
Comment 14•12 years ago
|
||
Assignee: nobody → jot
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Updated•12 years ago
|
Whiteboard: [good first bug][lang=py][mentor=automatedtester] → [good first bug][lang=py][mentor=automatedtester][checkin-needed-b2g26]
Comment 15•12 years ago
|
||
status-b2g-v1.2:
--- → fixed
status-firefox25:
--- → wontfix
status-firefox26:
--- → wontfix
status-firefox27:
--- → fixed
Whiteboard: [good first bug][lang=py][mentor=automatedtester][checkin-needed-b2g26] → [good first bug][lang=py][mentor=automatedtester]
Updated•3 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•