How to Check if an Html Element is Disabled?

darlab

Client
Регистрация
17.12.2012
Сообщения
18
Благодарностей
0
Баллы
1
I'm using Zennoposter to buy something from an online shop. When a certain thing has sold out, it's related div button and text field got dimmed and can't be clicked.
Is there any way I can detect if these buttons and fields are disabled so I can switch to other goods?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Just search in source code for this element and check if it has atributes that indicate that it is disabled. You can do this with action designer - GET.
 

darlab

Client
Регистрация
17.12.2012
Сообщения
18
Благодарностей
0
Баллы
1
I have searched the page source and haven't found attribute like "disable" or "enable". But I found the element seems to be enabled/disabled by JavaScript.
If it is like that can zennoposter still detect it?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
You can search DOM text for whatever you want in order to make a decision to perform any action or not.
 

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