Unfortunately pretty much places in web applications automation are based on "Magic". What do I mean by saying magic?
Example of Magic:
Example of Magic:
- Test is failing (or some operation is failing) and you don't know why
- You are trying something - and is works
- BUT you can't explain why the thing you done helps to fix the situation, and is it reliable or not
So, talking about JS/AJAX handling - it's mostly based on Magic for now. Nobody knows how to handle it properly, neither I do.
In this article I'll try to explain how to get rid of Magic in JS/AJAX handling as much as possible. Just theory, without code examples.