Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page: fix page.scrollIntoViewIfNeeded method #245

Merged
merged 2 commits into from Aug 15, 2022
Merged

Conversation

YusukeIwaki
Copy link
Owner

Now scrollIntoViewIfNeeded just uses CDP command.
puppeteer/puppeteer#8631

});
if (visibleRatio !== 1.0)
element.scrollIntoView({block: 'center', inline: 'center', behavior: 'instant'});
}
return false;
}
JAVASCRIPT
error = evaluate(js, @page.javascript_enabled) # returns String or false
Copy link
Owner Author

Choose a reason for hiding this comment

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

@page.javascript_enabled should not be passed here

@YusukeIwaki YusukeIwaki marked this pull request as ready for review August 15, 2022 00:27
@YusukeIwaki YusukeIwaki merged commit 3114516 into main Aug 15, 2022
@YusukeIwaki YusukeIwaki deleted the porting/8631 branch August 15, 2022 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant