Scroll option page for Firefox 60

This commit is contained in:
Shin'ya UEOKA 2019-09-25 13:32:12 +00:00
parent 8e5e6bfcdd
commit fff371ae6e
2 changed files with 6 additions and 1 deletions

View file

@ -32,5 +32,8 @@ export default class OptionPage {
// TODO validate current page
return new JSONOptionPage(this.lanthan);
}
}
scrollTo(x: number, y: number): Promise<void> {
return this.webdriver.executeScript(`window.scrollTo(${x}, ${y})`);
}
}