# forward

Go forward one entry in the history of this tab or window, like the browser's forward button, and wait until that page is ready (following the `pageLoadStrategy` capability, like `browser.forward()`). Other tabs keep their page.

Only a top-level browsing context has its own history, a frame rejects.

## Usage[​](#usage "Direct link to Usage")

```
const context = await browser.url('https://webdriver.io')

await context.forward()
```

## Example[​](#example "Direct link to Example")

forward.js

```
it('goes forward in one tab', async () => {

    const page = await browser.url('https://webdriver.io')

    await page.navigate('https://webdriver.io/docs/api')

    await page.back()



    await page.forward()

    console.log(await page.getUrl()) // outputs: "https://webdriver.io/docs/api/"

})
```
