Skip to content
Snippets Groups Projects
Commit dea53962 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Force 1024x768 window size

parent b66f4cfd
No related branches found
No related tags found
No related merge requests found
......@@ -37,10 +37,17 @@ class SeleniumHelper {
}
loadUri (uri) {
const WINDOW_WIDTH = 1024;
const WINDOW_HEIGHT = 768;
return this.driver
.get(`file://${uri}`)
.then(() => (
this.driver.executeScript('window.onbeforeunload = undefined;')
))
.then(() => (
this.driver.manage()
.window()
.setSize(WINDOW_WIDTH, WINDOW_HEIGHT)
));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment