Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

I would like to have the ability to switch windows in Sahi like other Mink drivers can. #11

Open
pthurmond opened this issue Jul 17, 2013 · 1 comment

Comments

@pthurmond
Copy link

It would be very handy to be able to switch windows like the Selenium 2 driver can. If I get a chance I will work on this, but if someone else can do it that would rock.

@aik099
Copy link
Member

aik099 commented Aug 26, 2013

I'm not a Sahi user, but looking at the API: http://sahi.co.in/w/all-apis it seems possible.

For example:

  1. _selectWindow(popupId) call will switch context for all upcoming API calls to given window (not sure if window is focused visually too).
  2. _focusWindow() would focus currently active window

I guess combining both should get us implementation of switchToWindow method of MinkSahiDriver at least.

As for switchToIFrame I can't find needed API, since to Sahi accessing data from iframe from same domain is no different from accessing data on a regular page. No need to focus on iframe specifically to perform commands in it I mean.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants