# get browser user authentication in knime using Selenium

**URL:** <https://forum.knime.com/t/get-browser-user-authentication-in-knime-using-selenium/84681>\
**Category:** Community Extensions\
**Tags:** palladian-selenium\
**Created:** [November 15, 2024, 8:14pm UTC](https://forum.knime.com/t/get-browser-user-authentication-in-knime-using-selenium/84681 "2024-11-15T20:14:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![umutcankurt](https://forum-cdn.knime.com/user_avatar/forum.knime.com/umutcankurt/32/70644_2.png) [@umutcankurt](https://forum.knime.com/u/umutcankurt)\
**Post date:** [November 15, 2024, 8:14pm UTC](https://forum.knime.com/t/get-browser-user-authentication-in-knime-using-selenium/84681/1 "2024-11-15T20:14:30Z")

</div>

Hi, Some websites block access to the data page when I try to scrape it using Selenium nodes. If I could open my Gmail profile within Selenium, this might solve the issue, but I couldn’t get the workflow from Armin’s example to work. Is there a sample solution for this? I’d like to access the data page when I open the browser with Selenium nodes, but currently, the websites redirect to a different security page.

> [@How to get browser user authentication in knime using Selenium](https://forum.knime.com/t/how-to-get-browser-user-authentication-in-knime-using-selenium/22419/1):
>
> Hi, Can someone help me with the sample workflow or the steps how to do browser user authentication using selenium node in knime. This is the login page i am trying to reach.

WARN Java Snippet 10:16 Bundle “org.seleniumhq.selenium.selenium-merged” required by this snippet was not found.  
Bundle “com.github.kklisura.cdt.cdt-java-client-merged” required by this snippet was not found.  
Compile with errors:  
Error in line 16: The import com.fasterxml cannot be resolved  
Error in line 17: The import com.fasterxml cannot be resolved  
Error in line 18: The import com.fasterxml cannot be resolved  
Error in line 19: The import com.github cannot be resolved  
Error in line 20: The import com.github cannot be resolved  
Error in line 21: The import com.github cannot be resolved  
Error in line 22: The import com.github cannot be resolved  
Error in line 23: The import com.github cannot be resolved  
Error in line 24: The import com.github cannot be resolved  
Error in line 25: The import com.github cannot be resolved  
Error in line 26: The import com.github cannot be resolved  
Error in line 27: The import com.github cannot be resolved  
Error in line 28: The import com.github cannot be resolved  
Error in line 29: The import com.github cannot be resolved  
Error in line 30: The import com.github cannot be resolved  
Error in line 97: ObjectMapper cannot be resolved to a type  
Error in line 97: DeserializationFeature cannot be resolved to a variable  
Error in line 98: TypeReference cannot be resolved to a type  
Error in line 105: ChromeDevToolsService cannot be resolved to a type  
Error in line 107: WebSocketService cannot be resolved to a type  
Error in line 107: WebSocketServiceImpl cannot be resolved  
Error in line 108: ChromeDevToolsServiceConfiguration cannot be resolved to a type  
Error in line 108: ChromeDevToolsServiceConfiguration cannot be resolved to a type  
Error in line 109: CommandInvocationHandler cannot be resolved to a type  
Error in line 109: CommandInvocationHandler cannot be resolved to a type  
Error in line 111: ChromeDevToolsServiceImpl cannot be resolved to a type  
Error in line 111: ProxyUtils cannot be resolved  
Error in line 112: ChromeDevToolsServiceImpl cannot be resolved to a type  
Error in line 113: WebSocketService cannot be resolved to a type  
Error in line 113: ChromeDevToolsServiceConfiguration cannot be resolved to a type  
Error in line 121: WebSocketServiceException cannot be resolved to a type  
Error in line 122: ChromeServiceException cannot be resolved to a type  
Error in line 139: ChromeDevToolsService cannot be resolved to a type  
Error in line 139: The method createDevToolsService(java.lang.String) from the type JSnippet refers to the missing type ChromeDevToolsService  
Error in line 142: Fetch cannot be resolved to a type

---

<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:** [November 16, 2024, 9:56am UTC](https://forum.knime.com/t/get-browser-user-authentication-in-knime-using-selenium/84681/2 "2024-11-16T09:56:12Z")

</div>

Umut,

the Java packages in the imports which you mention are from a very old version of the Selenium nodes and are no longer contained in recent versions hence this will not work.

Can you please describe step by step what exactly you’re trying to do?

-Philipp

---

<div class="post-metadata">

**Author:** ![umutcankurt](https://forum-cdn.knime.com/user_avatar/forum.knime.com/umutcankurt/32/70644_2.png) [@umutcankurt](https://forum.knime.com/u/umutcankurt)\
**Post date:** [November 16, 2024, 10:24am UTC](https://forum.knime.com/t/get-browser-user-authentication-in-knime-using-selenium/84681/3 "2024-11-16T10:24:18Z")

</div>

Hello, Philipp @qqilihq

Some websites block access when I attempt to navigate to certain pages using Selenium, redirecting to a different URL instead. I recently discovered an alternative approach: launching Google Chrome with a **saved user profile** via Selenium.

**However, even with a saved profile, some websites still block access and redirect to restricted pages.** The key to overcoming this is adjusting browser DNS settings within the saved profile, which resolves the issue for now. That said, integrating Gmail access via Selenium with a saved profile would be an even more robust solution.  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/1/9/1945b43c65292fd9e67d8f619c2501f84c9b7add.png)

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/6/4/647fbfdcbde3aa60db66a04854e7e05d3b1c3024.png)  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/0/f/0fc9c0152e634199985c898602f5bf68ba65b483.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:** [November 16, 2024, 10:29am UTC](https://forum.knime.com/t/get-browser-user-authentication-in-knime-using-selenium/84681/4 "2024-11-16T10:29:04Z")

</div>

Interesting approach with changing the DNS - I wasn’t aware of that.

Gmail you need to retrieve a confirmation link or for what? I think I’ve been accessing Gmail within a workflow already once, I built a node for that - did you have a look at this node:

> **[Get Mail — NodePit](https://nodepit.com/node/de.philippkatz.knime.getmail.GetMailFactory)**
>
> Read emails from a POP3 or IMAP server.

Does that help?

---

<div class="post-metadata">

**Author:** ![umutcankurt](https://forum-cdn.knime.com/user_avatar/forum.knime.com/umutcankurt/32/70644_2.png) [@umutcankurt](https://forum.knime.com/u/umutcankurt)\
**Post date:** [November 16, 2024, 11:23am UTC](https://forum.knime.com/t/get-browser-user-authentication-in-knime-using-selenium/84681/5 "2024-11-16T11:23:02Z")

</div>

Unfortunately, this would not work as a solution for my workflow. For example, I successfully scrape data from the URL I provided. Initially, there were no issues, but after some time, the website started redirecting the Selenium browser to a different page. Adjusting the DNS settings resolved the issue temporarily for now.

Additionally, if we can open the Gmail session in a saved profile, it could be much more functional in bypassing various barriers such as Cloudflare and human verification challenges. Currently, I frequently encounter Cloudflare or human verification issues on many pages, and these obstacles have significantly increased compared to previous years.

[https://bieterportal.noncd.db.de/evergabe.bieter/eva/supplierportal/portal/tabs/vergaben](https://bieterportal.noncd.db.de/evergabe.bieter/eva/supplierportal/portal/tabs/vergaben)

\*\*When the DNS is configured, the page loads as expected in the first image.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/f/4/f47576cf7386a03913ae7bed35b0f187b57f7cbc.png)

\*\*In the second image, when Selenium opens the page without DNS configuration, it redirects to a different page.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/0/3/036c5b6bc7b51597cfd9c4716186fe536fa2384c.png)

---

<div class="post-metadata">

**Author:** ![umutcankurt](https://forum-cdn.knime.com/user_avatar/forum.knime.com/umutcankurt/32/70644_2.png) [@umutcankurt](https://forum.knime.com/u/umutcankurt)\
**Post date:** [November 16, 2024, 11:30am UTC](https://forum.knime.com/t/get-browser-user-authentication-in-knime-using-selenium/84681/6 "2024-11-16T11:30:19Z")

</div>

Additionally, I would like to share this article to provide insights for those facing similar challenges. It may help in developing alternative solutions for comparable scenarios.

> **[¿Cómo desbloquear sitios web? La guía definitiva para 2024](https://kinsta.com/es/blog/desbloquear-sitios-web/)**
>
> ¿Te han bloqueado en el trabajo, la escuela o el gobierno? Aprende las mejores formas de desbloquear sitios web de varias maneras con nuestra guía definitiva.

---

<div class="post-metadata">

**Author:** ![umutcankurt](https://forum-cdn.knime.com/user_avatar/forum.knime.com/umutcankurt/32/70644_2.png) [@umutcankurt](https://forum.knime.com/u/umutcankurt)\
**Post date:** [November 16, 2024, 6:21pm UTC](https://forum.knime.com/t/get-browser-user-authentication-in-knime-using-selenium/84681/7 "2024-11-16T18:21:31Z")

</div>

If you don’t block cookies, they will eventually block you again. I’ve shared all my findings and experiences on overcoming these challenges. First, clear all history from the saved profile. Then configure DNS and cookie settings before visiting the website.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/f/4/f47e3ee9779336593be2366583bf972287de0c1b.jpeg)

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/e/e/eeb048744f246f02b3547b5572caef4c9bd42def.jpeg)

---

<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:** [February 14, 2025, 6:21pm UTC](https://forum.knime.com/t/get-browser-user-authentication-in-knime-using-selenium/84681/8 "2025-02-14T18:21:51Z")

</div>

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