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;
});
})();
@ulixee/execute-js-plugin
2.0.0-alpha.31 • Public • Published Readme
Keywords
nonePackage Sidebar
Install
npm i @ulixee/execute-js-plugin
Homepage
Weekly Downloads
306
Version
2.0.0-alpha.31
License
MIT
Unpacked Size
33.5 kB
Total Files
25