why it only run one times, restart will error?please help

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6
i created a action, and debug it run ok, but i restart it it will show " the element is not found" please help!
 

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6
it is a bug???why the stepbystep run ok, but restart play it will error???

i need to got the reply gays name from a blog page!
http://blog.sina.com.cn/s/blog_54a625bf0102ekez.html
i design a action search the element
the document n is "0",theform#is"-1" the tag is "span", attribe name is "id",value is"nick_cmt",thesearchtype is "regexp" the action is get innertext
,run test it can got the value perfectly,and i add it to the project,debug the step in poject, it run ok,

but when i restart play from the begin, it will show element is not found!!and runhtmlelement heml element is not found by search criteria!
why???
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
i need to got the reply gays name from a blog page!
http://blog.sina.com.cn/s/blog_54a625bf0102ekez.html
i design a action search the element
the document n is "0",theform#is"-1" the tag is "span", attribe name is "id",value is"nick_cmt",thesearchtype is "regexp" the action is get innertext
,run test it can got the value perfectly,and i add it to the project,debug the step in poject, it run ok,

but when i restart play from the begin, it will show element is not found!!and runhtmlelement heml element is not found by search criteria!
why???
Something is wrong in your search, there is no such element on page. Checked even in dom text - can not find any text "nick_cmt"
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Choose -1 as documnet number
 

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Cause page use upload of data when you scroll it. You need to use KeyBoardEmulation action - {PGDN} and scroll it before interaction with elements.
 

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6
Something is wrong in your search, there is no such element on page. Checked even in dom text - can not find any text "nick_cmt"
thank for your reply,
when design the action, it can be search and test success!! please see the attachment,
but when restart the whole project!, it will error, why ??
 

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6
Cause page use upload of data when you scroll it. You need to use KeyBoardEmulation action - {PGDN} and scroll it before interaction with elements.
i am sorrry, i am new student of zp , i did not know what you mean, how i can do??would you please show the example in my test.xmlz, very very thanks!
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Check attach
 

Вложения

  • 25,6 КБ Просмотры: 256

lokiys

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

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
Ерут use pauses. maybe your internet connection is not fast enough.
 

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6

lokiys

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

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6

coolbb

Client
Регистрация
06.09.2013
Сообщения
95
Благодарностей
0
Баллы
6
ok thanks so sorry,please del one of my post!
 

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
I took a look at your template yesterday. I assume you need all the urls after nick_cmt? If so, I managed to get it, but upon reload the page showed me different content. It's difficult as the language is also Asian.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 715
Баллы
113
i meant that you can add pauses between actions if some elements are not loaded properly.
 

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