# Issues with selenium node

**URL:** <https://discourse.nodered.org/t/issues-with-selenium-node/32929>\
**Category:** General\
**Created:** [15 September 2020 21:19 UTC](https://discourse.nodered.org/t/issues-with-selenium-node/32929 "2020-09-15T21:19:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![RaiRoo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rairoo/32/32583_2.png) [@RaiRoo](https://discourse.nodered.org/u/RaiRoo)\
**Post date:** [15 September 2020 21:19 UTC](https://discourse.nodered.org/t/issues-with-selenium-node/32929/1 "2020-09-15T21:19:45Z")

</div>

Hi everybody,  
I am just doing my first step with selenium and the respective node. So I installed Selenium-hub and selenium-standalone-chrome in a docker container on my Synology. Installation was without any problem and both containers are up and running.  
I added node-red-contrib-selenium-webdriver to my node-red installation (which I added as an adapter of I-broker). Node-red (and some further flows) is working fine without any problem.  
Then I created a basic flow: inject =\> open-web =\> debug with an open-web node configured as server [http://192.168.178.3:32772](http://192.168.178.3:32772) and chrome as browser. After deploying the open-web shows "connected" as status.  
But when triggering that flow after some seconds I get the message "connection lost" ... and reestablished. The msg.payload is empty.  
...  
Any ideas about that???

PS: The log file (ioBroker adapter in debug) says:  
++++

| node-red.0 | 2020-09-15 23:16:44.549 | debug | |
| --- | --- | --- | --- |
| node-red.0 | 2020-09-15 23:16:44.549 | debug | |
| node-red.0 | 2020-09-15 23:16:44.549 | debug | |
| node-red.0 | 2020-09-15 23:16:44.549 | debug | |
| node-red.0 | 2020-09-15 23:16:44.549 | debug | |
| node-red.0 | 2020-09-15 23:16:44.549 | debug | (2844) 15 Sep 23:16:44 - UnsupportedOperationError: |
| node-red.0 | 2020-09-15 23:16:44.548 | debug | (2844) 15 Sep 23:16:44 - [red] Uncaught Exception: |

---

<div class="post-metadata">

**Author:** ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)\
**Post date:** [16 September 2020 00:14 UTC](https://discourse.nodered.org/t/issues-with-selenium-node/32929/2 "2020-09-16T00:14:54Z")

</div>

The selenium node hasn't been updated in quite some time, maybe you could try [https://flows.nodered.org/node/node-red-contrib-puppeteer-new](https://flows.nodered.org/node/node-red-contrib-puppeteer-new)? It has been recently created and it uses Puppeteer which is a more modern browser automation framework than Selenium/WebDriver. I haven't used either though so can't give any further hints.

---

<div class="post-metadata">

**Author:** ![RaiRoo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rairoo/32/32583_2.png) [@RaiRoo](https://discourse.nodered.org/u/RaiRoo)\
**Post date:** [16 September 2020 10:57 UTC](https://discourse.nodered.org/t/issues-with-selenium-node/32929/3 "2020-09-16T10:57:59Z")

</div>

good point. I will try!!

---

<div class="post-metadata">

**Author:** ![paulkeates](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@paulkeates](https://discourse.nodered.org/u/paulkeates)\
**Post date:** [17 September 2020 13:38 UTC](https://discourse.nodered.org/t/issues-with-selenium-node/32929/4 "2020-09-17T13:38:19Z")

</div>

Hi,

You should also look at WebDriver IO nodes (node-red-contrib-wdio) - they are stable,simple, and fast. The Puppeteer nodes are still in alpha I believe and may be missing some features you need.

Cheers,  
Paul

---

<div class="post-metadata">

**Author:** ![RaiRoo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rairoo/32/32583_2.png) [@RaiRoo](https://discourse.nodered.org/u/RaiRoo)\
**Post date:** [17 September 2020 21:37 UTC](https://discourse.nodered.org/t/issues-with-selenium-node/32929/5 "2020-09-17T21:37:06Z")

</div>

Hi Paul,  
in GitHub the comment says "Experimental nodes to work with selenium 2.0 webdriver bindings - uses webdriverio" - with no further explanation. Any ideas about which further components (apart from node-red-contrib-webdriverio) I have to install?  
Rainer

---

<div class="post-metadata">

**Author:** ![paulkeates](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@paulkeates](https://discourse.nodered.org/u/paulkeates)\
**Post date:** [21 September 2020 20:20 UTC](https://discourse.nodered.org/t/issues-with-selenium-node/32929/6 "2020-09-21T20:20:32Z")

</div>

Hi,  
Probably the simplest way to get going:

1. Install WDIO nodes
2. Install 'Selenium-standalone start' as a npm package
3. Install Java (if not already installed) - dependency for Selenium-standalone

Start Node-RED  
Start a new, separate shell (depending on OS) and in that do 'selenium-standalone start'

The WDIO nodes communicate over port 4444 with the selenium-standalone session.

Cheers!  
Paul

---

<div class="post-metadata">

**Author:** ![RaiRoo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rairoo/32/32583_2.png) [@RaiRoo](https://discourse.nodered.org/u/RaiRoo)\
**Post date:** [22 September 2020 15:46 UTC](https://discourse.nodered.org/t/issues-with-selenium-node/32929/7 "2020-09-22T15:46:55Z")

</div>

Great, Paul. It works! Thank you so much for your support - was really a big help!!!

---

<div class="post-metadata">

**Author:** ![paulkeates](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@paulkeates](https://discourse.nodered.org/u/paulkeates)\
**Post date:** [22 September 2020 17:01 UTC](https://discourse.nodered.org/t/issues-with-selenium-node/32929/8 "2020-09-22T17:01:35Z")

</div>

Hi,  
Sure - glad it works.  
Our company wrote & open-sourced the WDIO nodes.  
We use it internally for web automation.

Cheers,  
Paul

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 November 2020 17:01 UTC](https://discourse.nodered.org/t/issues-with-selenium-node/32929/9 "2020-11-21T17:01:44Z")

</div>

Closed on 21 November 2020 17:01 UTC

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