Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ultraji/teemo
A simple to use and efficient Web Automation Tool.
https://github.com/ultraji/teemo
selenium webdriver
Last synced: 3 months ago
JSON representation
A simple to use and efficient Web Automation Tool.
- Host: GitHub
- URL: https://github.com/ultraji/teemo
- Owner: ultraji
- License: apache-2.0
- Created: 2023-11-08T07:20:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-09T07:38:10.000Z (11 months ago)
- Last Synced: 2024-03-09T08:36:17.367Z (11 months ago)
- Topics: selenium, webdriver
- Language: Rust
- Homepage:
- Size: 726 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# teemo
A simple to use and efficient Web Automation Tool.
![demo](.asset/demo.gif)
**teemo** allows you to do some web automation action(such as click and so on) and crawl some information from web. You can define your steps as follows:
```yaml
webDriver:
url: 'http://localhost:9515'
capabilities: |
{
"browserName": "chrome",
"goog:chromeOptions": {
"args": ["--headless", "--window-size=1920,1080"]
}
}
steps:
- action: Goto
url: https://google.com
- action: Click
locator: {strategy: XPath, expr: '//*[@id="L2AGLb"]'}
allowSkip: true
- action: Wait
timeout: 3
- action: SendKeys
value: [ 'ultraji', 'Key::Enter']
locator: { strategy: XPath, expr: '//*[@id="APjFqb"]' }
- action: Wait
timeout: 3
- action: GetElemText
locator: { strategy: XPath, expr: '//*[@id="rso"]/div[1]/div/div/div[1]/div/div/span/a/div/div/div/cite' }
resourceName: first_item
content: "This is first search result item of ultraji. It's ${first_item}. "
```then it will run automatically. And finally it will return as follows:
```text
This is first item of searching ultraji. It's https://github.com › ultraji.
```# usage
teemo uses [webdriver](https://www.selenium.dev/documentation/webdriver/) under the hood. So please make sure that webdriver has been installed. (For example, if you are using chrome, you can download **the same version** [chrome-webdriver](https://chromedriver.chromium.org/) as your browser.)You can use the following command:
```shell
chromedriver &
teemo -c teemo.yaml
```# more info
* More info about webdriver capabilities. [https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities](https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities)