[wtr-general] Re: How to check the load time of an page?
Hi Soori, Try the followig code... after $ie.goto('http://localhost/') loadtime =$ie.down_load_time.to_s puts loadtime Regards Rinku Garg On Jul 6, 11:54 am, Soori sure...@gmail.com wrote: Hi All, I would like to monitor the load time of an web page once in a 15 mins for 2hrs, i should log in a file if the load time of that web page exceeds 20secs, I tried with following code, but sometimes my page takes more than 100 secs to load, am getting that message after that 100 sec, It would be better if i get the entry on log file immediately after exceeding the 20 secs.Please help me in this front. Thanks in advance for ur help. require 'watir' mylog= File.new( Time.now.strftime(%d-%b-%y) + .csv,'a') $ie=IE.new begin startTime=Time.now $ie.goto('http://localhost/') x=Time.now-startTime ltitle=$ie.title if x 20 mylog.puts Time.now.strftime(%I:%M:%S%p).to_s + , + Taking more time to respond + , + x.to_s elsif $ie.text.include?(Home) mylog.puts Time.now.strftime(%I:%M:%S%p).to_s + , + Page Loaded Successfully + , + x.to_s else mylog.puts Time.now.strftime(%I:%M:%S%p).to_s + , + Failed to load the URL + , + ltitle.to_s end rescue = e mylog.puts Time.now.strftime(%I:%M:%S%p).to_s + , + Failed to load the URL + , + ltitle.to_s + , + e.to_s end /Soori --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] How to get firefox window handle
Hi Friends, I am using ie.hwnd in watir to get the browser handle. I have observed that there is no such property available in FireWatir. Is there any work around for this? basically what i want to do is to get the center point of the browser. Regards, Kinnu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Time to learn Watir
Hello, I am new to learn Watir. And my company ask me the estimation to learn the Watir. Can you please tell me how much time the learner will need to understand and learn Watir? Please reply. Thanks in advance Swapnal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
If you have automation knowledge, it shouldn't take much time to learn. First start it and you will know about it. Regards, Kiran Y On Fri, Jul 10, 2009 at 12:02 PM, Swap swapnal.sa...@gmail.com wrote: Hello, I am new to learn Watir. And my company ask me the estimation to learn the Watir. Can you please tell me how much time the learner will need to understand and learn Watir? Please reply. Thanks in advance Swapnal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: getting error while running watir script on firefox 3.0.11
Can you please tell what you did this time that it started working so that it benefits other people also? On Thu, Jul 9, 2009 at 7:00 PM, aparna aparna.m...@gmail.com wrote: Hi Angrez, finally its working fine for me... Thanks Regards, Aparna On Jul 9, 2:48 pm, Angrez Singh ang...@gmail.com wrote: Can everybody see if they did all the steps mentioned in the installation document? If they are still facing the problem then we can take it from there Thanks, Angrez On Thu, Jul 9, 2009 at 2:44 PM, khaja shaik khaja.sh...@gmail.com wrote: Hi, I am also getting same error on windows xp. after running the command i got error saying that Connection failed Thanks, Khaja shariff On Thu, Jul 9, 2009 at 11:51 AM, Angrez Singh ang...@gmail.com wrote: After enabling it do this: Start - run - [firefox installation directory]\firefox.exe -jssh and then Start - run - cmd - type telnet localhost 9997 Let me know the results. - Angrez On Thu, Jul 9, 2009 at 11:03 AM, aparna aparna.m...@gmail.com wrote: Hi Angrez, I have enabled the telnet by following the steps given in the link and then typed telnet localhost 9997 on command prompt. Now am getting an error connecting to localhost...could not open connection to the host, on port 9997: connect failed Thanks, Aparna On Jul 8, 10:50 pm, Angrez Singh ang...@gmail.com wrote: telnet is not enabled by default in vista, I think that may be the cause of the problem. Can you try enabling telnet using the steps described here: http://www.gohacking.com/2008/09/how-to-enable-telnet-command-in-vist... After that repeat what I said in my last email and let me know the result. Thanks, Angrez On Wed, Jul 8, 2009 at 6:53 PM, aparna aparna.m...@gmail.com wrote: Hi Angrez, When i did this, Start - Run - [firefox installation directory] \firefox.exe -jssh firefox home page is getting opened. When i typed telnet localhost 9997 on command prompt, it is saying that telnet is not recognised as an internal or external command aparna On Jul 8, 5:05 pm, Angrez Singh ang...@gmail.com wrote: just try this: Start - Run - [firefox installation directory]\firefox.exe -jssh Now open command prompt and type telnet localhost 9997 Let me know the results. - Angrez On Wed, Jul 8, 2009 at 3:57 PM, aparna aparna.m...@gmail.com wrote: Hi, when i tried running the script through command prompt, firefox home page is getting opened but the url mentioned in the script is not being taken by the firefox. Immediately after firefox home page getting opened, am getting the error which i have mentioned earlier. The same is the case when i run the script by pressing F5 key. Thanks Regards, Aparna On Jul 8, 12:39 pm, aparna aparna.m...@gmail.com wrote: sure. I will try that and let you know if any issues. Thanks, Aparna On Jul 8, 11:17 am, Angrez Singh ang...@gmail.com wrote: Just to make sure, when you try running the scripts you get the error that you mentioned in your mail. After that does firefox opens up or nothing happens. Also, can you try running the Firefox executable with -jssh option from run command as suggested by Kiran and let us know the results - Angrez On Wed, Jul 8, 2009 at 11:24 AM, kiran gki...@gmail.com wrote: Hi, Open 'firefox -jssh' from Run command and start running your scripts. Thanks, kiran. On Jul 8, 10:08 am, aparna aparna.m...@gmail.com wrote: Hi, JSSH addon is enabled in firefox. I have checked and then only tried to run the scripts. Regards, Aparna On Jul 7, 8:19 pm, Angrez Singh ang...@gmail.com wrote: AFAIK, firewatir starts firefox with -jssh option automatically. Just check if jssh addon is enabled in Firefox using the menu as suggested by Anu? - Angrez On Tue, Jul 7, 2009 at 7:06 PM, Anu Gangavaram anuwri...@gmail.com wrote: Did you start the Firefox with jssh option? You can also check if the jssh add-on is in the firefox - Open Firefox - Goto Tools - Addons and check in jssh addon is in. I am using the same versions as you are and it works fine on my machine. Rgds, Anu On Tue, Jul 7, 2009 at 8:52 AM, aparna aparna.m...@gmail.com wrote:
[wtr-general] Re: Firefox 3.5 compatible with FireWatir?
Can you check event viewer/firefox error console to check if XPI has been installed correctly? On Thu, Jul 9, 2009 at 7:46 PM, Al B. a...@comcast.net wrote: Hi Angrez, I tried the steps in your July 8 post, using the XPI for Windows that you posted on July 3, and got the following results when I tried to run Firewatir: C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:271:in `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option (Watir::Exception::UnableToStartJSShException) from C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/ firewatir/firefox.rb:161:in `initialize' from benchmark.rb:11:in `new' from benchmark.rb:11 Also, I couldn't telnet to port 9997. I don't have a development environment with which to build Firefox, so I'm stuck. Please help! Thanks, Al B. On Jul 8, 2:05 pm, Angrez Singh ang...@gmail.com wrote: The think is this the XPI that is generated can be installed only on Firefox 1.x as the format in which it is generated works only on that version. From version 2.x the format of the XPI has changed. You can try the following solution: 1. Unpack the XPI that works with Firefox 3.0.x and the newly created XPI for Firefox 3.5 2. Make sure the structure i.e. folder structure is same as that for 3.0.x XPI 3. Copy install.rdf file from 3.0.x XPI to 3.5 XPI. Open the file and change the max version to 3.5+ 4. Zip the 3.5.x folder 5. Rename it to .xpi Let me know if that works. - Angrez On Wed, Jul 8, 2009 at 6:59 PM, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello Angrez, What are these tweaks you mentioned? I have successfully compiled Firefox but like you said, I can't use the generated XPI :) Thanks, FK On Mon, Jul 6, 2009 at 4:01 AM, Angrez Singh ang...@gmail.com wrote: You need to build Firefox with the JSSh extension enabled. To create the XPI go to JSSh directory and say make xpi that will generate the XPI. The only problem with the generated XPI is that its format is compatible with only Firefox 1.5.x versions. We need to tweak the XPI (nothing but a zip file) a bit. Let me know if you need any help while compiling Firefox code. Thanks, Angrez On Fri, Jul 3, 2009 at 6:45 PM, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello Angrez, To build the XPI, do you have to go through the whole Firefox building process? I've seen guides to build Firefox+JSSh, but I don't know if it creates the extension file separately or not :) I could try to build it for Linux. FK On Fri, Jul 3, 2009 at 9:44 AM, Angrez Singh ang...@gmail.com wrote: Sure let me know where it fails On Fri, Jul 3, 2009 at 5:28 PM, Gonza gonzalogte...@gmail.com wrote: Works fine! After testing it for a while I can tell you It works! I've several TCs, if any fails because jssh, I'll let you know. Thanks, Gonza- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
I do not have automation knowledge then how much time I will need to learn everything of Watir? Swapnal On Fri, Jul 10, 2009 at 12:04 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: If you have automation knowledge, it shouldn't take much time to learn. First start it and you will know about it. Regards, Kiran Y On Fri, Jul 10, 2009 at 12:02 PM, Swap swapnal.sa...@gmail.com wrote: Hello, I am new to learn Watir. And my company ask me the estimation to learn the Watir. Can you please tell me how much time the learner will need to understand and learn Watir? Please reply. Thanks in advance Swapnal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
I am working with watir for more than 3 years now and still learning. The thing is this: You do and learn , not you learn and then do. Basically, what I would suggest is start using Watir, start automating some pages in your web application, then you will be right person to give the answer to the question you asked. - Angrez On Fri, Jul 10, 2009 at 12:41 PM, Swapnal swapnal.sa...@gmail.com wrote: I do not have automation knowledge then how much time I will need to learn everything of Watir? Swapnal On Fri, Jul 10, 2009 at 12:04 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: If you have automation knowledge, it shouldn't take much time to learn. First start it and you will know about it. Regards, Kiran Y On Fri, Jul 10, 2009 at 12:02 PM, Swap swapnal.sa...@gmail.com wrote: Hello, I am new to learn Watir. And my company ask me the estimation to learn the Watir. Can you please tell me how much time the learner will need to understand and learn Watir? Please reply. Thanks in advance Swapnal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
If you don't have ANY kind of automation or programing knowledge in ruby then it will take a hell of a lot time. :) If not, then it should be intuitive enough. I learned the BASICS in a few days only. But then again, i have 5 years automation knowledge booth web and gui. Skarlso. --- On Fri, 7/10/09, Angrez Singh ang...@gmail.com wrote: From: Angrez Singh ang...@gmail.com Subject: [wtr-general] Re: Time to learn Watir To: watir-general@googlegroups.com Date: Friday, July 10, 2009, 9:18 AM I am working with watir for more than 3 years now and still learning. The thing is this: You do and learn , not you learn and then do. Basically, what I would suggest is start using Watir, start automating some pages in your web application, then you will be right person to give the answer to the question you asked. - Angrez On Fri, Jul 10, 2009 at 12:41 PM, Swapnal swapnal.sa...@gmail.com wrote: I do not have automation knowledge then how much time I will need to learn everything of Watir? Swapnal On Fri, Jul 10, 2009 at 12:04 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: If you have automation knowledge, it shouldn't take much time to learn. First start it and you will know about it. Regards, Kiran Y On Fri, Jul 10, 2009 at 12:02 PM, Swap swapnal.sa...@gmail.com wrote: Hello, I am new to learn Watir. And my company ask me the estimation to learn the Watir. Can you please tell me how much time the learner will need to understand and learn Watir? Please reply. Thanks in advance Swapnal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
It is very easy to learn and will definitely not take much time if you keep interest on learning :-) On Fri, Jul 10, 2009 at 12:41 PM, Swapnal swapnal.sa...@gmail.com wrote: I do not have automation knowledge then how much time I will need to learn everything of Watir? Swapnal On Fri, Jul 10, 2009 at 12:04 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: If you have automation knowledge, it shouldn't take much time to learn. First start it and you will know about it. Regards, Kiran Y On Fri, Jul 10, 2009 at 12:02 PM, Swap swapnal.sa...@gmail.com wrote: Hello, I am new to learn Watir. And my company ask me the estimation to learn the Watir. Can you please tell me how much time the learner will need to understand and learn Watir? Please reply. Thanks in advance Swapnal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
Personally I feel it wouldn't take much time to learn On Fri, Jul 10, 2009 at 12:43 PM, Prasad Vidala prasadvida...@gmail.comwrote: It is very easy to learn and will definitely not take much time if you keep interest on learning :-) On Fri, Jul 10, 2009 at 12:41 PM, Swapnal swapnal.sa...@gmail.com wrote: I do not have automation knowledge then how much time I will need to learn everything of Watir? Swapnal On Fri, Jul 10, 2009 at 12:04 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: If you have automation knowledge, it shouldn't take much time to learn. First start it and you will know about it. Regards, Kiran Y On Fri, Jul 10, 2009 at 12:02 PM, Swap swapnal.sa...@gmail.com wrote: Hello, I am new to learn Watir. And my company ask me the estimation to learn the Watir. Can you please tell me how much time the learner will need to understand and learn Watir? Please reply. Thanks in advance Swapnal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to get firefox window handle
Any info on this friends? On Fri, Jul 10, 2009 at 11:44 AM, Kinnu kiranyajaman...@gmail.com wrote: Hi Friends, I am using ie.hwnd in watir to get the browser handle. I have observed that there is no such property available in FireWatir. Is there any work around for this? basically what i want to do is to get the center point of the browser. Regards, Kinnu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir + Cruise Control
Marek, I started playing with Hudson recently. I was able to set it up and call my build script. I am still reading the documentation on how to make it all work nicely. If you have the time to share with us how you set it up to build the app and run tests, that would be very nice. Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to get firefox window handle
can you explain what you are trying to do by getting the handle of window? may be we can suggest some workaround to do the same in Firewatir? - Angrez On Fri, Jul 10, 2009 at 1:03 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: Any info on this friends? On Fri, Jul 10, 2009 at 11:44 AM, Kinnu kiranyajaman...@gmail.com wrote: Hi Friends, I am using ie.hwnd in watir to get the browser handle. I have observed that there is no such property available in FireWatir. Is there any work around for this? basically what i want to do is to get the center point of the browser. Regards, Kinnu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
On Fri, Jul 10, 2009 at 8:32 AM, Swap swapnal.sa...@gmail.com wrote: Can you please tell me how much time the learner will need to understand and learn Watir? If you have any programming experience, I think you will be surprised by how much you can do in just a day. I remember that I was able to install Watir and make log in test for our web application in a few hours. At the time Watir had a great tutorial that taught me all I needed to know in no time. Now, the tutorial is even better. :) My suggestions (with estimates): - browse http://watir.com/ (15 minutes) - read http://wiki.openqa.org/display/WTR/Quick+Start (60 minutes, installation included) - read http://wiki.openqa.org/display/WTR/Tutorial (a few hours) After you are done, you will be able to do almost everything you need. If you are stuck, ask here. If you like to listen to people talk, you can grab a few episodes of Watir Podcast (start with episode 1) where I talk with Watir users and developers about Watir. You can listen to that on your computer by downloading mp3 files (web site even has flash player so you can listed directly from the site), or you can listen to it on your iPod (the podcast is in iTunes) or similar mp3 player. The only problem could be if you have not programming and/or HTML knowledge, because the tutorial assumes that you have. That could slow you down a lot. Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to get firefox window handle
Hi Angrez, Thanks for your reply. Following is the step which I want to perform. Want to click on the center point of the firefox window and want to do some copy paste operation. This is required as I can't set text in the frame as body of compose window in my project had used frame. In IE following is the piece of code I was using def getClientCenterPoint(browser) myRect= * 16# store four LONGs getClientRect=Win32API.new(user32, GetClientRect, ['I','P'], 'I') getClientRect = Win32API.new('user32', 'FindWindowEx', ['P'] * 4, 'L') getClientRect.call(browser.hwnd, myRect) x,y,xpos,ypos=myRect.unpack() setCursorPos = Win32API.new(user32, SetCursorPos, ['I','I'], 'I') setCursorPos.Call(xpos.to_i/2+90,ypos.to_i/2+150) end Please let me know if you want any other details. Regards, Kinnu On Fri, Jul 10, 2009 at 1:33 PM, Angrez Singh ang...@gmail.com wrote: can you explain what you are trying to do by getting the handle of window? may be we can suggest some workaround to do the same in Firewatir? - Angrez On Fri, Jul 10, 2009 at 1:03 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: Any info on this friends? On Fri, Jul 10, 2009 at 11:44 AM, Kinnu kiranyajaman...@gmail.comwrote: Hi Friends, I am using ie.hwnd in watir to get the browser handle. I have observed that there is no such property available in FireWatir. Is there any work around for this? basically what i want to do is to get the center point of the browser. Regards, Kinnu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: How to get firefox window handle
Right now there is no support for hwnd in Firewatir. Can you use Win32API to get the handle of the window using the title? If yes, then you can use firefox title to get the handle. - Angrez On Fri, Jul 10, 2009 at 2:35 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: Hi Angrez, Thanks for your reply. Following is the step which I want to perform. Want to click on the center point of the firefox window and want to do some copy paste operation. This is required as I can't set text in the frame as body of compose window in my project had used frame. In IE following is the piece of code I was using def getClientCenterPoint(browser) myRect= * 16# store four LONGs getClientRect=Win32API.new(user32, GetClientRect, ['I','P'], 'I') getClientRect = Win32API.new('user32', 'FindWindowEx', ['P'] * 4, 'L') getClientRect.call(browser.hwnd, myRect) x,y,xpos,ypos=myRect.unpack() setCursorPos = Win32API.new(user32, SetCursorPos, ['I','I'], 'I') setCursorPos.Call(xpos.to_i/2+90,ypos.to_i/2+150) end Please let me know if you want any other details. Regards, Kinnu On Fri, Jul 10, 2009 at 1:33 PM, Angrez Singh ang...@gmail.com wrote: can you explain what you are trying to do by getting the handle of window? may be we can suggest some workaround to do the same in Firewatir? - Angrez On Fri, Jul 10, 2009 at 1:03 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: Any info on this friends? On Fri, Jul 10, 2009 at 11:44 AM, Kinnu kiranyajaman...@gmail.comwrote: Hi Friends, I am using ie.hwnd in watir to get the browser handle. I have observed that there is no such property available in FireWatir. Is there any work around for this? basically what i want to do is to get the center point of the browser. Regards, Kinnu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
I also started using it since last couple of months. I did have automation knowledge in QTP for 6 months, but then this thing fascinated me more. I am still learning, but I can suggest a start - Install Ruby and learn basics. Practice in irb (brush up your OOP concepts) - Then focus on learning WATIR. It is easy to understand. Even you can use WATIR without knowing Ruby well, but your script quality will depend on your Ruby knowledge. So, After a quick start with Ruby basics and Watir, keep learning Ruby side by side. On Fri, Jul 10, 2009 at 1:43 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jul 10, 2009 at 8:32 AM, Swap swapnal.sa...@gmail.com wrote: Can you please tell me how much time the learner will need to understand and learn Watir? If you have any programming experience, I think you will be surprised by how much you can do in just a day. I remember that I was able to install Watir and make log in test for our web application in a few hours. At the time Watir had a great tutorial that taught me all I needed to know in no time. Now, the tutorial is even better. :) My suggestions (with estimates): - browse http://watir.com/ (15 minutes) - read http://wiki.openqa.org/display/WTR/Quick+Start (60 minutes, installation included) - read http://wiki.openqa.org/display/WTR/Tutorial (a few hours) After you are done, you will be able to do almost everything you need. If you are stuck, ask here. If you like to listen to people talk, you can grab a few episodes of Watir Podcast (start with episode 1) where I talk with Watir users and developers about Watir. You can listen to that on your computer by downloading mp3 files (web site even has flash player so you can listed directly from the site), or you can listen to it on your iPod (the podcast is in iTunes) or similar mp3 player. The only problem could be if you have not programming and/or HTML knowledge, because the tutorial assumes that you have. That could slow you down a lot. Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
On Fri, Jul 10, 2009 at 1:08 PM, Smruti Ranjan Kar smrutiranjan@gmail.com wrote: After a quick start with Ruby basics and Watir, keep learning Ruby side by side. +1 Exactly the way I did it a few years ago. Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Getting error as - gem_original_require': no such file to load -- Xls (LoadError)
Hi, I have installed the ruby 1.8.6 and WATIR 1.6.2. I have created a script which fetches the data from excel sheet perform the operations. Then I have kept the following code in a common file inside 'Library' directory which gets data from excel sheet. require 'Xls' # Xls.rb is in the same directory(Library) # This function is used to fetch the data from excelsheet. def getdata() xlFile = XLS.new(Dir.pwd + '../Test-Data/Data.xls') #grab the data file mydata = xlFile.getRowRecords('Test Data','Sheet1') #pull data records from excel return mydata xlFile.close end All the functions related to excel operations are kept Xls.rb file which is in same directory.Then I am calling the function getdata() from another file from parent directory as below. require 'test/unit' require 'Library/common' require 'watir' Watir.options_file = 'E:/Data316/RSC-ePlatform/Automation/options.yml' class Gmail Test::Unit::TestCase def test_Gmail_Working # Calling getdata function @myData = getdata() end end But when I ran the above script I got following error. c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- Xls (LoadError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from ./Library/common.rb:5 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 'gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from ESR6.rb:7 --- Please help me on the above issue. Thanks Regards Durgesh. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: getting error while running watir script on firefox 3.0.11
Hi, After enabling telnet, i have uninstalled the firefox version 3.5 and installed version 3.0. The remaining steps are same like installing JSSH extension(0.9) and changing the firefox settings. Then it started working fine. Regards, Aparna On Jul 10, 11:48 am, Angrez Singh ang...@gmail.com wrote: Can you please tell what you did this time that it started working so that it benefits other people also? On Thu, Jul 9, 2009 at 7:00 PM, aparna aparna.m...@gmail.com wrote: Hi Angrez, finally its working fine for me... Thanks Regards, Aparna On Jul 9, 2:48 pm, Angrez Singh ang...@gmail.com wrote: Can everybody see if they did all the steps mentioned in the installation document? If they are still facing the problem then we can take it from there Thanks, Angrez On Thu, Jul 9, 2009 at 2:44 PM, khaja shaik khaja.sh...@gmail.com wrote: Hi, I am also getting same error on windows xp. after running the command i got error saying that Connection failed Thanks, Khaja shariff On Thu, Jul 9, 2009 at 11:51 AM, Angrez Singh ang...@gmail.com wrote: After enabling it do this: Start - run - [firefox installation directory]\firefox.exe -jssh and then Start - run - cmd - type telnet localhost 9997 Let me know the results. - Angrez On Thu, Jul 9, 2009 at 11:03 AM, aparna aparna.m...@gmail.com wrote: Hi Angrez, I have enabled the telnet by following the steps given in the link and then typed telnet localhost 9997 on command prompt. Now am getting an error connecting to localhost...could not open connection to the host, on port 9997: connect failed Thanks, Aparna On Jul 8, 10:50 pm, Angrez Singh ang...@gmail.com wrote: telnet is not enabled by default in vista, I think that may be the cause of the problem. Can you try enabling telnet using the steps described here: http://www.gohacking.com/2008/09/how-to-enable-telnet-command-in-vist... After that repeat what I said in my last email and let me know the result. Thanks, Angrez On Wed, Jul 8, 2009 at 6:53 PM, aparna aparna.m...@gmail.com wrote: Hi Angrez, When i did this, Start - Run - [firefox installation directory] \firefox.exe -jssh firefox home page is getting opened. When i typed telnet localhost 9997 on command prompt, it is saying that telnet is not recognised as an internal or external command aparna On Jul 8, 5:05 pm, Angrez Singh ang...@gmail.com wrote: just try this: Start - Run - [firefox installation directory]\firefox.exe -jssh Now open command prompt and type telnet localhost 9997 Let me know the results. - Angrez On Wed, Jul 8, 2009 at 3:57 PM, aparna aparna.m...@gmail.com wrote: Hi, when i tried running the script through command prompt, firefox home page is getting opened but the url mentioned in the script is not being taken by the firefox. Immediately after firefox home page getting opened, am getting the error which i have mentioned earlier. The same is the case when i run the script by pressing F5 key. Thanks Regards, Aparna On Jul 8, 12:39 pm, aparna aparna.m...@gmail.com wrote: sure. I will try that and let you know if any issues. Thanks, Aparna On Jul 8, 11:17 am, Angrez Singh ang...@gmail.com wrote: Just to make sure, when you try running the scripts you get the error that you mentioned in your mail. After that does firefox opens up or nothing happens. Also, can you try running the Firefox executable with -jssh option from run command as suggested by Kiran and let us know the results - Angrez On Wed, Jul 8, 2009 at 11:24 AM, kiran gki...@gmail.com wrote: Hi, Open 'firefox -jssh' from Run command and start running your scripts. Thanks, kiran. On Jul 8, 10:08 am, aparna aparna.m...@gmail.com wrote: Hi, JSSH addon is enabled in firefox. I have checked and then only tried to run the scripts. Regards, Aparna On Jul 7, 8:19 pm, Angrez Singh ang...@gmail.com wrote: AFAIK, firewatir starts firefox with -jssh option automatically. Just check if jssh addon is enabled in Firefox using the menu as suggested by Anu? - Angrez On Tue, Jul 7, 2009 at 7:06 PM, Anu Gangavaram anuwri...@gmail.com wrote: Did you start the Firefox with jssh option? You can also check if the jssh
[wtr-general] Re: getting error while running watir script on firefox 3.0.11
But at no point you said you were using Firefox 3.5, there is separate XPI for that? Its good that it started working. On Fri, Jul 10, 2009 at 6:27 PM, aparna aparna.m...@gmail.com wrote: Hi, After enabling telnet, i have uninstalled the firefox version 3.5 and installed version 3.0. The remaining steps are same like installing JSSH extension(0.9) and changing the firefox settings. Then it started working fine. Regards, Aparna On Jul 10, 11:48 am, Angrez Singh ang...@gmail.com wrote: Can you please tell what you did this time that it started working so that it benefits other people also? On Thu, Jul 9, 2009 at 7:00 PM, aparna aparna.m...@gmail.com wrote: Hi Angrez, finally its working fine for me... Thanks Regards, Aparna On Jul 9, 2:48 pm, Angrez Singh ang...@gmail.com wrote: Can everybody see if they did all the steps mentioned in the installation document? If they are still facing the problem then we can take it from there Thanks, Angrez On Thu, Jul 9, 2009 at 2:44 PM, khaja shaik khaja.sh...@gmail.com wrote: Hi, I am also getting same error on windows xp. after running the command i got error saying that Connection failed Thanks, Khaja shariff On Thu, Jul 9, 2009 at 11:51 AM, Angrez Singh ang...@gmail.com wrote: After enabling it do this: Start - run - [firefox installation directory]\firefox.exe -jssh and then Start - run - cmd - type telnet localhost 9997 Let me know the results. - Angrez On Thu, Jul 9, 2009 at 11:03 AM, aparna aparna.m...@gmail.com wrote: Hi Angrez, I have enabled the telnet by following the steps given in the link and then typed telnet localhost 9997 on command prompt. Now am getting an error connecting to localhost...could not open connection to the host, on port 9997: connect failed Thanks, Aparna On Jul 8, 10:50 pm, Angrez Singh ang...@gmail.com wrote: telnet is not enabled by default in vista, I think that may be the cause of the problem. Can you try enabling telnet using the steps described here: http://www.gohacking.com/2008/09/how-to-enable-telnet-command-in-vist. .. After that repeat what I said in my last email and let me know the result. Thanks, Angrez On Wed, Jul 8, 2009 at 6:53 PM, aparna aparna.m...@gmail.com wrote: Hi Angrez, When i did this, Start - Run - [firefox installation directory] \firefox.exe -jssh firefox home page is getting opened. When i typed telnet localhost 9997 on command prompt, it is saying that telnet is not recognised as an internal or external command aparna On Jul 8, 5:05 pm, Angrez Singh ang...@gmail.com wrote: just try this: Start - Run - [firefox installation directory]\firefox.exe -jssh Now open command prompt and type telnet localhost 9997 Let me know the results. - Angrez On Wed, Jul 8, 2009 at 3:57 PM, aparna aparna.m...@gmail.com wrote: Hi, when i tried running the script through command prompt, firefox home page is getting opened but the url mentioned in the script is not being taken by the firefox. Immediately after firefox home page getting opened, am getting the error which i have mentioned earlier. The same is the case when i run the script by pressing F5 key. Thanks Regards, Aparna On Jul 8, 12:39 pm, aparna aparna.m...@gmail.com wrote: sure. I will try that and let you know if any issues. Thanks, Aparna On Jul 8, 11:17 am, Angrez Singh ang...@gmail.com wrote: Just to make sure, when you try running the scripts you get the error that you mentioned in your mail. After that does firefox opens up or nothing happens. Also, can you try running the Firefox executable with -jssh option from run command as suggested by Kiran and let us know the results - Angrez On Wed, Jul 8, 2009 at 11:24 AM, kiran gki...@gmail.com wrote: Hi, Open 'firefox -jssh' from Run command and start running your scripts. Thanks, kiran. On Jul 8, 10:08 am, aparna aparna.m...@gmail.com wrote: Hi, JSSH addon is enabled in firefox. I have checked and then only tried to run the scripts. Regards, Aparna On Jul 7, 8:19 pm, Angrez Singh ang...@gmail.com wrote: AFAIK, firewatir starts firefox with -jssh option
[wtr-general] Re: Firefox 3.5 compatible with FireWatir?
Hi Angrez. Thanks for getting back to me. The error console says: Error: Components.classes['@mozilla.org/jssh-server;1'] is undefined Source File: file:///C:/Documents%20and%20Settings/baracal/Application%20Data/Mozilla/Firefox/Profiles/bmak0f7g.default/extensions/j...@extensions.mozilla.org/components/nsJSShStarter.js Line: 133 Thanks, Al B. On Jul 10, 2:50 am, Angrez Singh ang...@gmail.com wrote: Can you check event viewer/firefox error console to check if XPI has been installed correctly? On Thu, Jul 9, 2009 at 7:46 PM, Al B. a...@comcast.net wrote: Hi Angrez, I tried the steps in your July 8 post, using the XPI for Windows that you posted on July 3, and got the following results when I tried to run Firewatir: C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:271:in `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option (Watir::Exception::UnableToStartJSShException) from C:/Ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/ firewatir/firefox.rb:161:in `initialize' from benchmark.rb:11:in `new' from benchmark.rb:11 Also, I couldn't telnet to port 9997. I don't have a development environment with which to build Firefox, so I'm stuck. Please help! Thanks, Al B. On Jul 8, 2:05 pm, Angrez Singh ang...@gmail.com wrote: The think is this the XPI that is generated can be installed only on Firefox 1.x as the format in which it is generated works only on that version. From version 2.x the format of the XPI has changed. You can try the following solution: 1. Unpack the XPI that works with Firefox 3.0.x and the newly created XPI for Firefox 3.5 2. Make sure the structure i.e. folder structure is same as that for 3.0.x XPI 3. Copy install.rdf file from 3.0.x XPI to 3.5 XPI. Open the file and change the max version to 3.5+ 4. Zip the 3.5.x folder 5. Rename it to .xpi Let me know if that works. - Angrez On Wed, Jul 8, 2009 at 6:59 PM, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello Angrez, What are these tweaks you mentioned? I have successfully compiled Firefox but like you said, I can't use the generated XPI :) Thanks, FK On Mon, Jul 6, 2009 at 4:01 AM, Angrez Singh ang...@gmail.com wrote: You need to build Firefox with the JSSh extension enabled. To create the XPI go to JSSh directory and say make xpi that will generate the XPI. The only problem with the generated XPI is that its format is compatible with only Firefox 1.5.x versions. We need to tweak the XPI (nothing but a zip file) a bit. Let me know if you need any help while compiling Firefox code. Thanks, Angrez On Fri, Jul 3, 2009 at 6:45 PM, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello Angrez, To build the XPI, do you have to go through the whole Firefox building process? I've seen guides to build Firefox+JSSh, but I don't know if it creates the extension file separately or not :) I could try to build it for Linux. FK On Fri, Jul 3, 2009 at 9:44 AM, Angrez Singh ang...@gmail.com wrote: Sure let me know where it fails On Fri, Jul 3, 2009 at 5:28 PM, Gonza gonzalogte...@gmail.com wrote: Works fine! After testing it for a while I can tell you It works! I've several TCs, if any fails because jssh, I'll let you know. Thanks, Gonza- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
I have relatively no programming experience. I started intensely learning Watir/Ruby 7 months ago. While I've come a long way, I know there is so much I don't know about. I would agree that you will need to learn Watir AND Ruby side by side. As a result, I managed to write a lot of automation scripts for my company. Needless to say, I was able to avoid the multiple layoffs we have had recently! :) On Jul 10, 4:41 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jul 10, 2009 at 1:08 PM, Smruti Ranjan Kar smrutiranjan@gmail.com wrote: After a quick start with Ruby basics and Watir, keep learning Ruby side by side. +1 Exactly the way I did it a few years ago. Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
if one has knowledge of automation then learning watir should only take around 1 month. However if automation/programming background then it can take a fair bit of time On Fri, Jul 10, 2009 at 9:30 PM, Georgegeorge.sand...@gmail.com wrote: I have relatively no programming experience. I started intensely learning Watir/Ruby 7 months ago. While I've come a long way, I know there is so much I don't know about. I would agree that you will need to learn Watir AND Ruby side by side. As a result, I managed to write a lot of automation scripts for my company. Needless to say, I was able to avoid the multiple layoffs we have had recently! :) On Jul 10, 4:41 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri, Jul 10, 2009 at 1:08 PM, Smruti Ranjan Kar smrutiranjan@gmail.com wrote: After a quick start with Ruby basics and Watir, keep learning Ruby side by side. +1 Exactly the way I did it a few years ago. Željko -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir + Cruise Control
Thank you for the response. Unfortunately, we are already pretty well entrenched with Cruise Control here and aren't really looking to change to a new system. -Dylan On Jul 9, 5:03 pm, marekj marekj@gmail.com wrote: I use Hudson. has a ruby and rake plugin. I use custom workspace for all jobs. The test code does not need to be checked out ever time. jobs triggered by rake tasks calling ci_reporter as dependency (the Test::Unit version) and task body just calls TestRunner.run TestCaseName TestCases are Watir::TestCase classes but each method is a collection of examples using Rspec matchers instead of assertions Hudson post-job collects the xml from test/results/*.xml generated b ci_reporter Ease and Joy (for now) my next step is to actually convert to Rspec ExampleGroups instead of TestCase And then covert ci_reporter to use rspec instead of testunit, should be painless but takes time I have about 6 hours of tests (all the slow ones included) about 20 jobs. And few jobs that are triggers I juse buildWithParameters options so I can pass some ENV variables into Hudson that's about it marekj Watirloo: Semantic Page Objects in UseCaseshttp://github.com/marekj/watirloo/ On Thu, Jul 9, 2009 at 12:58 PM, Dylanmej...@gmail.com wrote: Does anyone know of a good tutorial/step-by-step instructions for how to integrate watir/ruby into a cruise control build cycle. I have 1 xml output file (from ci_reporter) and I want my script to run after the build and then integrate the xml results into the cruise control output. Thanks! -Dylan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
On Jul 10, 9:06 am, karim rayani karim@gmail.com wrote: if one has knowledge of automation then learning watir should only take around 1 month. However if automation/programming background then it can take a fair bit of time I could not agree more. A lot also has to do with aptitude. Automation is a type of programming, some people have a nack for that, others do not. If you are someone to whom programming makes 'sense' then you will probably pick things up quickly no matter the language or tool. A great book to help you learn some of the basic of programming in RUBY is Everyday Scripting with Ruby by Brian Marick Test automation is in many ways an art, there's a lot of tricks of the trade as it were. some of them you can find here and there in books etc, but much of it is stuff you learn by doing. little things like always starting off a large batch of tests with both a test you expect to pass, but also one that will intentionally FAIL, and making sure that you in fact detect that it DID fail.. (so you know your stuff can actually properly detect and report when something fails, because well if that's broken then it can look like everthing is working, when in fact main tests are failing and it's just not being properly reported) Web based testing also requires that you have at least a basic understanding of both the HTTP protocol (at least understanding how things pass back and forth between the browser and the server), and the HTML language used for web-pages, and how it can call javascript to enable dynamic functionality at the client side (which doesn't hit the webserver in many cases). Because watir interacts with the browser, you need to have at least a basic understanding of what makes up a web page, and what the types of elements on the page are etc. But really it all depends on you, and your background, aptitude, and experience. Some people are going to be able to pick this stuff up really quickly, for others it may take a lot longer, and for still others it's time to find a different line or work. I recently trained a co-worker who understands the basics of web pages, and has tested for years, but had zero experience with programming, or automation. and in a week he was starting to write watir automation on his own. not terribly fast, and with a bunch of questions, but he was producing tests.. (we utilize a combination of Watir, the Watircraft framework, and Cucumber for our stuff) a few months down the road and he's still learning about stuff as needed, but is largely able to work on his own, and a majority of the questions are not 'how do I write the watir code for this but more related to how the actual tested app is supposed to behave, or details of the user actions we are emulating. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir + Cruise Control
On Jul 9, 10:58 am, Dylan mej...@gmail.com wrote: Does anyone know of a good tutorial/step-by-step instructions for how to integrate watir/ruby into a cruise control build cycle. I have 1 xml output file (from ci_reporter) and I want my script to run after the build and then integrate the xml results into the cruise control output. Thanks! -Dylan Did you try a web search? http://www.lmgtfy.com/?q=CruiseControl+Watir looks like some good stuff to be found from people who have done this --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: run all watircraft specs
i guess using the rake command we can run alll the spec and then the result is stored in and index.html file something like rake specs/spec On Sat, Jul 11, 2009 at 2:03 AM, Steveshaml...@twia.org wrote: The following seems to work: spec xxx.rb yyy.rb zzz.rb -fs -- Regards, Alkarim Rayani --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Time to learn Watir
Hello Swapnal, If you have a curiosity for computers in general and like to learn if you enjoy 'chasing the 'rabbit', you will do well. Prior experience with automation and programming will make the journey shorter - approx. 3 months. No experience - 6 -9 months to be productive. I'm not saying that it's easy, but I can say that it's fun. Try the best you can.then post questions here. Good luck, Darryl On Jul 10, 2:55 pm, Chuck van der Linden sqa...@gmail.com wrote: On Jul 10, 9:06 am, karim rayani karim@gmail.com wrote: if one has knowledge of automation then learning watir should only take around 1 month. However if automation/programming background then it can take a fair bit of time I could not agree more. A lot also has to do with aptitude. Automation is a type of programming, some people have a nack for that, others do not. If you are someone to whom programming makes 'sense' then you will probably pick things up quickly no matter the language or tool. A great book to help you learn some of the basic of programming in RUBY is Everyday Scripting with Ruby by Brian Marick Test automation is in many ways an art, there's a lot of tricks of the trade as it were. some of them you can find here and there in books etc, but much of it is stuff you learn by doing. little things like always starting off a large batch of tests with both a test you expect to pass, but also one that will intentionally FAIL, and making sure that you in fact detect that it DID fail.. (so you know your stuff can actually properly detect and report when something fails, because well if that's broken then it can look like everthing is working, when in fact main tests are failing and it's just not being properly reported) Web based testing also requires that you have at least a basic understanding of both the HTTP protocol (at least understanding how things pass back and forth between the browser and the server), and the HTML language used for web-pages, and how it can call javascript to enable dynamic functionality at the client side (which doesn't hit the webserver in many cases). Because watir interacts with the browser, you need to have at least a basic understanding of what makes up a web page, and what the types of elements on the page are etc. But really it all depends on you, and your background, aptitude, and experience. Some people are going to be able to pick this stuff up really quickly, for others it may take a lot longer, and for still others it's time to find a different line or work. I recently trained a co-worker who understands the basics of web pages, and has tested for years, but had zero experience with programming, or automation. and in a week he was starting to write watir automation on his own. not terribly fast, and with a bunch of questions, but he was producing tests.. (we utilize a combination of Watir, the Watircraft framework, and Cucumber for our stuff) a few months down the road and he's still learning about stuff as needed, but is largely able to work on his own, and a majority of the questions are not 'how do I write the watir code for this but more related to how the actual tested app is supposed to behave, or details of the user actions we are emulating. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Issue with Select List
I agree with you, If this helps, whenever i do a select event on that list using watir, it kinda like hangs the UI and then the select list doesn't performs it normal operation, which was whatever is selected on the list should be displayed in the text box. The text box is a read only so i cannot do any .set operations on it. Have tries onfocus, onchange, onblur, onclick all events i could possibly fire.. and in combinations. Tried the TAB key event too. Is there any Sync problem? The site only works with IE so cannot do reverse engineering with Firebug, is there something similar as firebug for IE?? How do i get to know which events are fired what could i possibly use here?? Thanks regards Ravinder Singroha +91-9717196269 On Sat, Jul 11, 2009 at 1:11 AM, Chuck van der Linden sqa...@gmail.comwrote: I notice there's onfocus.. Potentially the object itself is being changed slightly when the focus hits it.. so the page code you are looking at, may not be what's there the instant someone has clicked the box to enter a change. I'd use the dev toolbar, or firebug and have a REALLY close look at what happens to things inside the dom the moment someone clicks or otherwise (via via pressing the tab key) sets the focus onto that item. There may be something that has to happen then that primes the pump, and without that happening nothing works.. . Sites that are that highly event driven can be a real challenge.. you sometimes have to reverse engineer stuff by watching what happens as the site responds to each user action such as mouseclicks and key presses. Also look at what happens if you do things like stick a string into the clipboard, right-click that area and paste in the value, (which is closer to using the .set method than typing char by char, especially on a page with an element setup to react to every single stinking keypress... On Jul 9, 4:05 am, Ravinder Singroha ravindersingr...@gmail.com wrote: Hi Bhaskar We tried almost all set of combination like onchange,onblur n all events but its not working. is there another way ? Thanks Regards Ravinder Singroha On Jul 9, 3:26 am, Powerglide bhaskar.sundar...@gmail.com wrote: Hi, Did you try issuing onblur or onchange ie.select_list(:name,ABC).select(value) ie.select_list(:name,ABC).fire_event(onblur) # if this does'nt work then try ie.select_list(:name,ABC).fire_event(onchange) Regards, Bhaskar On Jul 7, 11:10 pm, Ravinder Singroha ravindersingr...@gmail.com wrote: Hi I have a scenario in which, if i chose a value in a select list, the same value is filled in a text box given by calling an onchange event. code looks like:select name=ABC onChange=onChangeTerm ('ABC','XYZ') onfocus=enterField(this) size=1 stype=Selection input decimals=0 elength=3 name=XYZ onblur=validateField (this) onfocus=enterField(this) onkeypress=NumberKeyCheck() stype=Number type=text value=0 / The problem with this is when i do it manually, whatever value i chose in select list, it gets filled in the text box but when i do using the function: ie.select_list(:name,ABC).select(value) it selects a value but doesn' fills the text box. I tried the fire events also but no help. Can anyone in the group please help me with this issue. I am using - [watir -1.6.2] i have a chat with developers and he told to fire onfocus then onchange event, after selecting the value. i tried that and other combination too but no success so far. is there anything else i am missing on in here. i have tried it with QTP and open source Selenium its working there, but its not working with Watir, is this a know issue with watir ? Thanks Ravinder Singroha- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] How Watir Works
Hi All Is there any document or website which explains how watir works? How watir finds an element using the physical attributes? how watir waits for browser to reach a sync state? is that information available freely somewhere? Thanks regards Ravinder Singroha +91-9717196269 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---