Is there other way to get xhr body without using or creating WS Request.
What we need is to get this two info (Please see screenshot) once we land on this page.
This is a new feature so we don’t have scripts yet for it, still in preparation and still collecting information how to automate it.Once we got Farecode and Description we can proceed on the next step to verify what should happen on UI
I suppose your web page has onLoad event handlers in JavaScript, which are invoked as soon as the page is loaded, and which will make XML Http Requests to get data in JSON. Am I right?
Does the OnLoad event handlers store the JSON data as XHR Responses into some JavaScript variable ?
If so, you should be able to retrieve the value of the variables by your custom JavaScript code. Your Test Case script can inject any javascript code into the web page on browser by calling WebUI.executeJavaScript(). And your injected JavaScript code should be able to retrieve values (Farecode and Description) from the stored data and return them to the caller test case script.