Skip to content

Commit

Permalink
examples: print page source when quickstart assert fails
Browse files Browse the repository at this point in the history
  • Loading branch information
bukowa committed Oct 19, 2024
1 parent eae9774 commit 605a3ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion selenium/javascript/examples/quick-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion selenium/javascript/examples/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 605a3ec

Please sign in to comment.