Update README.md
This commit is contained in:
@@ -24,6 +24,22 @@ This project automates the process of navigating to the IPLeiria GISEM platform
|
|||||||
|
|
||||||
3. Add your credentials to the `utils.go` file.
|
3. Add your credentials to the `utils.go` file.
|
||||||
|
|
||||||
|
4. (Optional) If you are using Chromium instead of Chrome you need to add this line to the `main.go` file:
|
||||||
|
|
||||||
|
```go
|
||||||
|
chromedp.ExecPath("path/to/chromium-browser"), // Specify the path to Chromium executable
|
||||||
|
```
|
||||||
|
|
||||||
|
So the result would be (in `main.go`):
|
||||||
|
|
||||||
|
```go
|
||||||
|
opts := append(chromedp.DefaultExecAllocatorOptions[:],
|
||||||
|
chromedp.ExecPath("path/to/chromium-browser"), // Specify the path to Chromium executable
|
||||||
|
chromedp.Flag("headless", headless), // Disable headless mode
|
||||||
|
chromedp.Flag("disable-gpu", headless), // Enable GPU
|
||||||
|
chromedp.Flag("start-maximized", !headless), // Start maximized
|
||||||
|
)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To run the project without building it, execute the following command:
|
To run the project without building it, execute the following command:
|
||||||
|
|||||||
Reference in New Issue
Block a user