@jkob/chrome
v1.3.1
Published
Headless chrome tools
Downloads
15
Readme
Usage
import { isElementVisible } from "@jkob/chrome";
const isVisible = await isElementVisible(PuppeteerPage, "div.selector");
const isVisible = await isElementVisible(PuppeteerPage, "div.selector", 2000);
import { repeatWhileVisible } from "@jkob/chrome";
await repeatWhileVisible(PuppeteerPage, "div.selector", () => {
// do something
});