The error is saying that the specified element is located in the DOM, but that there appears to be something that is keeping the element from being seen on the page. Changing window size can affect this because it changes the CSS parameters.
Try to grab a screenshot to determine what is hiding it. Or try setting a specific window size rather than maximize. Different operating systems handle maximize command differently. On Fri, Apr 13, 2018, 9:03 PM Jeff Fagot <[email protected]> wrote: > Hello all, > > I am very confused by what I am experiencing. > I am using watir 6.10.2 with firefox (did not try a different browser) > > By default my window opens up not maximized but still takes the > full-screen and the element I want to interact with is always present to me > as a user no matter what. > For some reason, running my test as is => works fine > BUG? : When I do *@browser.window.maximize* and run the same test => It > fails stating the element is located but not present ?! > > I have a hard time to get my head around this, has anyone experienced this > before? > > Thanks > JFF > > -- > -- > Before posting, please read > https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group. > > In short: search before you ask, be nice. > > [email protected] > http://groups.google.com/group/watir-general > [email protected] > --- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- Before posting, please read https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
