https://github.com/yglukhov/webdriver
Nim webdriver for Chrome and Firefox
https://github.com/yglukhov/webdriver
Last synced: 7 months ago
JSON representation
Nim webdriver for Chrome and Firefox
- Host: GitHub
- URL: https://github.com/yglukhov/webdriver
- Owner: yglukhov
- License: mit
- Created: 2019-09-22T08:13:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-28T12:32:43.000Z (about 2 years ago)
- Last Synced: 2024-10-14T15:04:34.735Z (12 months ago)
- Language: Nim
- Size: 12.7 KB
- Stars: 17
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webdriver
Nim webdriver for Chrome and Firefox## Usage
```nim
import asyncdispatch
import webdriver/[chromedriver, firefox]proc test() {.async.} =
let d = newFirefoxDriver()
await d.startSession()
await d.setUrl("https://nim-lang.org")
let h1 = await d.getElementByTagName("h1")
let text = await d.getElementText(h1)
await d.close()
echo textwaitFor test()
```