Z
Z
ZaurK2017-07-13 10:00:31
Parsing
ZaurK, 2017-07-13 10:00:31

How to force casperjs to wait for the end of ajax processing?

Greetings! The problem is this. there is some element on the page When the page is loaded, javascript is fired and the value of text1 is replaced by another value of text2, which comes in the form of json. The problem is that casperjs finds the text1 value without waiting for the javascript to run, and I need the text2 value. Tell me, is there such an opportunity in casper to make him wait until text2 appears and tell me how this is done, where to move or where to read about it? The content values ​​of text1 and text2 are not known in advance.
<div class="someclass">text1</div>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question