Fix wait_for_ajax method
Merge pull request #784 from elyezer/fix-wait-for-ajax

Fix wait_for_ajax method