louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
55.81k stars 5.02k forks source link

Actions in the body code #5062

Open JPpascoal opened 2 weeks ago

JPpascoal commented 2 weeks ago

⚠️ Please verify that this question has NOT been raised before.

🛡️ Security Policy

📝 Describe your problem

I have a website that I'm monitoring with Uptime Kuma, and on one of the pages, I need to create a "floor." To do this, I have to click on two buttons first, but the problem is that everything happens on the same page. When I click on these buttons, one of them triggers a pop-up and not a different URL. In Kuma, I have a POST request to check if this "floor" has been created, but it always returns "request failed." If anyone can help, I'd appreciate it.

📝 Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

1.23.13

💻 Operating System and Arch

Windows 11

🌐 Browser

Google Chrome

🖥️ Deployment Environment

CommanderStorm commented 2 weeks ago

You likely are not monitoring, but testing => consider using cypress, playwrigt or similar to build your testing script. You can then string this together via the Push-minitors and a chron job.

Alternatively, look at https://changedetection.io

JPpascoal commented 2 weeks ago

I am trying to monitor it, but i can't because its a pop up in the page, and not an URL, is there something i can do?

CommanderStorm commented 2 weeks ago

Yes, you could to what I suggested? Am I missing something? Examples how to use the push monitor are avaliable here: https://github.com/louislam/uptime-kuma/tree/master/extra/push-examples

consider using cypress, playwrigt or similar to build your testing script. You can then string this together via the Push-minitors and a chron job.

Alternatively, look at https://changedetection.io