Skip to content

Commit

Permalink
feat: tweak docs for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Aug 30, 2022
1 parent 6452075 commit 354839d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/execute-js/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
```
import HeroCore from '@ulixee/hero-core';
import Hero from '@ulixee/hero';
import ExecuteJsPlugin from '@ulixee/execute-js-plugin';
Hero.use(ExecuteJsPlugin);
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;

0 comments on commit 354839d

Please sign in to comment.