Skip to content

Commit

Permalink
Merge pull request #16 from waldoapp/khalil/doc-intercept-network
Browse files Browse the repository at this point in the history
Add documentation about interceptNetwork
  • Loading branch information
KhalilBell authored Dec 11, 2024
2 parents bf0deeb + 2bd8239 commit ee30d56
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -427,13 +427,34 @@ This key allows you to specify the language in which the app will run during the
}
```

Please not that each device supports a different set of languages. To determine which languages a specific device
Please note that each device supports a different set of languages. To determine which languages a specific device
supports, you can make a call to the []`GET /devices` endpoint](https://docs.waldo.com/reference/getdevices)
on `https://core.waldo.com` and check `supportedLanguages`.

Type: `string` <br/>
Default: `en`

### Intercept Network

The `interceptNetwork` field determines whether Waldo intercepts and displays the content of HTTP calls made by the application during a session.
To enable or disable `interceptNetwork` for a specific session, include it in the `waldo:options` object during session creation:

```ts
{
"capabilities": [{
"waldo:options": {
"interceptNetwork": true
}
}]
}
```

If you don't specify the `interceptNetwork` field, the default value is the one set on the application level ([check here](https://app.waldo.com/applications/0/configurations/network)) under the Network Application Configuration section.
This setting applies globally to all sessions for the application.

Type: `boolean` <br/>
Default: The value configured for [the application](https://app.waldo.com/applications/0/configurations/network).

## Additional commands

In addition to configuring Waldo as a remote WebDriver endpoint this package also adds the following commands on the
Expand Down
3 changes: 3 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ export type WaldoCapabilityOptions = WaldoSharedOptions & {
/** Name of the session that will appear in Waldo session history */
displayName?: string;

/** Whether to intercept the network for this specific Waldo session */
interceptNetwork?: boolean;

/**
* Type of automation to use
*
Expand Down

0 comments on commit ee30d56

Please sign in to comment.