Check for text presence issue.

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
Re latest ver: 5.9.9.0

When I highlight any text > check presence of text, nothing displays in the box.

 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 184
Баллы
113

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
It's in the page source code:

Код:
<label for="captcha_Ipt">Enter the numbers in the image</label>
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 771
Благодарностей
1 184
Баллы
113
It's in the page source code:

Код:
<label for="captcha_Ipt">Enter the numbers in the image</label>
It wont work :-)

Like this same action is called check of text on page. So it have to be in page text to work.

Try this code. Its better than this text presence checker :-)

C#:
var tab = instance.ActiveTab;
if(tab.PageText.Contains("Enter the numbers in the image")) return true;
else return null;
Cheers
 
  • Спасибо
Реакции: shabbysquire

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
Thanks Lokiys for the workaround c#, I'll use that if it happens again.

It seems that it's now working again in PM.

I usually use text on page, but in Dom there is source option. Can't I parse it from there?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
You can change in Indy's snippet PageText to DomText
 
  • Спасибо
Реакции: shabbysquire

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