Did you see
https://developer.mozilla.org/en-US/docs/Marionette/Marionette#switch_to_frame%28%29
?
If you have other child frames open you might need to iterate through
them to find the contacts app. Otherwise you can just use
switch_to_frame(0) (though not very robust if writing a test or something).
Andrew
On 02/15/2013 08:41 AM, Roy Collings wrote:
Hi all,
I'm getting nowhere with this. Using python + marionette, I launch the "Contacts" app
on my device -> click a contact -> in the view details screen I then click the 'sms'
button.
The "Messaging" app starts automatically and lands me in a screen to compose a
new message to my contact (as expected).
However, Marionette still thinks I'm in the 'view contacts' screen (if I dump
the current html at this point, that's the screen I get) so I can't make it
type a message etc...
How to I make it follow the device to the message screen?
I've tried messing around with switching context / window and frame, but to no
avail (and in the absence of any kind of 'how to' doc, I have no idea which id
or name or whatever of the frame or window to switch to, so I've been
guessing!).
Any help will save me yet another few days of investigation work! :)
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g