Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Add support for page#reload #485

Merged
merged 1 commit into from Jun 15, 2016
Merged

Add support for page#reload #485

merged 1 commit into from Jun 15, 2016

Conversation

elias-winberg
Copy link
Contributor

Proposed changes in this pull request

The commit adds support for page#reload(). As of right now you need to evaluate the function 'location.reload()' in the context of the web page to perform a reload.

Checklist

  • New tests have been added
  • npm test passes successfully
  • Documentation has been updated

@amir20 to review


yield page.open('http://localhost:8888/test');
yield page.on('onNavigationRequested', function(url, type) {
if (type === 'Reload') {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish there was a better way to test this so that it doesn't rely on a functionality of another method. I don't think there is though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, I couldn't think of any other way to verify that the page is actually reloading.

@amir20 amir20 merged commit 4dd6808 into amir20:master Jun 15, 2016
@amir20
Copy link
Owner

amir20 commented Jun 15, 2016

Merged. Will release Friday.

@amir20
Copy link
Owner

amir20 commented Jun 17, 2016

I just released 2.1.6. It should be available soon.

Edit: Arr. I can't figure out why the build is breaking. Working on it.

@amir20
Copy link
Owner

amir20 commented Jun 17, 2016

I had to revert to an older eslint due to eslint/eslint#6451. I released 2.1.7 instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants