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

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

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!
 
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???
 
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"
 
Choose -1 as documnet number
 
Cause page use upload of data when you scroll it. You need to use KeyBoardEmulation action - {PGDN} and scroll it before interaction with elements.
 
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 ??
 
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!
 
Check attach
 

Вложения

  • test.xmlz
    test.xmlz
    25,6 KB · Просмотры: 336
Ерут use pauses. maybe your internet connection is not fast enough.
 
ok thanks so sorry,please del one of my post!
 
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.
 
i meant that you can add pauses between actions if some elements are not loaded properly.
 

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