Skip to content

Instantly share code, notes, and snippets.

@wpscholar
Created November 7, 2022 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpscholar/325f57611ab25e861511baf5ef44774a to your computer and use it in GitHub Desktop.
Save wpscholar/325f57611ab25e861511baf5ef44774a to your computer and use it in GitHub Desktop.
A Chrome recording converted into a Cypress test.
describe("Connect.tech Demo", () => {
it("tests Connect.tech Demo", () => {
cy.viewport(952, 976);
cy.visit("https://www.google.com/");
cy.get("body > div.L3eUgb > div.o3j99.ikrT4e.om7nvf > form > div:nth-child(1) > div.A8SBwf > div.RNNXgb > div > div.a4bIc > input").click();
cy.get("body > div.L3eUgb > div.o3j99.ikrT4e.om7nvf > form > div:nth-child(1) > div.A8SBwf > div.RNNXgb > div > div.a4bIc > input").type("seo");
cy.type("{enter}");
cy.get("#rso > div:nth-child(5) > div > div > div.Z26q7c.UK95Uc.jGGQ5e > div > a > h3").click();
cy.location("href").should("eq", "https://searchengineland.com/guide/what-is-seo");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment