Popups and private windows

From Edgar BV Wiki
Revision as of 08:29, 4 April 2016 by Red (talk | contribs)
Jump to navigation Jump to search

new windows

Command: openWindow
Target: http://www.somewhere.com/page.html
Value: WindowName

Command: selectWindow
Target: name=WindowName

NB if you have multiple tests running after each other in a suite, each starting with an openWindow you need to ensure that Firefox allows popups for the site by adding it to the blocked popup exceptions in Edit -> Preferences -> Content -> Add popup exception

private windows

First open the popup:

Command: runScript
Target: javascript{link='http://kenjelocatie.test.local/login-default.html';window.open(link,"testwindow","private=yes, menubar=yes, location=yes, resizable=yes, scrollbars=yes, titlebar=yes, status=yes")}

Then pause a bit Then:

Command: openWindow
Target:
Value: testwindow

Switch to the window

Command: selectWindow
Target: name=testwindow