Weird DOM refreshing issue

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
11
Баллы
18
Let's say I have a page http://example.com/page1 and from this page I click on a link that will load http://example.com/page2. If I search this last page for certain elements using Data - Parse result -> my_regex I get some elements from http://example.com/page1.

If I manually check the source code of http://example.com/page2 and apply the same my_regex I don't see the elements from the 1st page but only elements from the 1st page, as it should.

Moreover, if I wait 2-3 minutes or so and then run again that Data - Parse result -> my_regex action I correctly get only the elements from the 2nd page, as it should.


Example:

Each http://example.com/page1 and http://example.com/page2 have 10 div elements with class AmazingClass

1. On http://example.com/page1 I get 10 div elements with class AmazingClass
2. After loading the 2nd page http://example.com/page2 I get 20 div elements with class AmazingClass (10 from 1st page and 10 from 2nd page)
3. I check the current source of my 2nd page and apply my search regex and find only the last 10 div elements.
4. If I run again Data - Parse result -> my_regex action I still get 20 elements.
5. If I wait 2-3 minutes and run again Data - Parse result -> my_regex action I correctly get only 10 div elements.

It seems like zennoposter takes some time before actually refreshing the current DOM.

For now, I can set a 3 min pause before checking the 2nd page DOM but it's not what I need. Any suggestions?
 

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
11
Баллы
18
It seems that the page I was working on it's changing it's DOM from time to time so this is what caused this strange behavior.
 

PHaRTnONu

Client
Регистрация
01.10.2016
Сообщения
340
Благодарностей
48
Баллы
28
you closing and opening a tab of the same name.
it will also make you lose the ability of right clicking to bring action designer and inspect element, i have been fighting this bug for about a year now...
make a project, close page open new tab name it say ONE do some actions
restart in project a few time (instance restarts with "page" tab it close's tab "ONE" opens, do some actions , loop 5 times, just repeat a few times and you'll notice EVERYTHING bonkers in source and trying to get element's hell even ave the element tree open and just try clicking a few later on its bizarre!!!)

i normally just close project maker and get mad and reopen it... LOL
 

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