Cypress: extract text from a selected element

  Kiến thức lập trình

I have a web page that generates code that the client imbeds on their website. Is there a way in Cypress to extract the 3 separate pieces from 3 different selectors on the same page and store them all in three separate variables? From there I would build an html file and open it, or imbed it in a test site and then do it that way… So far all I can get cypress to do is write the imbed code to a file, but then cypress can’t read it!!!

Any help would be appreciated.

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT