Closed Bug 821303 Opened 13 years ago Closed 12 years ago

Need a switch to default content in marionette

Categories

(Remote Protocol :: Marionette, defect)

x86
macOS
defect
Not set
normal

Tracking

(firefox25 wontfix, firefox26 wontfix, firefox27 fixed, b2g-v1.2 fixed)

RESOLVED FIXED
mozilla27
Tracking Status
firefox25 --- wontfix
firefox26 --- wontfix
firefox27 --- fixed
b2g-v1.2 --- fixed

People

(Reporter: automatedtester, Assigned: jotes)

Details

(Whiteboard: [good first bug][lang=py][mentor=automatedtester])

Attachments

(1 file)

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.
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
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]
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?
(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!
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()
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.
(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
Thanks for response, i'll work on it.
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)
Attachment #802628 - Flags: review?(dburns) → review+
try is green, will land
Assignee: nobody → jot
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
Whiteboard: [good first bug][lang=py][mentor=automatedtester] → [good first bug][lang=py][mentor=automatedtester][checkin-needed-b2g26]
Whiteboard: [good first bug][lang=py][mentor=automatedtester][checkin-needed-b2g26] → [good first bug][lang=py][mentor=automatedtester]
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: