-1

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?

Moshe Slavin
  • 5,127
  • 5
  • 23
  • 38
bugCracker
  • 3,656
  • 9
  • 37
  • 58

1 Answers1

0

To maximize the window just use HtmlUnitWindow maximize()

HtmlUnitDriver htmlDriver = new HtmlUnitDriver();
htmlDriver.HtmlUnitWindow().maximize()
Moshe Slavin
  • 5,127
  • 5
  • 23
  • 38