diff --git a/selenium/javascript/examples/quick-start.js b/selenium/javascript/examples/quick-start.js index eab10c0..656e531 100644 --- a/selenium/javascript/examples/quick-start.js +++ b/selenium/javascript/examples/quick-start.js @@ -57,7 +57,7 @@ await driver.wait(until.elementLocated({css: 'body'})); // Get the title. let title = await driver.getTitle(); -assert.equal(title, 'Tauri App'); +assert.equal(title, 'Tauri App', await driver.getPageSource()); // Properly cleanup WebDriver session. // This will close the Tauri window and the WebDriver session. diff --git a/selenium/javascript/examples/quick-start.md b/selenium/javascript/examples/quick-start.md index 40a47f6..8770e22 100644 --- a/selenium/javascript/examples/quick-start.md +++ b/selenium/javascript/examples/quick-start.md @@ -56,7 +56,7 @@ await driver.wait(until.elementLocated({css: 'body'})); // Get the title. let title = await driver.getTitle(); -assert.equal(title, 'Tauri App'); +assert.equal(title, 'Tauri App', await driver.getPageSource()); // Properly cleanup WebDriver session. // This will close the Tauri window and the WebDriver session.