Skip to content

Commit

Permalink
Fix JSDoc example for getText command. (#4043)
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 authored Mar 8, 2024
1 parent a441ca4 commit 4ac5131
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/api/web-element/commands/getText.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
* @example
* export default {
* demoTest(browser: NightwatchAPI): void {
* const result = browser.element('#main ul li a.first').getText();
* .assert.valueEquals('custom text');
* browser.element('#main ul li a.first')
* .getText()
* .assert.contains('custom text');
* },
*
* async demoTestAsync(browser: NightwatchAPI): Promise<void> {
Expand Down

0 comments on commit 4ac5131

Please sign in to comment.