0

Can any one tell me. Is it possible to get the ajax JSON response data to validate the particular job is DONE.

I am using the selenium robot framework for automation testing.

1
  • is their any one.. done like this??? Commented May 8, 2014 at 14:37

2 Answers 2

2

If you route your traffic through a proxy server like Browser Mob Proxy, you should be able to accomplish this task. You could use one of the HTTP libraries to interrogate the proxy to see the traffic it captured, such as the AUT's AJAX calls.

Sign up to request clarification or add additional context in comments.

Comments

0

You can use this trick:

jQuery(document).ajaxComplete(function(ev, jqXHR, settings) {
    jQuery("#hidden-div").html("<pre>"+jqXHR.responseText+"</pre>");
});

and get data with Selenium driver like this(php):

$driver->executeScript("return $('#hidden').html();");

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.