Window Actions

This node allows you to switch between windows or tabs, open new windows or tabs, and close them.

Note that when you use e.g. a “Click” node which opens a new window, Selenium will not automatically switch to that window – i.e. per default all interactions which you perform will go to the original window. Use this node to switch between windows or tabs.

In case you try to switch to a non-existing window, this node will throw an error.

Options

WebDriver Input
Input column which provides the WebDriver(s)
Switch to window/tab with title
Switch to the first window or tab where the page <title> matches the given regular expression. For example, to switch to a window or tab with the title “My Page - Home” you can use the regular expression .* - Home.
Switch to window/tab with URL
Switch to the first window or tab where the current URL matches the given regular expression.
Switch to window/tab by index
Switch to a tab or window by index – the first window has an index of 0, further tabs or windows are numbered sequentially in the order of their creation.
Switch to next window/tab
Switch to the tab or window which was created after the current one.
Switch to previous window/tab
Switch to the tab or window which was created before the current one.
Get current window/tab handle as flow variable
Create a flow variable with an identifier for the current window or tab; this allows you to switch back at a later stage.
Switch to window/tab by handle
Switch to a window or tab based on an identifier that was created before using the option “Get current window/tab handle as flow variable”.
Close current window/tab
Closes the current window or tab and switches back to the most recent one.
Open new window
Opens and switches to a new window.
Open new tab
Opens and switches to a new tab.

Input Ports

Icon
Table with a column providing a WebDriver

Output Ports

Icon
Same as input table

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.