Advertisement
EntropyStarRover

PlayWright test syntax

Mar 9th, 2021
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. it ("description", async()=>{
  2. await page.goto("http://localhost:3000");
  3. await page.click("text=whatever");
  4. await page.waitForSelector(".extraP");
  5. const visible=await.isVisible(".extraP");
  6. expect(visible).to.be.true;
  7.  
  8. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement