From 605a3ec1a3dbce14105d1a8576a1aa7f6fd34dfd Mon Sep 17 00:00:00 2001 From: Bukowa Date: Sat, 19 Oct 2024 18:50:54 +0200 Subject: [PATCH] examples: print page source when quickstart assert fails --- selenium/javascript/examples/quick-start.js | 2 +- selenium/javascript/examples/quick-start.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.