Chapter 8: verify

This commit is contained in:
Beth Griggs
2020-07-01 04:06:20 +01:00
parent a900e9de68
commit 98bc761e2a
12 changed files with 24 additions and 20 deletions
+1 -1
View File
@@ -5,8 +5,8 @@ async function runTest() {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto("https://example.com");
const title = await page.$eval("h1", (el) => el.innerText);
console.log("Title value:", title);
assert.equal(title, "Example Domain");