Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore committed May 24, 2024
1 parent 81318b3 commit 659b0e0
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
2 changes: 1 addition & 1 deletion types/core/engine/command/addText.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 19 additions & 1 deletion types/core/engine/command/mouse/singleClick.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,31 @@ export class SingleClick {
byPartialLinkText(text: string): Promise<void>;
/**
* Clicks on a link whose visible text contains the given substring and waits on the
* page complete checl.
* page complete check.
*
* @async
* @param {string} text - The substring of the visible text of the link to click.
* @returns {Promise<void>} A promise that resolves when the click action is performed.
* @throws {Error} Throws an error if the link is not found.
*/
byPartialLinkTextAndWait(text: string): Promise<void>;
/**
* Clicks on a element with a specific id.
*
* @async
* @param {string} id - The id of the link to click.
* @returns {Promise<void>} A promise that resolves when the click action is performed.
* @throws {Error} Throws an error if the id is not found.
*/
byId(id: string): Promise<void>;
/**
* Clicks on a element with a specific id and wait on the page complete check
*
* @async
* @param {string} id - The id of the link to click.
* @returns {Promise<void>} A promise that resolves when the page has completed.
* @throws {Error} Throws an error if the id is not found.
*/
byIdAndWait(id: string): Promise<void>;
}
//# sourceMappingURL=singleClick.d.ts.map
2 changes: 1 addition & 1 deletion types/core/engine/command/mouse/singleClick.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion types/core/engine/command/wait.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class Wait {
*/
private pageCompleteCheck;
/**
* Waits for an element with a specific ID to appear within a maximum time.
* Waits for an element with a specific ID to be located within a maximum time.
*
* @async
* @param {string} id - The ID of the element to wait for.
Expand All @@ -24,6 +24,16 @@ export class Wait {
* @throws {Error} Throws an error if the element is not found within the specified time.
*/
byId(id: string, maxTime: number): Promise<void>;
/**
* Waits for an element with a specific ID to be located and visible within a maximum time.
*
* @async
* @param {string} id - The ID of the element to wait for.
* @param {number} maxTime - Maximum time to wait in milliseconds.
* @returns {Promise<void>} A promise that resolves when the element is found or the time times out.
* @throws {Error} Throws an error if the element is not found within the specified time.
*/
byIdAndVisible(id: string, maxTime: number): Promise<void>;
/**
* Waits for an element located by XPath to appear within a maximum time.
*
Expand Down
2 changes: 1 addition & 1 deletion types/core/engine/command/wait.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 659b0e0

Please sign in to comment.