page.assignVarmethod to extract actual content (e.g. news title) from the page and make assertions on it. Consider the following example:
VAR_ARTICLE1_TITLE, which takes-in HTML of
ARTICLE1_TITLEtarget that corresponds to the element representing title of the first story.
ARTICLE1_TITLE) changed, meaning the news list updated.
srcattribute and wait for response including that URL.
If the endpoint has redirections, the response will have URL different from one set with src attribute and therefore the approach won’t work.