[wtr-general] Re: user experience response time script.
Thanks a lot for the quick help.. It works for me.. Also, I will definitely use Jmeter for performace Thanks Maumita On Aug 11, 7:01 pm, Felipe Knorr Kuhn fkn...@gmail.com wrote: Hello Maumita, As Tony said, you should probably stick to JMeter. But, if you really want to do that quickly with Ruby, you could try the following: t1 = Time.now Navigate through the site t2 = Time.now puts time taken: + t2-t1.to_s + seconds FK On Tue, Aug 11, 2009 at 9:25 AM, Tony ynot...@gmail.com wrote: Hi Maumita, The scenario you have described here is performance testing the shopping website. Would suggest you use jmeter or another performance test tool to do this. Watir is best used for functional testing. Thanks, Tony --~--~-~--~~~---~--~~ 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] Is there any way to run a watir script automatically in every hour.
Hi, We are developing a shopping site. I have written a script, it basically hit a WEB URL and capture the page load time - 1. It hits the home page 2. It hits the products page (This page has images of 9 items) For the above cases the script return me the time taken to load the page. Problems:- 1. One thing I observed that for case2, some time the script return the page load time before finishing the image loading. How can I solve this problem? 2. Is there any way to run a watir script automatically in every hour. Its urgent for my project related task. Thanks in advance. Maumita --~--~-~--~~~---~--~~ 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: Is there any way to run a watir script automatically in every hour.
Hi Maumita, 1. Not sure on this. 2. You can add your scripts to a batch file and run the batch file from task scheduler. Thanks, Tony --~--~-~--~~~---~--~~ 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: Is there any way to run a watir script automatically in every hour.
For Problem 1, its not elegant and there's probably a better way to do it, but you could create an array with all the id's of the images you need loaded, then do something like this: imgarr.each{ |img| Watir::Waiter.new(20).wait_until{ie.image(:id,img).exist?} } I think this will go through each image and wait till it exists. If an image doesn't get loaded in 20 seconds it will throw a Timeout Exception. I've had a lot of problems with the way Watir waits for things and haven't really found a good solution overall. -Dylan On Aug 12, 1:52 am, Tony ynot...@gmail.com wrote: Hi Maumita, 1. Not sure on this. 2. You can add your scripts to a batch file and run the batch file from task scheduler. Thanks, Tony --~--~-~--~~~---~--~~ 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: Firefox 3.5 compatible with FireWatir?
Hello all, I work in an office with developers using Linux, Mac, and Windows boxes. We have a set of regression tests written in FireWatir that we run on these various boxes. Since a couple of us (Mac and Windows) have upgraded to Firefox 3.5, the jssh plugins (on Mac jssh 0.1 and on Windows jssh 0.9) no longer work. I haven't yet updated Firefox on the Linux box to 3.5 (currently 3.0.13 with jssh 0.9), but I would like to eventually. Any suggestions, or news on updating the plugin for the different platforms? On Jul 16, 10:02 am, Al B. a...@comcast.net wrote: Hi Angrez, I tried it and it didn't work. I still get the same error in the error console. Regards, Al B. On Jul 16, 5:44 am, Angrez Singh ang...@gmail.com wrote: for those whom XPI is not working onFirefox3.5can you try installing Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) from here:http://www.microsoft.com/downloads/details.aspx?FamilyID=a5c84275-3b9... Let me know if this helps. Thanks, Angrez On Thu, Jul 16, 2009 at 1:59 PM, al3kc aleks.kiev...@gmail.com wrote: I have a similar error Failed to load XPCOM component: C:\Documents and Settings\username \Application Data\Mozilla\Firefox\Profiles\mk3pna4d.default\extensions \j...@extensions.mozilla.org\components\jssh.dll I don't have 'extensions' folder in mk3pna4d.default at all.- 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] Closing just tab (or window) with Firewatir
Hi all, First time posting. Forgive any mistakes please. I'm using Firewatir to test links on a page in Firefox, but I want to be able to close the tab and regain focus on the main page again. What I've got right now is: (browser is just Firefox.new) browser.link(:id, link).click browser.attach(:title, 'title of link').close But it closes the entire Firefox window, rather than just the 'title of link' tab. Is this possible to do in with Firewatir? Thanks. --~--~-~--~~~---~--~~ 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] Can I get to a row with no id from a row with an id?
I need to read contents from a row that does not have an id. That is, the HTML tag that designates the row is just TR. Therefore, I can't address it directly. Is there a way to address it indirectly? It happens that the tag for the prior row does have an id, e.g. TR id=xyz. Is there a way to tell Watir to go to the row following the one with the id? --~--~-~--~~~---~--~~ 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: Can I get to a row with no id from a row with an id?
Hi Steve! These may not be the slickest solutions, but in cases like this, here's what I do: If the data I want is always in the same row/column. my_table = ie.table(:name, 'appTable') my_text = my_table[2][3].text (where row 2, column 3 is where the text I want is displayed) If the data isn't always in the same row, I iterate through the rows in a table until I come across a row that has the information I want. my_table = ie.table(:name, 'appTable') my_table.rows.each do |row| if row.text.include?(Information I want) my_text = row[2].text end end (where 2 is the column where the text I want is displayed, but you could grab all the text and use string methods to get just the text you want) I use irb a lot to play with tables to see where the data is stored, for example: irb my_table = ie.table(:name, 'appTable') irb my_table[1][1].flash etc... this will flash row 1, column 1 in your table. Hope this helps! -Tiffany On Aug 12, 3:59 pm, Steve Hamlett shaml...@twia.org wrote: I need to read contents from a row that does not have an id. That is, the HTML tag that designates the row is just TR. Therefore, I can't address it directly. Is there a way to address it indirectly? It happens that the tag for the prior row does have an id, e.g. TR id=xyz. Is there a way to tell Watir to go to the row following the one with the id? --~--~-~--~~~---~--~~ 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: Right Click
Thanks! I had been so focused on a fire_event solution I totally spaced on this one. I had to alter it a bit, since that moves the cursor to the upper left hand corner of the element, which wasn't bringing up the specific right-click menu from inside the element. I added xoffset and yoffset as variables passed to right_click (with defaults of 0) so I can move the mouse into the element more with a call like ie.element(:id,//).right_click(30,10) Thank you so much for your help, I can't believe I missed that. :) -Dylan On Aug 12, 3:16 pm, tcfodor tcfo...@comcast.net wrote: Hi Dylan! Check here: http://wiki.openqa.org/display/WTR/Right+Click+an+Element Hope it helps! -Tiffany On Aug 12, 4:01 pm, Dylan mej...@gmail.com wrote: Hey all. I've scoured the group and the internet at large and haven't found a definitive answer on how to right-click an element. I've tried fire_event(oncontextmenu), and in some cases it has worked, but in the case I'm working on right now it doesn't. Is there a straightforward way to directly right click an element or am I out of luck? 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] looking for ruby test engineer
job description at: http://tbe.taleo.net/NA7/ats/careers/requisition.jsp?org=BIGFIXcws=1rid=97 contact sharon_al...@bigfix.com or sha...@ataunt.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 click the link in dynamically generated ajax content?
Hi Durgesh, Way 1 -- use sleep commands until the link was enabled. way 2 -- Still the field disabled then Watir gem code is here ... # File lib/watir/element.rb, line 283 def enabled? assert_exists return ! disabled end Thanks On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote: Hi Reveendran, Thanks a lot for the given code. But the code which I am getting is as follows: div class=prev_arrow_img a count=0 class=PageLinkDisable href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a /div Currently the 'Previous' link is disabled. But when I use verify statement it does not recognized that link is disabled. Thanks Regards Durgesh. --- On *Mon, 10/8/09, Raveendran P jazzezr...@gmail.com* wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Monday, 10 August, 2009, 9:51 AM Hi Durgesh, See the below example. 1. Uploading some imsges 2. In Runtime -- I will get some code in BOLDED Div's. I collected the info from that div and checked it. Still you are not clear then just copy and paste the Source code for that page. I will try more. CODE: def check_status sleep(2) * @status=$ie.div(:class,display-states).html @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s * @su...@block.include?(Success) @que...@block.include?(Queued) @uploadi...@block.include?(Uploading) @canc...@block.include?(Cancelled) @err...@block.include?(Error) if @succ == true return end if @queue == true sleep(20) check_status end if @uploading== true sleep(10) check_status end if @cancel== true $ie.link(:text,Retry) sleep(20) check_status end if @error== true $ie.link(:text,Retry) sleep(20) check_status end end end Thanks On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in wrote: Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On *Fri, 7/8/09, Raveendran P raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org * wrote: From: Raveendran P raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com Date: Friday, 7 August, 2009, 2:58 PM Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.comhttp://mc/compose?to=durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh -- Regards, P.Raveendran -- See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/ -- Regards, P.Raveendran http://raveendran.wordpress.com -- See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/ -- Regards, P.Raveendran http://raveendran.wordpress.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 fill the info in the TEXTAREA?
The text_field element should also work for text areas. -Dylan On Aug 12, 9:18 pm, yuping zhong littlezhong...@gmail.com wrote: Dear All, I am a new user of Watir. It is known to all that fills the info in the text_field is easy. But how to fill the info in the TEXTAREA? I give more info for about this TEXTAREA in the picture. Hope someone can help me. Many thanks! -Zhong how+to+fill+info+in+text+area.png 55KViewDownload --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---