Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/4thel00z/seleniumctl

A versatile CLI tool built with Go that uses Selenium WebDriver to automate browser actions. Supports multiple browsers (Firefox, Chrome) and includes features like headless mode, automated form filling, interaction logging, screenshots, and more. Easily configure workflows via JSON inputs, with full support for Selenium's action types.
https://github.com/4thel00z/seleniumctl

automation cli go selenium selenium-webdriver testing webdriver

Last synced: 14 days ago
JSON representation

A versatile CLI tool built with Go that uses Selenium WebDriver to automate browser actions. Supports multiple browsers (Firefox, Chrome) and includes features like headless mode, automated form filling, interaction logging, screenshots, and more. Easily configure workflows via JSON inputs, with full support for Selenium's action types.

Awesome Lists containing this project

README

        

# seleniumctl

## Motivation

I hate writing bespoke selenium code.
It's boring and the API is ugly and very hard to remember.

This tool solves this, it is a cli that consumes a json format which encodes selenium steps.
It comes with a browser extension that records user interactions and formats it, so it fits into the format mentioned.

Beware, the browser extension is not feature complete but it does a pretty good job already.
Also, there is only an extension written for firefox.

## Usage

Compile and install via:

```
go install github.com/4thel00z/seleniumctl/...@latest
```

```
echo '[
{
"action": "navigate",
"url": "https://google.de",
"timestamp": 1726532349420
}
] | seleniumctl'
```

Optional: Install the browser extension by going to [the debugging panel](about:debugging#/runtime/this-firefox).

## License

This project is licensed under the GPL-3 license.