This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Find the 'compute' iframe window within the document if it isn't already the current window in devtools. | |
const computeWindow = document.querySelector("#compute-wrapper") | |
? window | |
: document.querySelector("#sandbox-compute-container")?.contentWindow; | |
if (!computeWindow) throw new Error("Failed to find iframe window"); | |
const createBtn = computeWindow.document.querySelector( | |
".oui-savant__Panel--Footer .oui-button.oui-button-primary" | |
); | |
if (!createBtn || createBtn.textContent !== "Create") |