diff options
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})`); + } +} |