Closed Bug 947120 Opened 11 years ago Closed 11 years ago

[marionette-helper] Handle the switchToFrame things.

Categories

(Testing Graveyard :: JSMarionette, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: evanxd, Unassigned)

Details

(Whiteboard: [mentor=evanxd@mozilla.com][good first bug])

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.
Assignee: nobody → gchen
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: [mentor=evanxd@mozilla.com] → [mentor=evanxd@mozilla.com][good first bug]
Sorry, I am busy on other project, so un-assignee first.
Assignee: gchen → nobody
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.