Re[2]: [wtr-general] Re: Installing the IEDriverServer
Thank you Jim for your answer and apologies for giving you hard time/ I'm new in programming overall and in Ruby particularly. From the stuff i browsed in inet that article was closest to my problem and that's why i decided to ask for help here. So thank you one more time and sorry for troubles :) Среда, 16 января 2013, 11:51 -08:00 от Jim Evans james.h.evans...@gmail.com: Normally I'd say, Start a new thread; don't hijack other peoples', but I'm too tired to argue about it. How to solve the problem is to set the browser zoom level to 100%. That is to say, open IE manually, and type Control+0 (that's hold the control key down while typing the number zero). That resets the zoom level to 100%. From the WebDriver side of things, there are ways you can tell the IE driver to ignore the zoom level, but I don't know how to set those in the Watir API. --Jim On Wednesday, January 16, 2013 11:46:47 AM UTC-5, Sergii Nadieiev wrote: What about next? I got error Unexpected error launching Internet Explorer. Browser zoom level was set to 139%. It should be set to 100% on the line browser = Watir::Browser.new :ie Any suggestions how to fix it? On Thursday, August 23, 2012 1:27:32 PM UTC+3, Željko Filipin wrote: On Wed, Aug 22, 2012 at 11:36 PM, Tony Chamberlain chamberla...@gmail.com wrote: OK I downloaded, installed and ran IEDriverServer.exe You do not have to run the exe file. Just start IE with something like this: require watir-webdriver browser = Watir::Browser.new :ie Željko -- filipin.eu -- 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 -- 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
Re[2]: [wtr-general] Re: Installing the IEDriverServer
I don't want to leave you with the impression that this isn't a very helpful place to get answers. It is, and answering your question was no trouble at all. In the future though, it's best to start a new thread for a new question. :) -- 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
[wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved
Ok, I managed to get better results and I have more details on the issue I'm having. I noticed that when screenshot method does minimize-maximize operation, minimized window goes partly off the screen. So I used browser.window.move_to 0,0 and it worked much better: page on screenshot now is much less cropped but still cropped (especially at the bottom). So I started to play with browser.window.resize_to method and found that the best results I get when I set browser size slightly bigger then screen resolution (e.g. with 1366x768 resolution the best screenshot I managed to make was with browser size 1374x816). Better but not perfect: e.g. I can see scrollbars on the sides of screenshot (application I'm testing is scaled depending on window size and when this size is changed from higher to lower there is a moment when scrollbars are shown). But as I understand screenshot method should automatically scroll the page anyway, right? Any idea where can be a problem? Is there a way how to make screenshots without resizing (even if page is not fully rendered still possibly results can be better)? Or may be there is alternative method of making a screenshot on IE? -- 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
Re: [wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved
One question about the screenshot capability: Is it specific to a certain OS or will it work on Windows, OSX, Linux? From: Evgeny Shavkunov dmoroz.thr...@gmail.com To: watir-general@googlegroups.com Sent: Thursday, January 17, 2013 2:07 AM Subject: [wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved Ok, I managed to get better results and I have more details on the issue I'm having. I noticed that when screenshot method does minimize-maximize operation, minimized window goes partly off the screen. So I used browser.window.move_to 0,0 and it worked much better: page on screenshot now is much less cropped but still cropped (especially at the bottom). So I started to play with browser.window.resize_to method and found that the best results I get when I set browser size slightly bigger then screen resolution (e.g. with 1366x768 resolution the best screenshot I managed to make was with browser size 1374x816). Better but not perfect: e.g. I can see scrollbars on the sides of screenshot (application I'm testing is scaled depending on window size and when this size is changed from higher to lower there is a moment when scrollbars are shown). But as I understand screenshot method should automatically scroll the page anyway, right? Any idea where can be a problem? Is there a way how to make screenshots without resizing (even if page is not fully rendered still possibly results can be better)? Or may be there is alternative method of making a screenshot on IE? -- 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 -- 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
Re: [wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved
It works on all. On Thursday, January 17, 2013 1:33:28 PM UTC-5, johnssn wrote: One question about the screenshot capability: Is it specific to a certain OS or will it work on Windows, OSX, Linux? -- *From:* Evgeny Shavkunov dmoroz...@gmail.com javascript: *To:* watir-...@googlegroups.com javascript: *Sent:* Thursday, January 17, 2013 2:07 AM *Subject:* [wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved Ok, I managed to get better results and I have more details on the issue I'm having. I noticed that when screenshot method does minimize-maximize operation, minimized window goes partly off the screen. So I used browser.window.move_to 0,0 and it worked much better: page on screenshot now is much less cropped but still cropped (especially at the bottom). So I started to play with browser.window.resize_to method and found that the best results I get when I set browser size slightly bigger then screen resolution (e.g. with 1366x768 resolution the best screenshot I managed to make was with browser size 1374x816). Better but not perfect: e.g. I can see scrollbars on the sides of screenshot (application I'm testing is scaled depending on window size and when this size is changed from higher to lower there is a moment when scrollbars are shown). But as I understand screenshot method should automatically scroll the page anyway, right? Any idea where can be a problem? Is there a way how to make screenshots without resizing (even if page is not fully rendered still possibly results can be better)? Or may be there is alternative method of making a screenshot on IE? -- 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: -- 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
Re: [wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved
Awesome! Thanks... From: Dan dfra...@gmail.com To: watir-general@googlegroups.com Cc: John Fitisoff jfitis...@yahoo.com Sent: Thursday, January 17, 2013 10:47 AM Subject: Re: [wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved It works on all. On Thursday, January 17, 2013 1:33:28 PM UTC-5, johnssn wrote: One question about the screenshot capability: Is it specific to a certain OS or will it work on Windows, OSX, Linux? From: Evgeny Shavkunov dmoroz...@gmail.com To: watir-...@googlegroups.com Sent: Thursday, January 17, 2013 2:07 AM Subject: [wtr-general] Re: Watir-webdriver - Screenshots - Browser is minimised before screeshot is taken and only part of the page is saved Ok, I managed to get better results and I have more details on the issue I'm having. I noticed that when screenshot method does minimize-maximize operation, minimized window goes partly off the screen. So I used browser.window.move_to 0,0 and it worked much better: page on screenshot now is much less cropped but still cropped (especially at the bottom). So I started to play with browser.window.resize_to method and found that the best results I get when I set browser size slightly bigger then screen resolution (e.g. with 1366x768 resolution the best screenshot I managed to make was with browser size 1374x816). Better but not perfect: e.g. I can see scrollbars on the sides of screenshot (application I'm testing is scaled depending on window size and when this size is changed from higher to lower there is a moment when scrollbars are shown). But as I understand screenshot method should automatically scroll the page anyway, right? Any idea where can be a problem? Is there a way how to make screenshots without resizing (even if page is not fully rendered still possibly results can be better)? Or may be there is alternative method of making a screenshot on IE? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-...@googlegroups.com http://groups.google.com/group/watir-general watir-genera...@ googlegroups.com -- 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 -- 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
[wtr-general] Undefined method 'javascript_dialog' using Watir 4.0.2/Ruby 1.9.3
I've searched all over this user group and the web and can't find an answer to my issue. I'm attempting to use the 'javascript_dialog' method to access alert windows. It's my understanding that this capability is supposed to be included in the standard watir (at least it once was according to information like thishttp://stackoverflow.com/questions/8164039/handling-a-javascript-popup-occurring-on-a-keyup-event/8172888#8172888). I am trying to determine if this functionality has been deprecated or if I might have an issue with my configuration. If it has been deprecated, is there a better way to achieve what I'm trying to through watir-webdriver or watir-classic? Thanks in advance! Ruby version: ruby 1.9.3p327 (2012-11-10) [i386-mingw32] *** LOCAL GEMS *** addressable (2.3.2) bigdecimal (1.1.0) builder (3.1.4) childprocess (0.3.6) commonwatir (4.0.0) diff-lcs (1.1.3) ffi (1.2.0 x86-mingw32) firewatir (1.9.4) hoe (3.3.1) io-console (0.3) json (1.5.4) libwebsocket (0.1.6.1) logger (1.2.8) mini_magick (3.2.1) minitest (2.5.1) multi_json (1.3.7) nokogiri (1.5.5 x86-mingw32) rake (0.9.2.2) rautomation (0.7.3) rdoc (3.9.4) rspec (2.12.0) rspec-core (2.12.2) rspec-expectations (2.12.1) rspec-mocks (2.12.0) rubyzip (0.9.9) s4t-utils (1.0.4) selenium-webdriver (2.26.0) subexec (0.0.4) syntax (1.0.0) test-unit (2.5.3) user-choices (1.1.6.1) watir (4.0.2 x86-mingw32) watir-classic (3.3.0) watir-webdriver (0.6.1) websocket (1.0.4) win32-api (1.4.8 x86-mingw32) win32-process (0.7.0) win32screenshot (1.0.7) windows-api (0.4.2) windows-pr (1.2.2) xml-simple (1.1.2) -- 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
[wtr-general] Re: Undefined method 'javascript_dialog' using Watir 4.0.2/Ruby 1.9.3
There's a better way to do it now. Check this out: http://watirwebdriver.com/javascript-dialogs/ On Thursday, January 17, 2013 5:54:10 PM UTC-5, captin wrote: I've searched all over this user group and the web and can't find an answer to my issue. I'm attempting to use the 'javascript_dialog' method to access alert windows. It's my understanding that this capability is supposed to be included in the standard watir (at least it once was according to information like thishttp://stackoverflow.com/questions/8164039/handling-a-javascript-popup-occurring-on-a-keyup-event/8172888#8172888). I am trying to determine if this functionality has been deprecated or if I might have an issue with my configuration. If it has been deprecated, is there a better way to achieve what I'm trying to through watir-webdriver or watir-classic? Thanks in advance! Ruby version: ruby 1.9.3p327 (2012-11-10) [i386-mingw32] *** LOCAL GEMS *** addressable (2.3.2) bigdecimal (1.1.0) builder (3.1.4) childprocess (0.3.6) commonwatir (4.0.0) diff-lcs (1.1.3) ffi (1.2.0 x86-mingw32) firewatir (1.9.4) hoe (3.3.1) io-console (0.3) json (1.5.4) libwebsocket (0.1.6.1) logger (1.2.8) mini_magick (3.2.1) minitest (2.5.1) multi_json (1.3.7) nokogiri (1.5.5 x86-mingw32) rake (0.9.2.2) rautomation (0.7.3) rdoc (3.9.4) rspec (2.12.0) rspec-core (2.12.2) rspec-expectations (2.12.1) rspec-mocks (2.12.0) rubyzip (0.9.9) s4t-utils (1.0.4) selenium-webdriver (2.26.0) subexec (0.0.4) syntax (1.0.0) test-unit (2.5.3) user-choices (1.1.6.1) watir (4.0.2 x86-mingw32) watir-classic (3.3.0) watir-webdriver (0.6.1) websocket (1.0.4) win32-api (1.4.8 x86-mingw32) win32-process (0.7.0) win32screenshot (1.0.7) windows-api (0.4.2) windows-pr (1.2.2) xml-simple (1.1.2) -- 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