page.assignVar
method 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_TITLE
target that corresponds to the element representing title of the first story.ARTICLE1_TITLE
) changed, meaning the news list updated.src
attribute 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.