you don't have use @browser.driver.manage.window.maximize
because you are invoking the driver to write selenium code but watir giving you another syntax which will automatically invokes the above code @browser.window.maximize The definition of maximize includes the above code, you can see here def maximize use { @driver.manage.window.maximize } end On Tuesday, May 2, 2017 at 6:56:21 PM UTC+5:30, christina wrote: > > I believe that the problem comes for what package should I require. > > I use only > require "watir" > > I get an error where the window is not defined. > > Do you know what other packages should I require? > > > A few years ago we used to use: > require 'watir-webdriver' > > > I am still confused about changes. > > > [image: Inline image 1] > > On Tue, May 2, 2017 at 2:11 AM, Paul Denize <deniz...@gmail.com > <javascript:>> wrote: > >> This should work >> >> @browser.driver.window.maximize >> @browser.driver.window.resize_to(900,900) >> >> >> -- >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> watir-...@googlegroups.com <javascript:> >> http://groups.google.com/group/watir-general >> watir-genera...@googlegroups.com <javascript:> >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Watir General" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to watir-genera...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.