Closed Bug 800320 Opened 12 years ago Closed 11 years ago

[B2G] gaia - auto switch to the active frame?

Categories

(Remote Protocol :: Marionette, defect)

Other
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: zcampbell, Unassigned)

References

Details

Is it possible for new marionette or existing marionette sessions to auto-switch to the currently active frame?

As from my perspective it's very difficult to understand which frame I am to switch to especially if a frame has been launched via a click.

Similarly, I can't ever imagine a time I'd actually *want* to be on the wrong frame. I only want to be on the frame the user can see - it's the only one that's relevant.
Is this how Selenium normally works?  If it isn't, we'd potentially be breaking Selenium compatibility by implementing this.
It's not how Selenium works but switching frames on a webpage is a rare event.
As Zac said its not part of Selenium. 

We do have switch to active element[1] which *may* get what we want. This hasnt been implemented in Marionette yet so I can do that in a separate bug and see if that solves the issue. 

Another approach would be to get a list of frames and see what is not in that list and use that. Not elegant but might work.

[1] https://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/element/active
I should have mentioned I'm open to a framework-level solution too :) 

Anything that makes it a bit more implied or intuitive.
We are coping OK without this. I wouldn't push for it. I'd close the bug but maybe some other teams that use Marionette for other purposes find it useful too.
I'm going to close this then.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.