From: Ahmed A. <asa...@ya...> - 2015-04-03 07:09:41
|
Hi Arya, How about: final WebWindow topLevelWindow = webClient.getTopLevelWindows().get(0); topLevelWindow.setInnerWidth(10); topLevelWindow.setInnerHeight(20); topLevelWindow.setOuterWidth(30); topLevelWindow.setOuterHeight(40); Yours,Ahmed From: Arya Farzan <ary...@gm...> To: htm...@li... Sent: Friday, April 3, 2015 8:58 AM Subject: [Htmlunit-user] Set window width or resolution? Is it possible to set the width or screen resolution of a HTMLUnit WebClient?After some Googling, I did find a class in HtmlUnit called WebWindow, which contains methods such as setOuterWidth, but I am not sure how to use these methods. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Htmlunit-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlunit-user |