How to Check if an Html Element is Disabled?

  • Автор темы Автор темы darlab
  • Дата начала Дата начала

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?
 
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.
 
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?
 
You can search DOM text for whatever you want in order to make a decision to perform any action or not.
 

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