Searching Using DOM - Please Advice.

2xdswu

Новичок
Регистрация
03.04.2016
Сообщения
21
Благодарностей
4
Баллы
3
I'm making a template with Yandex's mail, to create emails. It has the same problem as mail.ru as well I can't seem to get around this.

I'm unable to check for the phrase "username not available".

I can't use search text because even if the username is available it will search as it's not available because I'm searching for "username not available" text and it's in the background.

I tried using DOM however it still tick as yes when "username not available" is not showing.

The parse is right because I right click > create text of search pressence and once it output i just changed the from take text to take DOM.

Screenshot below please take a look.
https://gyazo.com/8621a0cfffade9ae80ff062e50ea5c73
 
Последнее редактирование:

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
The trick is that thos text in on page always, but when it is not shown it is NOT hidden. So try to create regex with that.
 

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