-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Problem:
Right now visualTest didn't provide any API for page scroll. The only thing which you can do is open the page and take screenshot right after that.
visualTest({
url: basicPageUrl,
width: 640,
height: 480,
missingBaseline: 'snapshot'
}),In other tests I can write this:
registerSuite({
name: 'longPage',
'footer': function () {
return this.remote
.get(longPageUrl)
.setWindowSize(height, width)
.touchScroll(null, null, offset)
.takeScreenshot()
.then(assertVisuals(this, {
missingBaseline: 'snapshot'
}));
}
});But the "touchScroll" didn't guarantee you that you scroll to the right position.
And seems that it's didn't wait for scroll complete.
Questions:
- How I should scroll page when I write test manually, without "visualTest"?
- Is it possible to provide API for making screenshot of specified part of the page?
Metadata
Metadata
Assignees
Labels
No labels