accessibility
This commit is contained in:
24
README.md
24
README.md
@@ -139,11 +139,10 @@ The `--timeout` parameter specifies how many seconds to wait for the URL to load
|
||||
#### Fill a form field
|
||||
|
||||
```bash
|
||||
cremote fill-form --tab="<tab-id>" --selector="#username" --value="user123" [--selection-timeout=5] [--action-timeout=5]
|
||||
cremote fill-form --tab="<tab-id>" --selector="#username" --value="user123" [--timeout=5]
|
||||
```
|
||||
|
||||
The `--selection-timeout` parameter specifies how many seconds to wait for the element to appear in the DOM (default: 5 seconds).
|
||||
The `--action-timeout` parameter specifies how many seconds to wait for the fill action to complete (default: 5 seconds).
|
||||
The `--timeout` parameter specifies how many seconds to wait for the fill operation to complete (default: 5 seconds).
|
||||
|
||||
#### Check/uncheck a checkbox or select a radio button
|
||||
|
||||
@@ -180,26 +179,24 @@ The command automatically detects dropdown elements and tries both option text a
|
||||
#### Upload a file
|
||||
|
||||
```bash
|
||||
cremote upload-file --tab="<tab-id>" --selector="input[type=file]" --file="/path/to/file.jpg" [--selection-timeout=5] [--action-timeout=5]
|
||||
cremote upload-file --tab="<tab-id>" --selector="input[type=file]" --file="/path/to/file.jpg" [--timeout=5]
|
||||
```
|
||||
|
||||
This command automatically:
|
||||
1. **Transfers the file** from your local machine to the daemon container (if running in a container)
|
||||
2. **Uploads the file** to the specified file input element on the web page
|
||||
|
||||
The `--selection-timeout` parameter specifies how many seconds to wait for the element to appear in the DOM (default: 5 seconds).
|
||||
The `--action-timeout` parameter specifies how many seconds to wait for the upload action to complete (default: 5 seconds).
|
||||
The `--timeout` parameter specifies how many seconds to wait for the upload operation to complete (default: 5 seconds).
|
||||
|
||||
**Note**: The file path should be the local path on your machine. The command will handle transferring it to the daemon container automatically.
|
||||
|
||||
#### Submit a form
|
||||
|
||||
```bash
|
||||
cremote submit-form --tab="<tab-id>" --selector="form#login" [--selection-timeout=5] [--action-timeout=5]
|
||||
cremote submit-form --tab="<tab-id>" --selector="form#login" [--timeout=5]
|
||||
```
|
||||
|
||||
The `--selection-timeout` parameter specifies how many seconds to wait for the element to appear in the DOM (default: 5 seconds).
|
||||
The `--action-timeout` parameter specifies how many seconds to wait for the form submission to complete (default: 5 seconds).
|
||||
The `--timeout` parameter specifies how many seconds to wait for the form submission to complete (default: 5 seconds).
|
||||
|
||||
#### Get the source code of a page
|
||||
|
||||
@@ -212,19 +209,18 @@ The `--timeout` parameter specifies how many seconds to wait for getting the pag
|
||||
#### Get the HTML of an element
|
||||
|
||||
```bash
|
||||
cremote get-element --tab="<tab-id>" --selector=".content" [--selection-timeout=5]
|
||||
cremote get-element --tab="<tab-id>" --selector=".content" [--timeout=5]
|
||||
```
|
||||
|
||||
The `--selection-timeout` parameter specifies how many seconds to wait for the element to appear in the DOM (default: 5 seconds).
|
||||
The `--timeout` parameter specifies how many seconds to wait for the element to appear in the DOM (default: 5 seconds).
|
||||
|
||||
#### Click on an element
|
||||
|
||||
```bash
|
||||
cremote click-element --tab="<tab-id>" --selector="button.submit" [--selection-timeout=5] [--action-timeout=5]
|
||||
cremote click-element --tab="<tab-id>" --selector="button.submit" [--timeout=5]
|
||||
```
|
||||
|
||||
The `--selection-timeout` parameter specifies how many seconds to wait for the element to appear in the DOM (default: 5 seconds).
|
||||
The `--action-timeout` parameter specifies how many seconds to wait for the click action to complete (default: 5 seconds).
|
||||
The `--timeout` parameter specifies how many seconds to wait for the click operation to complete (default: 5 seconds).
|
||||
|
||||
#### Close a tab
|
||||
|
||||
|
||||
Reference in New Issue
Block a user