Skip to content

Commit

Permalink
Fix canonical URLs in legacy docs (#1635)
Browse files Browse the repository at this point in the history
* Fix canonical URLs in legacy docs

* Fix canonicals for k6-browser
  • Loading branch information
heitortsergent authored Jun 26, 2024
1 parent 3f48e1e commit 80a8223
Show file tree
Hide file tree
Showing 123 changed files with 123 additions and 121 deletions.
1 change: 1 addition & 0 deletions docs/sources/next/set-up/install-k6/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
aliases:
- ../get-started/troubleshooting # docs/k6/<K6_VERSION>/get-started/troubleshooting
- ../get-started/installation/troubleshooting/ # docs/k6/<K6_VERSION>/get-started/installation/troubleshooting
title: 'Troubleshooting'
description: 'Instructions to fix the most common installation issues.'
weight: 200
Expand Down
1 change: 1 addition & 0 deletions docs/sources/v0.52.x/set-up/install-k6/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
aliases:
- ../get-started/troubleshooting # docs/k6/<K6_VERSION>/get-started/troubleshooting
- ../get-started/installation/troubleshooting/ # docs/k6/<K6_VERSION>/get-started/installation/troubleshooting
title: 'Troubleshooting'
description: 'Instructions to fix the most common installation issues.'
weight: 200
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "BrowserContext"
excerpt: "Browser module: BrowserContext Class"
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/
---

`BrowserContext`s provide a way to operate multiple independent sessions, with separate pages, cache, and cookies. A default `BrowserContext` is created when a browser is launched.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'addCookies()'
excerpt: 'Clears context cookies.'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/addcookies/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/addcookies/
---

Adds a list of [cookies](/javascript-api/k6-experimental/browser/browsercontext/cookie) into the [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext/cookie). All pages within this [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext/cookie) will have these [cookies](/javascript-api/k6-experimental/browser/browsercontext/cookie) set.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'clearCookies()'
excerpt: 'Clears context cookies.'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/clearcookies/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/clearcookies/
---

Clears the `BrowserContext`'s cookies.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'clearPermissions()'
excerpt: 'Clears all permission overrides for the BrowserContext.'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/clearpermissions/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/clearpermissions/
---

<Blockquote mod="attention">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'close()'
excerpt: 'Close the BrowserContext and all its pages.'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/close/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/close/
---

Close the `BrowserContext` and all its [page](/javascript-api/k6-experimental/browser/page/)s. The `BrowserContext` is unusable after this call and a new one must be created. This is typically called to cleanup before ending the test.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Cookie"
excerpt: "Browser module: Cookie Class"
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/cookie/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/cookie/
---

Cookie class represents a cookie in the [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'cookies([urls])'
excerpt: 'Retrieves context cookies.'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/cookies/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/cookies/
---

Returns a list of [cookies](/javascript-api/k6-experimental/browser/browsercontext/cookie) from the [BrowserContext](/javascript-api/k6-experimental/browser/browsercontext) filtered by the provided `urls`. If no `urls` are provided, all cookies are returned.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'grantPermissions(permissions[, options])'
excerpt: 'Grants specified permissions to the BrowserContext.'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/grantpermissions/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/grantpermissions/
---

Grants specified permissions to the `BrowserContext`. Only grants corresponding permissions to the given origin if specified.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'newPage()'
excerpt: 'Creates a new page inside this BrowserContext.'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/newpage/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/newpage/
---

Uses the `BrowserContext` to create a new [Page](/javascript-api/k6-experimental/browser/page/) and returns it.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'pages()'
excerpt: 'Returns a list of pages inside this BrowserContext.'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/pages/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/pages/
---

<Blockquote mod="attention">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'setDefaultNavigationTimeout(timeout)'
excerpt: 'Sets the default navigation timeout in milliseconds.'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/setdefaultnavigationtimeout/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/setdefaultnavigationtimeout/
---

Sets the default maximum navigation timeout for [Page.goto()](https://playwright.dev/docs/api/class-page#page-goto).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'setDefaultTimeout(timeout)'
excerpt: 'Sets the default timeout in milliseconds.'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/setdefaulttimeout/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/setdefaulttimeout/
---

Sets the default maximum timeout for all methods accepting a `timeout` option in milliseconds.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'setGeolocation(geolocation)'
excerpt: "Sets the BrowserContext's geolocation."
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/setgeolocation/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/setgeolocation/
---

<Blockquote mod="attention">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'setOffline(offline)'
excerpt: "Toggles the BrowserContext's connectivity on/off."
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/setoffline/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/setoffline/
---

Toggles the `BrowserContext`'s connectivity on/off.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'waitForEvent(event[, optionsOrPredicate])'
excerpt: 'Waits for event to fire and passes its value into the predicate function.'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/browsercontext/waitforevent/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/browsercontext/waitforevent/
---

<Blockquote mod="attention">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ConsoleMessage"
excerpt: "Browser module: ConsoleMessage Class"
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/consolemessage/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/consolemessage/
---

<BrowserDocsWIP/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "ElementHandle"
excerpt: "Browser module: ElementHandle Class"
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/elementhandle/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/elementhandle/
---

<BrowserDocsWIP/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Frame"
excerpt: "Browser module: Frame Class"
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/frame/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/frame/
---

<BrowserDocsWIP/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "JSHandle"
excerpt: "Browser module: JSHandle Class"
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/jshandle/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/jshandle/
---

<BrowserDocsWIP/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Keyboard"
excerpt: "Browser module: Keyboard Class"
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/keyboard/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/keyboard/
---

<BrowserDocsWIP/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Locator"
excerpt: "Browser module: Locator Class"
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/
---

The Locator API makes it easier to work with dynamically changing elements. Some of the benefits of using it over existing ways to locate an element (e.g. `Page.$()`) include:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'check([options])'
excerpt: 'Browser module: locator.check method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/check/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/check/
---

<Blockquote mod="attention">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'click([options])'
excerpt: 'Browser module: locator.click method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/click/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/click/
---

<Blockquote mod="attention">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'dblclick([options])'
excerpt: 'Browser module: locator.dblclick method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/dblclick/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/dblclick/
---

<Blockquote mod="attention">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'dispatchEvent(type, eventInit, [options])'
excerpt: 'Browser module: locator.dispatchEvent method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/dispatchevent/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/dispatchevent/
---

Dispatches HTML DOM event types e.g. `'click'`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'fill(value, [options])'
excerpt: 'Browser module: locator.fill method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/fill/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/fill/
---

Fill an `input`, `textarea` or `contenteditable` element with the provided value.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'focus([options])'
excerpt: 'Browser module: locator.focus method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/focus/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/focus/
---

Calls [focus](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus) on the element, if it can be focused on.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'getAttribute(name, [options])'
excerpt: 'Browser module: locator.getAttribute method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/getattribute/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/getattribute/
---

Returns the element attribute value for the given attribute name.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'hover([options])'
excerpt: 'Browser module: locator.hover method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/hover/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/hover/
---

<Blockquote mod="attention">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'innerHTML([options])'
excerpt: 'Browser module: locator.innerHTML method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/innerhtml/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/innerhtml/
---

Returns the `element.innerHTML`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'innerText([options])'
excerpt: 'Browser module: locator.innerText method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/innertext/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/innertext/
---

Returns the `element.innerText`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'inputValue([options])'
excerpt: 'Browser module: locator.inputValue method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/inputvalue/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/inputvalue/
---

Returns `input.value` for the selected `input`, `textarea` or `select` element.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'isChecked([options])'
excerpt: 'Browser module: locator.isChecked method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/ischecked/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/ischecked/
---

Checks to see if the `checkbox` `input` type is selected or not.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'isDisabled([options])'
excerpt: 'Browser module: locator.isDisabled method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/isdisabled/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/isdisabled/
---

Checks if the element is `disabled`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'isEditable([options])'
excerpt: 'Browser module: locator.isEditable method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/iseditable/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/iseditable/
---

Checks if the element is `editable`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'isEnabled([options])'
excerpt: 'Browser module: locator.isEnabled method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/isenabled/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/isenabled/
---

Checks if the element is `enabled`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'isHidden([options])'
excerpt: 'Browser module: locator.isHidden method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/ishidden/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/ishidden/
---

Checks if the element is `hidden`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'isVisible([options])'
excerpt: 'Browser module: locator.isVisible method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/isvisible/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/isvisible/
---

Checks if the element is `visible`.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'press(key, [options])'
excerpt: 'Browser module: locator.press method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/press/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/press/
---

Press a single key on the keyboard or a combination of keys.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'selectOption(values, [options])'
excerpt: 'Browser module: locator.selectOption method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/selectoption/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/selectoption/
---

<Blockquote mod="attention">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'tap([options])'
excerpt: 'Browser module: locator.tap method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/tap/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/tap/
---

<Blockquote mod="attention">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: 'textContent([options])'
excerpt: 'Browser module: locator.textContent method'
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-experimental/browser/locator/textcontent/
canonicalUrl: https://grafana.com/docs/k6/latest/javascript-api/k6-browser/locator/textcontent/
---

Returns the `element.textContent`.
Expand Down
Loading

0 comments on commit 80a8223

Please sign in to comment.