diff options
author | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-09-25 13:32:12 +0000 |
---|---|---|
committer | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-09-25 13:32:12 +0000 |
commit | fff371ae6e7bb78c4c53adfe08751dc3a0bd7c10 (patch) | |
tree | c2de088ce8bb707ed5fd0767101f66e63286039a /e2e/lib | |
parent | 8e5e6bfcdd45f9e2cd572e02eb4fad527a0094df (diff) |
Scroll option page for Firefox 60
Diffstat (limited to 'e2e/lib')
-rw-r--r-- | e2e/lib/OptionPage.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/e2e/lib/OptionPage.ts b/e2e/lib/OptionPage.ts index 6b66f41..c183b06 100644 --- a/e2e/lib/OptionPage.ts +++ b/e2e/lib/OptionPage.ts @@ -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})`); + } +} |