Skip to content

SamKirkland/Puppeteer-exporter-for-Katalon-Recorder

Repository files navigation

Plugin for Katalon Recorder

A chrome extension that allows recording your actions then exporting/replaying them as puppeteer code.

If you're looking for a way of easily creating UI tests this is what you have been looking for.

You can download the plugin from the chrome extension web store

Preview of the chrome extension working

Fixing common issues:

  1. Error: Execution context was destroyed, most likely because of a navigation.
    • You likely need to add await page.waitfornavigation(); after your page.click() etc...

Supported Katalon Commands:

  • openpage.goto
  • doubleclickelement.click({ clickCount: 2 });
  • clickelement.click();
  • storelet variable = value;
  • typeelement.type();
  • pausepage.waitFor();
  • mouseoverpage.hover();
  • deleteallvisiblecookiespage.deleteCookie(await page.cookies());
  • capturescreenshotpage.screenshot({ path: 'name.png' });
  • captureentirepagescreenshotpage.screenshot({ path: 'name.png', fullPage: true });
  • bringbrowsertoforegroundpage.bringToFront();
  • refreshpage.reload();
  • echoconsole.log();
  • getpage.goto();
  • comment// comment
  • submitpage.evaluate(form => form.submit(), formElement);
  • sendkeyspage.keyboard.press();
  • selectframeframes.find(f => f.name() === 'targetName');
  • selectwindow
  • assertelementpresent
  • verifyelementpresent
  • waitforpagetoload
  • waitforvisiblepage.waitForXPath('target', { visible: true });