I am running selenium test using HtmlUnitDriver but at some point test keep failing. Is there any way we can maximize the window size in HtmlUnitDriver?
Asked
Active
Viewed 176 times
-1

Moshe Slavin
- 5,127
- 5
- 23
- 38

bugCracker
- 3,656
- 9
- 37
- 58
-
At what point does it fail? – Moshe Slavin Aug 23 '20 at 10:34
1 Answers
0
To maximize the window just use HtmlUnitWindow maximize()
HtmlUnitDriver htmlDriver = new HtmlUnitDriver();
htmlDriver.HtmlUnitWindow().maximize()

Moshe Slavin
- 5,127
- 5
- 23
- 38