From 849e93f1763dadc65df94fdbd41b76167b7d752b Mon Sep 17 00:00:00 2001 From: Blake Byrnes Date: Tue, 13 Dec 2022 09:44:28 -0500 Subject: [PATCH] fix(docs): find/replace issues with .md extensions --- docs/advanced-client/frame-environment.md | 12 ++++++------ docs/basic-client/interactions.md | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/advanced-client/frame-environment.md b/docs/advanced-client/frame-environment.md index b433c8124..259539c45 100644 --- a/docs/advanced-client/frame-environment.md +++ b/docs/advanced-client/frame-environment.md @@ -113,7 +113,7 @@ const response = await fetch(request.md); ## Methods -### frameEnvironment.fetch *(requestInput, requestInit.md)*
W3C
{#fetch} +### frameEnvironment.fetch *(requestInput, requestInit)*
W3C
{#fetch} Perform a native "fetch" request in the current frame environment. @@ -154,7 +154,7 @@ const response = await mainFrame.fetch(postUrl, { }); ``` -### frameEnvironment.getFrameEnvironment *(frameElement.md)* {#get-frame-environment} +### frameEnvironment.getFrameEnvironment *(frameElement)* {#get-frame-environment} Get the [FrameEnvironment](../advanced-client/frame-environment.md) object corresponding to the provided HTMLFrameElement or HTMLIFrameElement. Use this function to attach to the full environment of the given DOM element. @@ -169,12 +169,12 @@ await hero.goto('https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ifram const { document } = hero.activeTab; const iframeElement = document.querySelector('iframe.interactive'); -const iframe = await hero.getFrameEnvironment(iframeElement.md); +const iframe = await hero.getFrameEnvironment(iframeElement); const h4 = await iframe.document.querySelector('h4').textContent; // should be something like HTML demo: