Skip to content

Commit

Permalink
Added live preview
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeSavefrogs committed Feb 15, 2022
1 parent 8b241d0 commit c73bd59
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Used internally by [`SeleniumEngine.waitForElementPresent()`](#seleniumenginewai
})()
```


#### `SeleniumEngine.waitForElementPresent(cssSelector, timeout_ms)`
**Pauses** the execution of the current function until an **element** matching the provided CSS selector is **found**.

Expand All @@ -119,6 +120,7 @@ window.setTimeout(() => {
})()
```


#### `SeleniumEngine.waitForElementNotPresent(cssSelector, timeout_ms)`
**Pauses** the execution of the current function until an **element** matching the provided CSS selector is **no longer found**

Expand Down Expand Up @@ -149,6 +151,7 @@ window.setTimeout(() => {
})()
```


#### `SeleniumEngine.sleep(ms)`
**Pauses** the execution of the current function for the number of **milliseconds** passed as parameter.

Expand All @@ -162,3 +165,5 @@ window.setTimeout(() => {
console.log("Operation 2");
})()
```

[*See it live*](https://runkit.com/lukesavefrogs/selenium-engine-js-sleep)

0 comments on commit c73bd59

Please sign in to comment.