Search code examples
rubywatirwatir-webdriver

Watir resize_to don't work anymore


Hello i've some trouble about windows managing with Watir gem in Ruby.

I've working with watir '6.2.1' until I finished to write my program, and I always got an error that is "Element is not clickable at point (x, y)..." never at the same location, whereas really nothing was on the button that i want to focus.

In this case, i just needed to update watir to don't have this error again. I think that this error was resolved, but i've the same error, that I already had, when i want to click exactly in the same location as before.

Before i've update watir to the last update, i used browser.window.resize_to(1366, 786), it's worked and i did not have the error anymore.

Now, it's not working. My window does not resize anymore.. When i put back the old version, it's the same issue.

I'm sorry about my bad english, i hope that you understand what i want to explain.


Solution

  • Most likely you need to update your chromedriver. I get bit by that every so often because the browser will update automatically and without alerting you to that fact.. So it's not uncommon to have the browser get 'ahead' of chromedriver and things stop working or start working in strange weird ways until you realize what is going on and update chromedriver.