The ‘SwitchToWindow’ action is used to change the tab in your journey. While navigating your site you may have to click something which opens a new tab. For example, switching to a third-party platform or payment provider.
To set up a SwitchToWindow, enter the tab number of the tab you want to switch to. Your primary tab will be 0 and the first new tab will be 1.
We would recommend starting a new step for this action with the ‘Click’ at the start. Next a ‘SwitchWindow’ action, ‘Wait For Element’ and finally a ‘Capture’. This ensures that the new page loads correctly as it may take slightly longer than a simple navigation click on your site.
Here is this recommended structure: