Skip to content

openWindowAndWait (UI Automation - Manipulation)

  • Purpose
  • Generated from openWindow(url, windowID)
  • Opens a popup window (if a window with that ID isn't already open). After opening the window, you'll need to select it using the selectWindow command. This command can also be a useful workaround for bug SEL-339. In some cases, QaSCRIBE will be unable to intercept a call to window.open (for example, if the call occurs during or before the 'onLoad' event, ). In those cases, you can force QaSCRIBE to notice the open window's name by using the QaSCRIBE openWindow command, using an empty (blank) url, like this: openWindow('', 'myFunnyWindow'). Being an AndWait command, it waits for the page to load for duration mentioned in timeout (2 minutes by default).  
  • Syntax
  • openWindowAndWait(url, windowID)
  • Target
  • url - The URL to open, which can be blank.
  • windowID - The JavaScript window ID of the window to select.
  • Value
  • N/A
  • Return Value
  • N/A
 
 
 
 
 

Feedback and Knowledge Base