@ulixee/execute-js-plugin
TypeScript icon, indicating that this package has built-in type declarations

2.0.0-alpha.31 • Public • Published
import HeroCore from '@ulixee/hero-core';
import Hero from '@ulixee/hero';
import ExecuteJsPlugin from '@ulixee/execute-js-plugin';

HeroCore.use(ExecuteJsPlugin);

(function run() {
    const hero = new Hero();
    hero.use(ExecuteJsPlugin);
    await hero.goto('https://news.ycombinator.com');
    const title = await hero.executeJs(() => {
         return window.document.title;
    });
})();

Readme

Keywords

none

Package Sidebar

Install

npm i @ulixee/execute-js-plugin

Homepage

ulixee.org

Weekly Downloads

306

Version

2.0.0-alpha.31

License

MIT

Unpacked Size

33.5 kB

Total Files

25

Last publish

Collaborators

  • blakebyrnes
  • calebjclark