Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sametcodes authored Oct 11, 2022
1 parent b48adf0 commit aa00c8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ In the second scenario, the interaction function that triggers the wanted reques
})();
```

You can see original and replayed requests on the network tab in CDP.

<img width="675" alt="Screen Shot 2022-10-11 at 9 40 24 AM" src="https://user-images.githubusercontent.com/9467273/195022533-cc08c0c6-b9e1-45de-8289-8278edc132bf.png">


## API

#### `page.catchRequest(PatternObject, triggerFunction)`
Expand All @@ -60,4 +65,4 @@ The plugin provides a function as `.catchRequest(PatternObject, triggerFunction)

#### `request.replay(RequestInit?)`

The `.replay()` method takes an optional argument as an extended version of [`RequestInit`](https://microsoft.github.io/PowerBI-JavaScript/interfaces/_node_modules_typedoc_node_modules_typescript_lib_lib_dom_d_.requestinit.html) object that includes functionated version of strign parameters such `url`, `method` and `headers`, and `body`.
The `.replay()` method takes an optional argument as an extended version of [`RequestInit`](https://microsoft.github.io/PowerBI-JavaScript/interfaces/_node_modules_typedoc_node_modules_typescript_lib_lib_dom_d_.requestinit.html) object that includes functionated version of strign parameters such `url`, `method` and `headers`, and `body`.

0 comments on commit aa00c8a

Please sign in to comment.