S
S
Sergey Gavrilov2014-04-15 12:59:45
Angular
Sergey Gavrilov, 2014-04-15 12:59:45

How to wait in protractor for all requests from arbitrary services made via $http?

Is there a functionality in protractor to wait for requests from arbitrary services via $http to complete, or maybe someone has a ready-made solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gavrilov, 2014-04-16
@FireVolkhov

Basically a dumb question.
I started to figure out what and how, and came across a typo in the protractor's config, rootElement was specified incorrectly.
And by coincidence, synchronization with angular was disabled in the test (prot.ignoreSynchronization = true).
Naturally, the tests did not wait for the completion of requests, they moved on to the next tests.
Nothing needs to be done, everything that needs to be done has already been done.
Himself an evil Pinocchio.
The question is closed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question