# Selenium Nodes need to switch tab in Chrome browser

**URL:** <https://forum.knime.com/t/selenium-nodes-need-to-switch-tab-in-chrome-browser/87749>\
**Category:** Community Extensions\
**Tags:** palladian-selenium\
**Created:** [April 24, 2025, 8:08pm UTC](https://forum.knime.com/t/selenium-nodes-need-to-switch-tab-in-chrome-browser/87749 "2025-04-24T20:08:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RKrom](https://forum-cdn.knime.com/user_avatar/forum.knime.com/rkrom/32/48561_2.png) [@RKrom](https://forum.knime.com/u/RKrom)\
**Post date:** [April 24, 2025, 8:08pm UTC](https://forum.knime.com/t/selenium-nodes-need-to-switch-tab-in-chrome-browser/87749/1 "2025-04-24T20:08:10Z")

</div>

Hi all,

I’m developing a website scraper with KNIME Selenium nodes.

At a certain stage I click on a button and a new tab opens in Chrome (I cannot avoid opening a new tab). The WebDriver still reads from the first tab, but I need the WebDriver to read from the second tab.

I’ve found this example workflow from @qqilihq , which should be similar to my case, but somehow my WebDriver is broken after the switch to the next tab via a Java Snippet:

> **[Selenium\_Popup\_Window — NodePit](https://nodepit.com/workflow/com.nodepit.space/qqilihq/public/Selenium_Popup_Window.knwf)**
>
> This example workflow shows how you can interact with popup windows. At the moment, the Selenium Nodes do not provide dedicated nodes for working with popup windows. However, you can use some Java coding and the Selenium API to. (1) switch to a popup...

Although in the Chrome browser the tab is switched from 1st tab to 2nd tab, I cannot use the WebDriver with the next “Find Element” node, as it fails to read content from the WebDriver.

Anyone has any suggestions on how to solve this? Or maybe what causes this issue?  
It would be great to have a Selenium node allowing to switch tabs.

Unfortunately due to security reasons I cannot upload the workflow, as it gets access to a secured portal.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/7/2/7279a510b768a3c0ab6d99e266e69a0275a10c11.png)  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/d/a/dac2d2143eb958dc8b497dc94b846f997dc1a58d.png)  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/b/d/bddbd26e54ab08f24025e6e7a59768a67317d4a3.png)

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [April 25, 2025, 2:42pm UTC](https://forum.knime.com/t/selenium-nodes-need-to-switch-tab-in-chrome-browser/87749/2 "2025-04-25T14:42:48Z")

</div>

Hi @RKrom,

I’ve just tested this locally with an example page which opens in a new tab and the workflow as shown above works fine for me - so it’s hard to come up with any advice without having access to the page (if you’re able to share it privately you can send it to me on [mail@seleniumnodes.com](mailto:mail@seleniumnodes.com))

One thing to try: Maybe only the “Outline” view in the Find Elements is affected and the functionality as-is still works fine. What happens if you use e.g. `//title` as XPath and run the node - do you get a result?

-Philipp

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [July 24, 2025, 2:43pm UTC](https://forum.knime.com/t/selenium-nodes-need-to-switch-tab-in-chrome-browser/87749/3 "2025-07-24T14:43:10Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
