FormNumber -1 works, but Form# 0 doesn't work, why?

bluescharp

Client
Регистрация
20.06.2012
Сообщения
35
Благодарностей
1
Баллы
8
There is only one form in the page, when I set Form# to -1, ZP works. but when I set Form# to 0, ZP says "Not a single element with the specified parameters is found".
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113
Usually pages have several forms.
-1 means ALL forms.
Use -1 and Zennoposter will look for element within a whole page.
 

bluescharp

Client
Регистрация
20.06.2012
Сообщения
35
Благодарностей
1
Баллы
8
Form# all begin with 0, is that right? When there is only one form, I think Form # -1 == Form #0, but Form #0 doesn't work, why?
This is important to me because I have to determine the exact number of Form in my template.

Thanks.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113
If form # 0 doesn't work that means that element is not presented in this form.
Use -1 to look for in all forms. That's usually the easiest way.
 

hunthunt

Client
Регистрация
18.01.2013
Сообщения
22
Благодарностей
0
Баллы
1
form #0 is form 0
form #-1 is the 1st form that match
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 703
Баллы
113
form -1 is all forms at a time
 

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