On 2013-02-15, at 8:41 AM, Roy Collings <[email protected]> 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! :)
Take a look at my little JavaScript console for B2G that uses Marionette:
https://github.com/st3fan/fxos-repl
It shows how to iterate over running apps and then the current context. It is
just a page of code.
S.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g