Skip to content

Commit

Permalink
Merge pull request #410 from angrykoala/dev
Browse files Browse the repository at this point in the history
2.6.0
  • Loading branch information
angrykoala authored Aug 6, 2019
2 parents d4fc8cf + d04016a commit 663e2de
Show file tree
Hide file tree
Showing 21 changed files with 569 additions and 494 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2.6.0 / 2019-08-06
==================

* Browser.text will return newlines on </br>
* DefaultTimeout option on create browser
* Injection scripts are now added through evaluate, so are not checked by CSP
* Static config file removed
* Opening new tabs will no longer reload the page

2.5.1 / 2019-07-27
==================

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ Will create and return a promise to a [Browser](#Browser) instance. It will auto
* `dismissAllDialogs`: This will automatically dismiss any native dialog (`alert`, `prompt`) when appearing.
* `bypassCSP: true`: If set to false, puppeteer may fail if Content Security Policy is set in the page.
* `proxyServer: null`: If defined, Chromium will run with the option `--proxy-server` set to the given address.
* `defaultTimeout: 500`: Sets the default timeout for "wait" methods, except `browser.wait()`.
* `cache: true`: If true, requests cache will be enabled.
* Any settings that can be passed to Puppeteer can be passed to createBrowser, for example:
* `headless: true`: If true, the browser will run on headless mode.
Expand Down Expand Up @@ -299,7 +300,7 @@ await browser.pages(); // length is 2
await browser.selectPage(1); // goes to newly opened tab
```

> Due to some limitation, in order for Wendigo to work properly, changing page with `selectPage` will cause the given page to reload.
> CSP bypass will not be enabled in the newly opened tabs. If you rely on it, it may be necessary to reload the tab after it has been opened with `browser.refresh`
**closePage(index: number)**
Closes the page with given index, if the closed page is the current active page, it will change to the new page with index 0 (reloading it in the process). If no more pages exists, the browser will close with `browser.close()` automatically.
Expand Down
12 changes: 0 additions & 12 deletions config.ts

This file was deleted.

261 changes: 0 additions & 261 deletions injection_scripts/selector_finder.js

This file was deleted.

Loading

0 comments on commit 663e2de

Please sign in to comment.