[wtr-general] Click on link with href Javascript:calllogout()
Hi I am trying to click on a link with href = javascript:callLogOut(); and text = Logout but failed to click. Please help thanks aravind -- 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] Click on link with href Javascript:calllogout()
Hi Aravind Do you have an example of the code that is causing you the problem? What code have you tried? When you say failed, is the application under test failed to respond or is there an exception in the watir script? Thanks Basim On Wed, Jan 19, 2011 at 7:24 AM, Aravind aravindredd...@gmail.com wrote: Hi I am trying to click on a link with href = javascript:callLogOut(); and text = Logout but failed to click. Please help thanks aravind -- 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.comwatir-general%2bunsubscr...@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] [wtr-General] Click on link with href Javascript:calllogout()
-- Forwarded message -- From: Aravind aravindredd...@gmail.com Date: Wed, Jan 19, 2011 at 5:54 PM Subject: Click on link with href Javascript:calllogout() To: watir-general@googlegroups.com Hi I am trying to click on a link with href = javascript:callLogOut(); and text = Logout but failed to click. Please help thanks aravind -- 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] Click on link with href Javascript:calllogout()
On Wed, Jan 19, 2011 at 1:24 PM, Aravind aravindredd...@gmail.com wrote: I am trying to click on a link with href = javascript:callLogOut(); and text = Logout but failed to click. Show us your code. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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] Click on link with href Javascript:calllogout()
thanks for the reply lia href=javascript:callLogOut(); onclick='javascript:return navigateTo(/abcd/LogOut.jsp);'Logout/a/li Can you please give me the code to click on logout link thanks aravind On Wed, Jan 19, 2011 at 7:41 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Jan 19, 2011 at 1:24 PM, Aravind aravindredd...@gmail.com wrote: I am trying to click on a link with href = javascript:callLogOut(); and text = Logout but failed to click. Show us your code. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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.comwatir-general%2bunsubscr...@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] Click on link with href Javascript:calllogout()
2011/1/19 Aravind aravindredd...@gmail.com lia href=javascript:callLogOut(); onclick='javascript:return navigateTo(/abcd/LogOut.jsp);'Logout/a/li What have you tried so far? Željko -- 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] Click on link with href Javascript:calllogout()
On Wed, Jan 19, 2011 at 3:45 PM, Aravind aravindredd...@gmail.com wrote: I have tried using both href and text as perameters. Show us the code! :) (And error messages, if any.) Željko -- 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] Click on link with href Javascript:calllogout()
Did you try $ie.link(:text,'Logout').click Michael From: Aravind aravindredd...@gmail.com To: watir-general@googlegroups.com Sent: Wed, January 19, 2011 4:46:52 AM Subject: Re: [wtr-general] Click on link with href Javascript:calllogout() thanks for the reply liahref=javascript:callLogOut(); onclick='javascript:return navigateTo(/abcd/LogOut.jsp);'Logout/a/li Can you please give me the code to click on logout link thanks aravind On Wed, Jan 19, 2011 at 7:41 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Jan 19, 2011 at 1:24 PM, Aravind aravindredd...@gmail.com wrote: I am trying to click on a link with href = javascript:callLogOut(); and text = Logout but failed to click. Show us your code. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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 -- 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] Click on link with href Javascript:calllogout()
Also did you try $ie.link(:text,'Logout').fire_event(onclick) From: Aravind aravindredd...@gmail.com To: watir-general@googlegroups.com Sent: Wed, January 19, 2011 6:45:40 AM Subject: Re: [wtr-general] Click on link with href Javascript:calllogout() Hi I have tried using both href and text as perameters. On Wed, Jan 19, 2011 at 6:26 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: 2011/1/19 Aravind aravindredd...@gmail.com lia href=javascript:callLogOut(); onclick='javascript:return navigateTo(/abcd/LogOut.jsp);'Logout/a/li What have you tried so far? Željko -- 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 -- 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: First time Watir User
Glad you got it working. You do realize that this is the first time you mentioned you were running on a Mac, despite Z's asking you for details that included your OS. Given most folks here are working on PC's using Windows (or a flavor of Linux) that little detail may be something you need to get used to mentioning. It also prevents attempts at helpful suggestions to try using IE as the browser etc. (which can be a valid troubleshooting technique in many cases, but obviously won't work in your case) On Jan 18, 6:22 am, A.Mori mull...@gmail.com wrote: after digging around i have managed to get it working. as a note, for mac users this helped me greatly http://altf.wordpress.com/2010/07/09/working-with-watir-on-a-mac/ Thanks again Zeljko! -- 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: need assistance in error
The other thing to be aware of is that with Win7 it helps to run the command line window as an admin (right click and pick run as administrator). This gets around some of the IE cross site scripting security that causes 'churn' of browser objects when the site changes security zones (from internet, to intranet, etc) which is by far the most common cause of Win32OLE errors which report things like unknown method, or The object invoked has disconnected from its clients. On Jan 18, 10:51 am, Jarmo Pertman jarm...@gmail.com wrote: This might be true indeed, because the Ruby (patchlevel 0?) and Rubygems versions are also very old. Jarmo Pertman - IT does really matter -http://www.itreallymatters.net On Jan 17, 11:11 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: I think the easiest way to upgrade from Watir 1.4.1. is to uninstall Ruby, install it again and follow instructions from here to install Watir: http://watir.com/installation/ Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- 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 1.7.1 issue
are you opening up the CMD window you are using 'as administrator' ?? that seems to help immensely with Windows 7 and IE8's propensity to 'churn' the instances of the browser. It also seems (at least to me) to help to set the browser homepage to about:blank, and add that page to the same security zone as your test site (usually either trusted sites or intranet) IE8 is highly er 'paranoid' about the security levels of the browser instances that operate inside the overall IE8 'frame' that holds the browsers(tabs). It's all about preventing one of the most common attacks, cross site scripting, and especially preventing a low security site from managing to get you to execute scripts in an elevated security context. Any time a browser tab inside the IE8 frame changes security levels (going from say 'internet' to 'intranet') IE basically closes the old one, and opens a new one, with the new security level appropriate to the new site. It's not visible to the normal user, but when it happens, the browser that your Watir browser object was attacked to has just been deleted, and as a result you are dead in the water until you attach it to the new browser instance that IE8 just created. Running as admin prevents that mostly because the overall IE8 'frame' opens new browser tabs with a 'medium' security level instead of a 'low' security level, which reduces the 'churn' of IE8 destroying and re-creating browser instances, and that in turn reduces the number of times your Watir browser objects get disconnected from the IE browser instances. On Jan 12, 1:27 pm, Reciprocity george.wi...@gmail.com wrote: Hello, I'm testing on Win7 (IE8), Ruby 1.8.6 (also tested under 1.8.7) and Watir 1.7.1 Below irb session works fine under all the same environment except Watir 1.6.2 I have a page that pops up a new window. I can attach to it without an error but it just isn't right. irb(main):001:0 require 'watir' = true irb(main):002:0 ie2 = Watir::IE.find(:title, /Agreement/) = #Watir::IE:0x49de500 url=https://mydomain.com/Registration.asp; title=Agreement irb(main):003:0 ie2.status = Waiting for about:blank... When I do a... irb(main):003:0 ie2.close WIN32OLERuntimeError: unknown property or method `hwnd' HRESULT error code:0x80010108 The object invoked has disconnected from its clients. from C:/Programs/Ruby186Watir17/lib/ruby/gems/1.8/gems/ watir-1.7.1/lib/watir/ie-class.rb:403:in `method_missing' from C:/Programs/Ruby186Watir17/lib/ruby/gems/1.8/gems/ watir-1.7.1/lib/watir/ie-class.rb:403:in `close' from (irb):3 it hangs up. If I manualy close the window I get the above error message. Any help would be appreciated. Thanks -- 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: Automating the object with in TD tag
if it's an image and it's clickable, you can often access it as a button element. That or look at what element is wrapped around the image. As with almost all questions here, you are going to get the best response if you 1) show us relevent page source. 2) show us the code you have tried so far 3) include an error messages you may have gotten as a result. On Jan 13, 12:59 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Jan 13, 2011 at 8:34 AM, sweet flower ure...@gmail.com wrote: I tried with SRC also... it is not working. any other way?? Sure, a lot of other ways: http://wiki.openqa.org/display/WTR/HTML+Elements+Supported+by+Watirhttp://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+El... Post image HTML and we will be able to help. Željko -- 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 virtual appliances?
You really have to wonder how that business model flies.. doesn't seem like it would even come close to paying for the hardware alone, much less license fees for licensed OS's On Jan 13, 11:14 pm, Dave McNulla mcnu...@gmail.com wrote: For $.50 a day we can run a VM in the cloud? I can hear Sally Struthers getting in on this. All around the world there are Watir scripts that can't run and play with web pages, but for pennies a day, you can help them find a home. Dave On Jan 13, 6:59 am, Emmanuel Cecchet cecc...@gmail.com wrote: On 1/13/2011 3:51 AM, Željko Filipin wrote: The Windows VM can be made available as Amazon EC2 AMIs for those who are willing to run their VMs in the cloud. Can they be shared? Yes. We can make these AMIs public for anyone to use. Basically the license price is included in the hourly rental price that is why Windows VMs are more expensive than Linux VMs ($0.12/hour vs $0.085/hour for a small instance). However for Watir purposes we should be able to use the new micro instances ($0.02/hour for Linux and $0.03/hour for Windows). I will keep you posted with my progress on this front. Emmanuel -- 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 virtual appliances?
You need to do that at large scale to be cost effective (for the provider). Also you are not alone on the machine, multiple VMs are collocated per physical machine. If you want more powerful machines where you are almost sure of having dedicated hardware, prices rise quickly. You can check the prices here: http://aws.amazon.com/ec2/pricing/ Note that if you want to give it a try, Amazon currently gives 750 micro instances hours free / month for one year to new users. Can be a good time for those who want to give it a try Emmanuel PS: I am not affiliated with Amazon, just using this platform for my research. On 1/19/2011 1:42 PM, Chuck van der Linden wrote: You really have to wonder how that business model flies.. doesn't seem like it would even come close to paying for the hardware alone, much less license fees for licensed OS's On Jan 13, 11:14 pm, Dave McNullamcnu...@gmail.com wrote: For $.50 a day we can run a VM in the cloud? I can hear Sally Struthers getting in on this. All around the world there are Watir scripts that can't run and play with web pages, but for pennies a day, you can help them find a home. Dave On Jan 13, 6:59 am, Emmanuel Cecchetcecc...@gmail.com wrote: On 1/13/2011 3:51 AM, Željko Filipin wrote:The Windows VM can be made available as Amazon EC2 AMIs for those who are willing to run their VMs in the cloud. Can they be shared? Yes. We can make these AMIs public for anyone to use. Basically the license price is included in the hourly rental price that is why Windows VMs are more expensive than Linux VMs ($0.12/hour vs $0.085/hour for a small instance). However for Watir purposes we should be able to use the new micro instances ($0.02/hour for Linux and $0.03/hour for Windows). I will keep you posted with my progress on this front. Emmanuel -- 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 1.7.1 Released
Do we have a version that has everything already compiled for Windows? I'm trying to get a windows server 2008 system setup to run watir scripts, and when I try to install anything newer than 1.6.2 it starts trying to find nmake.exe and cl.exe which are not anywhere on this box as it is setup to emulate a webserver were our product would be deployed, and there is no visual studio or any other flavor of compiler etc installed on the system. The exact error I'm getting (after having hunted down and installed an old version of nmake) looks like this ---=--=-=-=-=-=-=-=-=-=-= C:\Users\Chuckv\DOWNLO~1gem install watir Building native extensions. This could take a while... ERROR: Error installing watir: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb checking for strncpy_s()... no creating Makefile nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -nologo -I. -I. -IC:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcwin32/api.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x1' Stop. Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/ win32-api-1.4.8 for inspection. Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.8/ext/ gem_make.out =-=-=-=-=-=-=-=-=-=- On Jan 10, 12:11 am, Jarmo jarm...@gmail.com wrote: Hello everyone! Just released a new version of Watir - 1.7.1. This version fixes a bug with Watir::IE.start_process and/or Watir::IE.new_process. Updating Watir is recommended even if you didn't use any of these methods. == Version 1.7.1 - 2011/01/10 === IE improvements * Fixed Watir::IE.start_process/new_process. Doesn't completely closehttp://jira.openqa.org/browse/WTR-472(Jarmo Pertman) === Firefox improvements - Nothing Whole Changelog is available athttp://github.com/bret/watir/compare/v1.7.1...v1.7.0 Watir Development Team -- 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: Can I run tests in IE and FF one by one in the one ruby script?
Are we truly at a point where this is actually possible, or are there still differences such as zero based vs one based indexing that are going to cause scripts to malfunction from time to time? when you run them on the platform that is other than where they were developed? On Jan 5, 7:36 am, Adam Reed reed.a...@gmail.com wrote: There are definitely a couple of options. You could have two different options files, ie_options.yml and ff_options.yml, and then set the options file before instantiating the browser object. You could also pass a parameter (virtually the same as what I have done above, just not called from an Array), or require a different library that sets the options file via command line/batch (-r library.rb). Personally, I set the options file to the browser that I want, run all of my tests, and then change the options file to the second browser and run the tests again. Between Ruby conventions and Windows batch/shell script methods, there are plenty of ways you could address it. If this is something you just need one time with one script, the first method (or Željko's) would be easier. On Jan 5, 2:51 am, Alastair Montgomery doodl...@gmail.com wrote: The options file looks like a good solution for my needs thanks for pointing that out. I'm guessing we could pass the name of the options file as a parameter to your script, that way you wouldn't need to edit the file between runs, just have an IE and Firefox version? On Jan 4, 8:35 pm, Adam Reed reed.a...@gmail.com wrote: require 'watir' browsers = [ie, firefox] browsers.each do |b| Watir::Browser.default = b browser = Watir::Browser.new browser.goto url end This would work if you were looking to literally run both tests inside of one script, and could also involve multi-threading to run them simultaneous, however, I think the best approach is to put your browser selection in a the Watir YAML file and use a batch to set the default browser, run the test, edit the default browser and save the YAML file again, and then run the test(s) again. Create the file 'options.yml' with contents: # This file specifies options affecting all tests. # These options can also be set using environment variables prefixed with 'watir_ # These environment variables will override settings from this file. # 'ie' (Watir::IE) or 'firefox' (FireWatir::Firefox) browser: ie #browser: firefox # These options only affect IE. # speed options are fast, slow, and zippy speed: zippy #visible: false visible: true Include the following code in your script(s): Watir.options_file = 'options.yml' Now, whenever you change the default browser designation in your options.yml file, your scripts will use that browser. Hope that helps. Adam On Jan 3, 10:36 am, Oleg ol.shevche...@gmail.com wrote: Hi All. Please give me advice how can I run IE and FF tests in the one ruby script. I tried the following, but in the second part opens browser initialized firstly (IE in this example) require 'watir' Watir::Browser.default = 'ie' browser = Watir::Browser.new browser.goto url ... require 'firewatir' Watir::Browser.default = 'firefox' browser = Watir::Browser.new browser.goto url ... -- 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 and appscan
Doesn't appscan have the ability to save the navigation you demonstrated to it, so that you can run it automatically on newer builds? On Dec 29 2010, 7:05 am, Dan dfra...@gmail.com wrote: Good Morning. Anyone used Watir with appscan? Basically, for those who don't know Appscan is a tool by IBM that scans a site for vulnerabilities. You basically have to record navigation to every screen using the tool. Seems like a great candidate for using some existing automation, but the problem is that Appscan actually pops open some special browser that Watir doesn't recognize. Just curious if anyone has experience with this or has any creative work-arounds. -- 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: How to check a text in the lightbox (javascript)
I'm a bit stumped on why you are using 'enable?' as your method.. I'd think you'd be wanting to use exists? instead. have you changed the text you are trying to match to force a failure, and verified that your test reports fail? On Dec 29 2010, 11:49 pm, Irfan Ahmed irfan...@gmail.com wrote: Oh at last I solved that problem. Actually when the steps come to match the case I made a mistake in the last step so the light box wasn't appeared in that step and watir could not find the text. On Thu, Dec 30, 2010 at 12:01 PM, Dave McNulla mcnu...@gmail.com wrote: Like Sharma and Željko said, we want to know what Watir sees. Even though your eyes see the text, Watir doesn't have human eyes. It parses html. We should be able to examine that html either by you posting it or providing a link. To post html, navigate until the lightbox appears, right click and select Show Source (or something similar), then copy the html, especially that part with the text you saw visually. Thanks Dave On Dec 29, 12:54 am, Irfan Ahmed irfan...@gmail.com wrote:t browser.text.enable?(text).should == true. It is not working. :( as the text was from java script..:( On Wed, Dec 29, 2010 at 2:34 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Dec 28, 2010 at 8:15 PM, Irfan Ahmed irfan...@gmail.com wrote: browser.text.enable?(text).should == true. Please provide relevant HTML or link to the page (or similar one). Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please readhttp://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.comwatir-general%2Bunsubscribe@goog legroups.com watir-general%2Bunsubscribe@goog legroups.com -- Thanks, Irfan Ahmed Rizvi (Sagar) cell Numbers: +880 1676 246 991 +880 1723 712 888 http://www.welltreat.ushttp:// restaurant.welltreat.us/http://isp.welltreat.us/ -- Before posting, please readhttp://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 -- Thanks, Irfan Ahmed Rizvi (Sagar) cell Numbers: +880 1676 246 991 +880 1723 712 888 http://www.welltreat.ushttp://restaurant.welltreat.us/http://isp.welltreat.us/ -- 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 and appscan
Yes, but the point is that, instead of having someone sit there and navigate to all of the screens manually we wanted to see if it was possible for appscan to watch Watir navigating through all of the pages. -- 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] testing a page that goes through multiple redirects.
Hi I'm testing an application that integrates with a payment gateway. This involves about 3 redirects. Each of these is not 302's but a page that has a form and an onload script that submits the form via javascript. The problem is sometimes watir continues before the chain of redirects. So sometimes the page the browser is on when our script continues execution is not the last page and the script throws an error. sometimes webdriver throws an error because references have become stale. This is not a reference that I have saved and then used but just something as simple as @browser.text.should include('some text') we get errors like Unable to locate element: {method:tag name,selector:body} # [remote server] file:///private/var/folders/W5/W5PGX-JAH0KpXOjqG8XwgTM/-Tmp-/webdriver-profile20110119-41715-1iz0tqc/extensions/fxdri...@googlecode.com/resource/modules/utils.js:7081:in `WebDriverError' or Element not found in the cache # [remote server] file:///private/var/folders/W5/W5PGX-JAH0KpXOjqG8XwgTM/-Tmp-/webdriver-profile20110119-40433-14jajfa/extensions/fxdri...@googlecode.com/resource/modules/utils.js:7081:in `WebDriverError' # [remote server] file:///private/var/folders/W5/W5PGX-JAH0KpXOjqG8XwgTM/-Tmp-/webdriver-profile20110119-40433-14jajfa/extensions/fxdri...@googlecode.com/resource/modules/utils.js:7198:in `' I posted an issue on github and jarib suggested I use something like wait_until_present to make sure I'm on the page I expect to be. But I have 2 concerns. firstly, even with wait_until_present is there a likelyhood I get a stale reference error? secondly, sometimes one of these redirects on the way might actually fail and throw me onto an error page. In which case I'll have to wait_until_present with a timeout. I'd prefer a more deterministic approach. Is there a way for me to get watir to check if the current page has completely loaded AND all onload scripts have run before giving me control? Something I can run in a loop so that the script continues only when all redirects are done -- 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 1.7.1 Released
Hey Chuck, I'd suggest you look at Ruby 1.8.7 with devkit installed. Watir itself doesn't have any need to compile things, it's the win32api and other dependencies which may be set up wrong with Ruby, mingw or mswin32 specific versions. There are ways to fat compile binaries which some projects are starting to do. With current 1.8.6 one click installer I haven't seen the need to compile anything, though that may have changed recently, I know Daniel Berger has been doing some work on the win32 gems. Are you using 1.8.7 or newer builds of Ruby? There's going to be a little bit of chaos as we switch in the Windows community from the old one click installer and gems built with MSVC6 over to the newer paradigm and the mingw tool chain. Just a thought anyhow. Charley Baker Lead Developer, Watir, http://watir.com On Wed, Jan 19, 2011 at 6:54 PM, Chuck van der Linden sqa...@gmail.com wrote: Do we have a version that has everything already compiled for Windows? I'm trying to get a windows server 2008 system setup to run watir scripts, and when I try to install anything newer than 1.6.2 it starts trying to find nmake.exe and cl.exe which are not anywhere on this box as it is setup to emulate a webserver were our product would be deployed, and there is no visual studio or any other flavor of compiler etc installed on the system. The exact error I'm getting (after having hunted down and installed an old version of nmake) looks like this ---=--=-=-=-=-=-=-=-=-=-= C:\Users\Chuckv\DOWNLO~1gem install watir Building native extensions. This could take a while... ERROR: Error installing watir: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb checking for strncpy_s()... no creating Makefile nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -nologo -I. -I. -IC:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcwin32/api.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x1' Stop. Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/ win32-api-1.4.8 for inspection. Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.8/ext/ gem_make.out =-=-=-=-=-=-=-=-=-=- On Jan 10, 12:11 am, Jarmo jarm...@gmail.com wrote: Hello everyone! Just released a new version of Watir - 1.7.1. This version fixes a bug with Watir::IE.start_process and/or Watir::IE.new_process. Updating Watir is recommended even if you didn't use any of these methods. == Version 1.7.1 - 2011/01/10 === IE improvements * Fixed Watir::IE.start_process/new_process. Doesn't completely closehttp://jira.openqa.org/browse/WTR-472(Jarmo Pertman) === Firefox improvements - Nothing Whole Changelog is available athttp://github.com/bret/watir/compare/v1.7.1...v1.7.0 Watir Development Team -- 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] Re: Watir and appscan
wouldn't it take more time to create the automation to have water navigate every page on the site than it would for a person to just walk through it manually? I guess I can see the point if you had existing automation, but I'd think that would be doing a LOT more than just clicking on all the links and going to all the pages? On Jan 19, 11:25 am, Dan dfra...@gmail.com wrote: Yes, but the point is that, instead of having someone sit there and navigate to all of the screens manually we wanted to see if it was possible for appscan to watch Watir navigating through all of the pages. -- 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 1.7.1 Released
I'll give that a shot. It might fix the other issue I'm having which is an outright 'crash' of the ruby CLI which appears to be caused by the OS thinking it's accessing memory it shouldn't (it appears that the OS shuts it down due to a DEP violation (Data Execution Prevention) gah this is going to be a fest of uninstall-install I bet.. whe On Jan 19, 11:38 am, Charley Baker charley.ba...@gmail.com wrote: Hey Chuck, I'd suggest you look at Ruby 1.8.7 with devkit installed. Watir itself doesn't have any need to compile things, it's the win32api and other dependencies which may be set up wrong with Ruby, mingw or mswin32 specific versions. There are ways to fat compile binaries which some projects are starting to do. With current 1.8.6 one click installer I haven't seen the need to compile anything, though that may have changed recently, I know Daniel Berger has been doing some work on the win32 gems. Are you using 1.8.7 or newer builds of Ruby? There's going to be a little bit of chaos as we switch in the Windows community from the old one click installer and gems built with MSVC6 over to the newer paradigm and the mingw tool chain. Just a thought anyhow. Charley Baker Lead Developer, Watir,http://watir.com On Wed, Jan 19, 2011 at 6:54 PM, Chuck van der Linden sqa...@gmail.com wrote: Do we have a version that has everything already compiled for Windows? I'm trying to get a windows server 2008 system setup to run watir scripts, and when I try to install anything newer than 1.6.2 it starts trying to find nmake.exe and cl.exe which are not anywhere on this box as it is setup to emulate a webserver were our product would be deployed, and there is no visual studio or any other flavor of compiler etc installed on the system. The exact error I'm getting (after having hunted down and installed an old version of nmake) looks like this ---=--=-=-=-=-=-=-=-=-=-= C:\Users\Chuckv\DOWNLO~1gem install watir Building native extensions. This could take a while... ERROR: Error installing watir: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb checking for strncpy_s()... no creating Makefile nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -nologo -I. -I. -IC:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcwin32/api.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x1' Stop. Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/ win32-api-1.4.8 for inspection. Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.8/ext/ gem_make.out =-=-=-=-=-=-=-=-=-=- On Jan 10, 12:11 am, Jarmo jarm...@gmail.com wrote: Hello everyone! Just released a new version of Watir - 1.7.1. This version fixes a bug with Watir::IE.start_process and/or Watir::IE.new_process. Updating Watir is recommended even if you didn't use any of these methods. == Version 1.7.1 - 2011/01/10 === IE improvements * Fixed Watir::IE.start_process/new_process. Doesn't completely closehttp://jira.openqa.org/browse/WTR-472(JarmoPertman) === Firefox improvements - Nothing Whole Changelog is available athttp://github.com/bret/watir/compare/v1.7.1...v1.7.0 Watir Development Team -- Before posting, please readhttp://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 1.7.1 Released
I didn't have any problems updating, you can also use pik[1] to install 1.8.7 and work on that without disturbing your current installation. :) Charley Baker Lead Developer, Watir, http://watir.com [1] pik : https://github.com/vertiginous/pik On Wed, Jan 19, 2011 at 7:57 PM, Chuck van der Linden sqa...@gmail.com wrote: I'll give that a shot. It might fix the other issue I'm having which is an outright 'crash' of the ruby CLI which appears to be caused by the OS thinking it's accessing memory it shouldn't (it appears that the OS shuts it down due to a DEP violation (Data Execution Prevention) gah this is going to be a fest of uninstall-install I bet.. whe On Jan 19, 11:38 am, Charley Baker charley.ba...@gmail.com wrote: Hey Chuck, I'd suggest you look at Ruby 1.8.7 with devkit installed. Watir itself doesn't have any need to compile things, it's the win32api and other dependencies which may be set up wrong with Ruby, mingw or mswin32 specific versions. There are ways to fat compile binaries which some projects are starting to do. With current 1.8.6 one click installer I haven't seen the need to compile anything, though that may have changed recently, I know Daniel Berger has been doing some work on the win32 gems. Are you using 1.8.7 or newer builds of Ruby? There's going to be a little bit of chaos as we switch in the Windows community from the old one click installer and gems built with MSVC6 over to the newer paradigm and the mingw tool chain. Just a thought anyhow. Charley Baker Lead Developer, Watir,http://watir.com On Wed, Jan 19, 2011 at 6:54 PM, Chuck van der Linden sqa...@gmail.com wrote: Do we have a version that has everything already compiled for Windows? I'm trying to get a windows server 2008 system setup to run watir scripts, and when I try to install anything newer than 1.6.2 it starts trying to find nmake.exe and cl.exe which are not anywhere on this box as it is setup to emulate a webserver were our product would be deployed, and there is no visual studio or any other flavor of compiler etc installed on the system. The exact error I'm getting (after having hunted down and installed an old version of nmake) looks like this ---=--=-=-=-=-=-=-=-=-=-= C:\Users\Chuckv\DOWNLO~1gem install watir Building native extensions. This could take a while... ERROR: Error installing watir: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb checking for strncpy_s()... no creating Makefile nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -nologo -I. -I. -IC:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcwin32/api.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x1' Stop. Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/ win32-api-1.4.8 for inspection. Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.8/ext/ gem_make.out =-=-=-=-=-=-=-=-=-=- On Jan 10, 12:11 am, Jarmo jarm...@gmail.com wrote: Hello everyone! Just released a new version of Watir - 1.7.1. This version fixes a bug with Watir::IE.start_process and/or Watir::IE.new_process. Updating Watir is recommended even if you didn't use any of these methods. == Version 1.7.1 - 2011/01/10 === IE improvements * Fixed Watir::IE.start_process/new_process. Doesn't completely closehttp://jira.openqa.org/browse/WTR-472(JarmoPertman) === Firefox improvements - Nothing Whole Changelog is available athttp://github.com/bret/watir/compare/v1.7.1...v1.7.0 Watir Development Team -- Before posting, please readhttp://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 -- 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] testing a page that goes through multiple redirects.
On Wed, Jan 19, 2011 at 8:31 PM, vishnu path...@gmail.com wrote: I posted an issue on github and jarib suggested I use something like wait_until_present to make sure I'm on the page I expect to be. But I have 2 concerns. firstly, even with wait_until_present is there a likelyhood I get a stale reference error? This error only occurs if you're trying to interact with an element that is no longer on the page, e.g. button = browser.button # page refreshes, or the button is removed button.click I think seeing this error from calling wait_until_present is very unlikely. If you do, please create a test case I can look at. secondly, sometimes one of these redirects on the way might actually fail and throw me onto an error page. In which case I'll have to wait_until_present with a timeout. As mentioned in the issue, check out the docs for these methods. #wait_until_present and friends include a built-in timeout. You can pass the number of seconds to wait as the first argument. I'd prefer a more deterministic approach. Is there a way for me to get watir to check if the current page has completely loaded AND all onload scripts have run before giving me control? Something I can run in a loop so that the script continues only when all redirects are done No. Since browsers are inherently asynchronous, there's no way for the tool to know what you consider finished. We try to wait for the most obvious things, but at some point we have to give control back to the user. Consider e.g. body onload=setTimeout(someFunction, 1000) someFunction could call out to code that does more setTimeout (or other async calls) and eventually end up changing elements or redirecting to some other page. The most deterministic solution you'll get is polling the DOM for the state you want it to be in before proceeding, which is what wait.rb in watir-webdriver was designed to let you do easily. -- 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 1.7.1 Released
well it's not as if things were working that wonderfully so I'm not too terribly concerned. I made a snapshot of the VM just in case I want to roll it back. just got back from lunch, so about to embark on the purge and re- install. On Jan 19, 12:06 pm, Charley Baker charley.ba...@gmail.com wrote: I didn't have any problems updating, you can also use pik[1] to install 1.8.7 and work on that without disturbing your current installation. :) Charley Baker Lead Developer, Watir,http://watir.com [1] pik :https://github.com/vertiginous/pik On Wed, Jan 19, 2011 at 7:57 PM, Chuck van der Linden sqa...@gmail.com wrote: I'll give that a shot. It might fix the other issue I'm having which is an outright 'crash' of the ruby CLI which appears to be caused by the OS thinking it's accessing memory it shouldn't (it appears that the OS shuts it down due to a DEP violation (Data Execution Prevention) gah this is going to be a fest of uninstall-install I bet.. whe On Jan 19, 11:38 am, Charley Baker charley.ba...@gmail.com wrote: Hey Chuck, I'd suggest you look at Ruby 1.8.7 with devkit installed. Watir itself doesn't have any need to compile things, it's the win32api and other dependencies which may be set up wrong with Ruby, mingw or mswin32 specific versions. There are ways to fat compile binaries which some projects are starting to do. With current 1.8.6 one click installer I haven't seen the need to compile anything, though that may have changed recently, I know Daniel Berger has been doing some work on the win32 gems. Are you using 1.8.7 or newer builds of Ruby? There's going to be a little bit of chaos as we switch in the Windows community from the old one click installer and gems built with MSVC6 over to the newer paradigm and the mingw tool chain. Just a thought anyhow. Charley Baker Lead Developer, Watir,http://watir.com On Wed, Jan 19, 2011 at 6:54 PM, Chuck van der Linden sqa...@gmail.com wrote: Do we have a version that has everything already compiled for Windows? I'm trying to get a windows server 2008 system setup to run watir scripts, and when I try to install anything newer than 1.6.2 it starts trying to find nmake.exe and cl.exe which are not anywhere on this box as it is setup to emulate a webserver were our product would be deployed, and there is no visual studio or any other flavor of compiler etc installed on the system. The exact error I'm getting (after having hunted down and installed an old version of nmake) looks like this ---=--=-=-=-=-=-=-=-=-=-= C:\Users\Chuckv\DOWNLO~1gem install watir Building native extensions. This could take a while... ERROR: Error installing watir: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb checking for strncpy_s()... no creating Makefile nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -nologo -I. -I. -IC:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcwin32/api.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x1' Stop. Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/ win32-api-1.4.8 for inspection. Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.8/ext/ gem_make.out =-=-=-=-=-=-=-=-=-=- On Jan 10, 12:11 am, Jarmo jarm...@gmail.com wrote: Hello everyone! Just released a new version of Watir - 1.7.1. This version fixes a bug with Watir::IE.start_process and/or Watir::IE.new_process. Updating Watir is recommended even if you didn't use any of these methods. == Version 1.7.1 - 2011/01/10 === IE improvements * Fixed Watir::IE.start_process/new_process. Doesn't completely closehttp://jira.openqa.org/browse/WTR-472(JarmoPertman) === Firefox improvements - Nothing Whole Changelog is available athttp://github.com/bret/watir/compare/v1.7.1...v1.7.0 Watir Development Team -- Before posting, please readhttp://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 readhttp://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 1.7.1 Released
I'd be interested if you can take notes, which you might be planning already. :) Cheers, Charley On Wed, Jan 19, 2011 at 10:16 PM, Chuck van der Linden sqa...@gmail.com wrote: well it's not as if things were working that wonderfully so I'm not too terribly concerned. I made a snapshot of the VM just in case I want to roll it back. just got back from lunch, so about to embark on the purge and re- install. On Jan 19, 12:06 pm, Charley Baker charley.ba...@gmail.com wrote: I didn't have any problems updating, you can also use pik[1] to install 1.8.7 and work on that without disturbing your current installation. :) Charley Baker Lead Developer, Watir,http://watir.com [1] pik :https://github.com/vertiginous/pik On Wed, Jan 19, 2011 at 7:57 PM, Chuck van der Linden sqa...@gmail.com wrote: I'll give that a shot. It might fix the other issue I'm having which is an outright 'crash' of the ruby CLI which appears to be caused by the OS thinking it's accessing memory it shouldn't (it appears that the OS shuts it down due to a DEP violation (Data Execution Prevention) gah this is going to be a fest of uninstall-install I bet.. whe On Jan 19, 11:38 am, Charley Baker charley.ba...@gmail.com wrote: Hey Chuck, I'd suggest you look at Ruby 1.8.7 with devkit installed. Watir itself doesn't have any need to compile things, it's the win32api and other dependencies which may be set up wrong with Ruby, mingw or mswin32 specific versions. There are ways to fat compile binaries which some projects are starting to do. With current 1.8.6 one click installer I haven't seen the need to compile anything, though that may have changed recently, I know Daniel Berger has been doing some work on the win32 gems. Are you using 1.8.7 or newer builds of Ruby? There's going to be a little bit of chaos as we switch in the Windows community from the old one click installer and gems built with MSVC6 over to the newer paradigm and the mingw tool chain. Just a thought anyhow. Charley Baker Lead Developer, Watir,http://watir.com On Wed, Jan 19, 2011 at 6:54 PM, Chuck van der Linden sqa...@gmail.com wrote: Do we have a version that has everything already compiled for Windows? I'm trying to get a windows server 2008 system setup to run watir scripts, and when I try to install anything newer than 1.6.2 it starts trying to find nmake.exe and cl.exe which are not anywhere on this box as it is setup to emulate a webserver were our product would be deployed, and there is no visual studio or any other flavor of compiler etc installed on the system. The exact error I'm getting (after having hunted down and installed an old version of nmake) looks like this ---=--=-=-=-=-=-=-=-=-=-= C:\Users\Chuckv\DOWNLO~1gem install watir Building native extensions. This could take a while... ERROR: Error installing watir: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb checking for strncpy_s()... no creating Makefile nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -nologo -I. -I. -IC:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcwin32/api.c 'cl' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x1' Stop. Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/ win32-api-1.4.8 for inspection. Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/win32-api-1.4.8/ext/ gem_make.out =-=-=-=-=-=-=-=-=-=- On Jan 10, 12:11 am, Jarmo jarm...@gmail.com wrote: Hello everyone! Just released a new version of Watir - 1.7.1. This version fixes a bug with Watir::IE.start_process and/or Watir::IE.new_process. Updating Watir is recommended even if you didn't use any of these methods. == Version 1.7.1 - 2011/01/10 === IE improvements * Fixed Watir::IE.start_process/new_process. Doesn't completely closehttp://jira.openqa.org/browse/WTR-472(JarmoPertman) === Firefox improvements - Nothing Whole Changelog is available athttp://github.com/bret/watir/compare/v1.7.1...v1.7.0 Watir Development Team -- Before posting, please readhttp://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 readhttp://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.
[wtr-general] Re: Watir virtual appliances?
That might be something interesting to look into on the development side then.. could be a cheap way for example to give the water developers access to a system running Windows Server 2008R2 for example. On Jan 19, 10:51 am, Emmanuel Cecchet cecc...@gmail.com wrote: You need to do that at large scale to be cost effective (for the provider). Also you are not alone on the machine, multiple VMs are collocated per physical machine. If you want more powerful machines where you are almost sure of having dedicated hardware, prices rise quickly. You can check the prices here:http://aws.amazon.com/ec2/pricing/ Note that if you want to give it a try, Amazon currently gives 750 micro instances hours free / month for one year to new users. Can be a good time for those who want to give it a try Emmanuel PS: I am not affiliated with Amazon, just using this platform for my research. On 1/19/2011 1:42 PM, Chuck van der Linden wrote: You really have to wonder how that business model flies.. doesn't seem like it would even come close to paying for the hardware alone, much less license fees for licensed OS's On Jan 13, 11:14 pm, Dave McNullamcnu...@gmail.com wrote: For $.50 a day we can run a VM in the cloud? I can hear Sally Struthers getting in on this. All around the world there are Watir scripts that can't run and play with web pages, but for pennies a day, you can help them find a home. Dave On Jan 13, 6:59 am, Emmanuel Cecchetcecc...@gmail.com wrote: On 1/13/2011 3:51 AM, Željko Filipin wrote: The Windows VM can be made available as Amazon EC2 AMIs for those who are willing to run their VMs in the cloud. Can they be shared? Yes. We can make these AMIs public for anyone to use. Basically the license price is included in the hourly rental price that is why Windows VMs are more expensive than Linux VMs ($0.12/hour vs $0.085/hour for a small instance). However for Watir purposes we should be able to use the new micro instances ($0.02/hour for Linux and $0.03/hour for Windows). I will keep you posted with my progress on this front. Emmanuel -- 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 virtual appliances?
Indeed, a couple of pennies from some people or resources to rock it out would be immensely appreciated. My current Windows VM is almost unusable, and I'm looking at a new machine. Limping along doesn't really help me much. We also need to pay for the upcoming Watir day. That's my 2 cents. :) Charley Baker Lead Developer, Watir, http://watir.com On Thu, Jan 20, 2011 at 12:38 AM, Chuck van der Linden sqa...@gmail.com wrote: That might be something interesting to look into on the development side then.. could be a cheap way for example to give the water developers access to a system running Windows Server 2008R2 for example. On Jan 19, 10:51 am, Emmanuel Cecchet cecc...@gmail.com wrote: You need to do that at large scale to be cost effective (for the provider). Also you are not alone on the machine, multiple VMs are collocated per physical machine. If you want more powerful machines where you are almost sure of having dedicated hardware, prices rise quickly. You can check the prices here:http://aws.amazon.com/ec2/pricing/ Note that if you want to give it a try, Amazon currently gives 750 micro instances hours free / month for one year to new users. Can be a good time for those who want to give it a try Emmanuel PS: I am not affiliated with Amazon, just using this platform for my research. On 1/19/2011 1:42 PM, Chuck van der Linden wrote: You really have to wonder how that business model flies.. doesn't seem like it would even come close to paying for the hardware alone, much less license fees for licensed OS's On Jan 13, 11:14 pm, Dave McNullamcnu...@gmail.com wrote: For $.50 a day we can run a VM in the cloud? I can hear Sally Struthers getting in on this. All around the world there are Watir scripts that can't run and play with web pages, but for pennies a day, you can help them find a home. Dave On Jan 13, 6:59 am, Emmanuel Cecchetcecc...@gmail.com wrote: On 1/13/2011 3:51 AM, Željko Filipin wrote: The Windows VM can be made available as Amazon EC2 AMIs for those who are willing to run their VMs in the cloud. Can they be shared? Yes. We can make these AMIs public for anyone to use. Basically the license price is included in the hourly rental price that is why Windows VMs are more expensive than Linux VMs ($0.12/hour vs $0.085/hour for a small instance). However for Watir purposes we should be able to use the new micro instances ($0.02/hour for Linux and $0.03/hour for Windows). I will keep you posted with my progress on this front. Emmanuel -- 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