# Selenium WebDriver alwaus return the same page despite update URL in flow variable

**URL:** <https://forum.knime.com/t/selenium-webdriver-alwaus-return-the-same-page-despite-update-url-in-flow-variable/23592>\
**Category:** Community Extensions\
**Tags:** palladian-selenium\
**Created:** [May 13, 2020, 10:46am UTC](https://forum.knime.com/t/selenium-webdriver-alwaus-return-the-same-page-despite-update-url-in-flow-variable/23592 "2020-05-13T10:46:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lptolik](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/l/8491ac/32.png) [@lptolik](https://forum.knime.com/u/lptolik)\
**Post date:** [May 13, 2020, 10:46am UTC](https://forum.knime.com/t/selenium-webdriver-alwaus-return-the-same-page-despite-update-url-in-flow-variable/23592/1 "2020-05-13T10:46:03Z")

</div>

I have created a workflow, which supposes to scrap several URLs, which contains dynamically generated data.  
I’ve prepared a list of URLs and convert them to the flow variables. But when I ran this workflow WebDriver did not update the content of the page, only URL. I was trying Navigate node, but it did not like my URL strings. What am I doing wrong?

 ![Screenshot 2020-05-13 at 11.36.14](https://forum-cdn.knime.com/uploads/default/original/3X/b/d/bd28da2e9fc60a33a2e8cd647f54960671c0bd2d.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:** [May 13, 2020, 11:21am UTC](https://forum.knime.com/t/selenium-webdriver-alwaus-return-the-same-page-despite-update-url-in-flow-variable/23592/2 "2020-05-13T11:21:57Z")

</div>

Hi lptolik,

1. When you use the [“Start WebDriver”](https://nodepit.com/node/ws.palladian.nodes.selenium.start.StartWebDriverNodeFactory) (or the “pooled” counterpart), make sure that you set the flow variable `urlInput` ( **not** `remoteUrl`) for navigation. (`remoteUrl` is for connecting to a remote Selenium server):

2. When you use the [“Navigate”](https://nodepit.com/node/ws.palladian.nodes.selenium.navigate.NavigateNodeFactory) node you must specify a “dummy” URL, even if you override it through a flow variable. (this is a KNIME-specific ~~annoyance~~ peculiarity)

Please see this workflow on my NodePit Space for an example:

> **[selenium-navigate-with-flow-variable-23592 \[Workflow\] — NodePit](https://nodepit.com/workflow/com.nodepit.space/qqilihq/public/forum/selenium-navigate-with-flow-variable-23592.knwf)**
>
> Show how to use flow variables for URL navigation.

Does this solve your issue?

– Philipp

---

<div class="post-metadata">

**Author:** ![lptolik](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/l/8491ac/32.png) [@lptolik](https://forum.knime.com/u/lptolik)\
**Post date:** [May 13, 2020, 11:36am UTC](https://forum.knime.com/t/selenium-webdriver-alwaus-return-the-same-page-despite-update-url-in-flow-variable/23592/3 "2020-05-13T11:36:05Z")

</div>

Thank you! It was useful about Navigate. As for WebDriver it seems the problem is with Pooled one, as plain WebDriver manage to return appropriate content. Thank you, once again.

---

<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:** [May 13, 2020, 11:56am UTC](https://forum.knime.com/t/selenium-webdriver-alwaus-return-the-same-page-despite-update-url-in-flow-variable/23592/4 "2020-05-13T11:56:59Z")

</div>

Thanks for the feedback!

In fact this should of course also work with the “Pooled WebDriver” node – so if you still encounter the issue, I’d be grateful about a test workflow so that I can see whether there’s a bug!

Best,  
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:** [April 21, 2023, 9:38pm UTC](https://forum.knime.com/t/selenium-webdriver-alwaus-return-the-same-page-despite-update-url-in-flow-variable/23592/5 "2023-04-21T21:38:22Z")

</div>

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