# Is there a way to click a button in relation to a specific page?

**URL:** <https://discourse.nodered.org/t/is-there-a-way-to-click-a-button-in-relation-to-a-specific-page/48483>\
**Category:** General\
**Created:** [16 July 2021 08:20 UTC](https://discourse.nodered.org/t/is-there-a-way-to-click-a-button-in-relation-to-a-specific-page/48483 "2021-07-16T08:20:08Z")\
**Posts on this page:** 6\
**Page:** 2

<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:** [18 July 2021 16:05 UTC](https://discourse.nodered.org/t/is-there-a-way-to-click-a-button-in-relation-to-a-specific-page/48483/21 "2021-07-18T16:05:35Z")

</div>

Hi,

If you want you can click a button from a Node-RED flow by using WDIO nodes. This will then force a dependency on having an instance of Selenium to execute the request (e.g. Selenium-Standalone) plus Java. It works but is a lot for a simple button click.

As stated previously: confirm what action the button does when clicked and approach it from that direction.

Might be as simple as a POST with certain parameters.

Cheers,  
Paul

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 July 2021 16:07 UTC](https://discourse.nodered.org/t/is-there-a-way-to-click-a-button-in-relation-to-a-specific-page/48483/22 "2021-07-18T16:07:00Z")

</div>

> [@Athurian](#):
>
> if there is no mqtt message from Node Red,

I thought it was the messages from the sensor that were getting lost, not the messages from node-red.

---

<div class="post-metadata">

**Author:** ![Athurian](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Athurian](https://discourse.nodered.org/u/Athurian)\
**Post date:** [19 July 2021 02:41 UTC](https://discourse.nodered.org/t/is-there-a-way-to-click-a-button-in-relation-to-a-specific-page/48483/23 "2021-07-19T02:41:29Z")

</div>

Using python selenium function was the solution. I was able to press a specific button. Thank you.

---

<div class="post-metadata">

**Author:** ![Athurian](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@Athurian](https://discourse.nodered.org/u/Athurian)\
**Post date:** [19 July 2021 02:41 UTC](https://discourse.nodered.org/t/is-there-a-way-to-click-a-button-in-relation-to-a-specific-page/48483/24 "2021-07-19T02:41:50Z")

</div>

thank you for the reply. The solution was available in the above post.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 July 2021 07:03 UTC](https://discourse.nodered.org/t/is-there-a-way-to-click-a-button-in-relation-to-a-specific-page/48483/25 "2021-07-19T07:03:29Z")

</div>

I think a better solution would be to work out exactly what is going wrong and address that, rather than using a workaround like this.

---

<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:** [2 August 2021 07:04 UTC](https://discourse.nodered.org/t/is-there-a-way-to-click-a-button-in-relation-to-a-specific-page/48483/26 "2021-08-02T07:04:09Z")

</div>

Closed on 2 August 2021 07:04 UTC

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

[Previous page](https://discourse.nodered.org/t/is-there-a-way-to-click-a-button-in-relation-to-a-specific-page/48483.md?page=1)
