Request A Specific Comment Using Text From The Page

Share this & earn $10
Published at : November 12, 2021

If the page is showing an ID text, and you want to make a request to the backend API using that text, this video is for you. We grab the element's text, clean it up by removing all non-digit characters, convert the text into a number, then make a request to the backend API using the cy.request command. We then assert the properties of the response object. Find this recipe at https://glebbahmutov.com/cypress-examples/ Request A Specific Comment Using Text From The Page
RequestSpecificComment