Page.getNavigationHistoryReturns navigation history for the current page.
| Name | Type | Description |
|---|---|---|
currentIndex | integer | Index of the current navigation history entry. |
entries | array | Array of navigation history entries. |
{
"id": 1,
"method": "Page.getNavigationHistory"
}
{
"id": 1,
"result": {
"currentIndex": 1,
"entries": []
}
}
const result = await send('Page.getNavigationHistory');
console.log(result);
// {"currentIndex": 1, "entries": []}