문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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();");
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top