How to find a clickable button that appears after random seconds?

cesario678

Client
Регистрация
10.03.2022
Сообщения
182
Благодарностей
13
Баллы
18
I have a problem: I have a website where it releases a download button, but this button is initially grayed out, meaning it is not clickable. After a random amount of time, this button becomes clickable.
Here's the issue: I implemented a function to click on this button, but even when it is not clickable, the bot is able to click it. This causes a problem, as the download is never triggered. The download only works if the bot clicks the button when it becomes clickable.
Is there a way for my bot to wait and detect when the button becomes available for clicking? I tried making it wait for a fixed amount of seconds, but since the timing is random, it doesn't work well. Sometimes it takes 10 seconds, sometimes a minute, and other times more than 10 minutes. Setting a very large waiting time disrupts the bot's functionality completely.
Here's a screenshot of the button. Unfortunately, I can't share the site because it is paid.

4o
nao.png
sim.png
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 483
Благодарностей
5 919
Баллы
113
You should investigate html attributes of this button, for example with Actions Designer, and find out which attribute value changes when the button is enabled or disabled. Then check this value in a loop during your project, when the value changes - make a click.
 

Кто просматривает тему: (Всего: 2, Пользователи: 0, Гости: 2)