Closed Bug 947120 Opened 7 years ago Closed 6 years ago
[marionette-helper] Handle the switch
To Frame things .
Hi all, We should have the "goToFrame" function in marionette-helper to switch different frame more easily. If we have the goto function, we could go to calendar app from email with `goToFrame(EMAIL_APP_URL)` instead of ``` // We're in the calendar app now. client.switchToFrame(); client.apps.launch(EMAIL_APP_URL); client.apps.switchToApp(EMAIL_APP_URL); ``` It is more clear and easier.
Hey Evan, I think `goToAPP(EMAIL_APP_URL)` is more clearly for user to switch 'APP'. Maybe we can have `goToFrame(FRAME_ID)` for switching real frames which are in same app. Make sense?
For `goToFrame(FRAME_ID)` things, we already have switchToFrame() to handle this. See it in http://mozilla-b2g.github.io/marionette-js-client/api-docs/files/lib_marionette_client.js.html#l826.
Hi Gary, Cool, `goToAPP(EMAIL_APP_URL)` is better.
Whiteboard: [firstname.lastname@example.org] → [email@example.com][good first bug]
Sorry, I am busy on other project, so un-assignee first.
Assignee: gchen → nobody
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.