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

cesario678

Client
Регистрация
10.03.2022
Сообщения
201
Благодарностей
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 595
Благодарностей
5 952
Баллы
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.
 

cesario678

Client
Регистрация
10.03.2022
Сообщения
201
Благодарностей
13
Баллы
18
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.
So that's it, I ran dozens of tests and didn't see any changes in the button. Since I didn't see the change, I'd like to know if there's a trick or tip to investigate using the Action Designer?

4o
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 595
Благодарностей
5 952
Баллы
113
So that's it, I ran dozens of tests and didn't see any changes in the button. Since I didn't see the change, I'd like to know if there's a trick or tip to investigate using the Action Designer?
You should investigate what html attributes does the button have. Did you check html code of the button element?
 

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