[wtr-general] How to use looping structure in watir

2009-04-15 Thread spike
Hi I've a scenario where i've inserted around 20 users to a database, In my application of these 20 users only 2 users are displayed at a time in a table now i want to delete the last 10 users. For this first i need to click on the scrolling link and then select the checkbox and then click on

[wtr-general] How to collect return value of javascript using watir

2009-04-15 Thread Arpita Jain
I have a function Scroll() which is scrolling the scroller and and returning the top of the bar. I am calling this function using watir as @ie.document.parentWindow.eval('scroll()'), but I also want to collect the value Scroll() is returning. Please suggest some way to do this. Thanks in

[wtr-general] Re: can't open internet explorer

2009-04-15 Thread George
As long as Ruby and Watir are installed properly, this should work for you: require 'watir' ie = Watir::IE.new On Apr 14, 10:41 am, Samar Javid sfja...@gmail.com wrote: Hi I've tried several times to open internet explorer in watir but it doesn't work. I've tried following statements:

[wtr-general] Re: Watir Podcast #23 is live

2009-04-15 Thread Željko Filipin
On Wed, Apr 15, 2009 at 00:50, George george.sand...@gmail.com wrote: Zeljko, let me know if you need some original music...I have plenty to offer if you're interested. Yes! For you and anybody else reading this: I am always looking for music I can play on the podcast. If you would like to

[wtr-general] Re: the ie.goto() problem

2009-04-15 Thread Chai Taolun
Hi~ Thank you for your advice. It really help me a lot in the coding. This code is the first real ruby code I write. But seems ruby is so unfriendly to me. I just can not get it right. depressing thing... allen On Tue, Apr 14, 2009 at 2:31 PM, Chuck van der Linden sqa...@gmail.comwrote:

[wtr-general] How to get the Response code of URLs on the page?

2009-04-15 Thread Mahesh
I have the Ruby script written using 'net/http', 'watir', 'uri', 'open- uri' modules. I am able to get the response code by parsing the Hostname [Net::HTTP.new(#{final_link}, nil)]. The problem with this is i am able to get the response code for the kind of URLs linke this: www.yahoo.com,

[wtr-general] Problem when iterate through the table

2009-04-15 Thread Shaik Mohammed Firoz
table = $ie.table(:id, ctl00_ContentPlaceHolder1_tableDetails) gvrowcount = table.row_count_excluding_nested_tables From above statement i got the row count of table excluding nested tables using the method table.row_count_excluding_nested_tables . but when tried to iterate through the

[wtr-general] Re: JavaScript events timing problems with Watir

2009-04-15 Thread Jarmo Pertman
Well, for me the case is as following. User fills in some form and presses submit, which has onclick event attached to it, which in turn invokes JavaScript (not Java!) function, which validates form and if there are missing or invalid fields, submit will not be done and error message div will be

[wtr-general] click_no_wait can not make the popup come out

2009-04-15 Thread William
The html is a name=reboot id=reboot class=myAreaLink onclick=cb_reboot(); Reboot/a and i use ie.button(:id,reboot).click_no_wait but the popup frame can not come out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[wtr-general] Re: click_no_wait can not make the popup come out

2009-04-15 Thread bwaybandit
Does the popup appear when you use just click? On Apr 15, 7:14 am, William s...@grandstream.com wrote: The html is a name=reboot id=reboot class=myAreaLink onclick=cb_reboot();             Reboot/a and i use ie.button(:id,reboot).click_no_wait but the popup frame can not come out.

[wtr-general] Re: click_no_wait can not make the popup come out

2009-04-15 Thread William
yes,if I use click it would popup,but if i use this method i that it can not handle the javascript popup frame in my test. On Apr 15, 9:01 pm, bwaybandit lenridge...@gmail.com wrote: Does the popup appear when you use just click? On Apr 15, 7:14 am, William s...@grandstream.com wrote:

[wtr-general] Re: click_no_wait can not make the popup come out

2009-04-15 Thread William
Here is the method i handle the popup menu,maybe you can give some advise. def jsClick( ie,a, button, user_input=nil) waitTime=30 hwnd = ie.enabled_popup(waitTime) puts hwnd if (hwnd) w = WinClicker.new if ( user_input ) w.setTextValueForFileNameField(hwnd, #{user_input})

[wtr-general] firewatir and jssh revisited

2009-04-15 Thread Jeremy Mordkoff
My thread got hijacked L Can we go back to the original problem? As of right now, I cannot use firewatir at all because of this problem... In firebug, I can do var results = document.evaluate(//*[name()='vgtile' and @label='Hulu'], document, null,

[wtr-general] Re: firewatir and jssh revisited

2009-04-15 Thread Željko Filipin
On Wed, Apr 15, 2009 at 15:54, Jeremy Mordkoff j...@zeevee.com wrote: Is there a jssh forum? The last I heard about jssh is that it is abandonware. Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir

[wtr-general] Re: firewatir and jssh revisited

2009-04-15 Thread Jeremy Mordkoff
FYI...Right now, I'm working on windows XP SP3 with Firefox 3.0.8 and jssh 0.9 on a dell laptop. I also need to get this to work on Vista SP1 and Mac OS 10.5. My thread got hijacked L Can we go back to the original problem? As of right now, I cannot use firewatir at all because of this

[wtr-general] Re: firewatir and jssh revisited

2009-04-15 Thread Jeremy Mordkoff
That will make it hard for me to commit to using firewatir. Are there plans to move firewatir to a different technology or to perhaps incorporate jssh into firewater? It seems very strange to me that this much effort could be invested in a project when the under-pinnings are unsupported.

[wtr-general] Re: firewatir and jssh revisited

2009-04-15 Thread Željko Filipin
On Wed, Apr 15, 2009 at 16:11, Jeremy Mordkoff j...@zeevee.com wrote: Are there plans to move firewatir to a different technology I think Bret said in a podcast that they will move to something different. http://watirpodcast.com/bret-pettichord-on-firewatir/ Željko

[wtr-general] Re: Problem when iterate through the table

2009-04-15 Thread Alan Baird
Unfortunately I think that table.each still uses the old row_count method. If your problem is that the each itterator tries to access a non existent table row, the easiest way to get around this is to rescue the exception. See below: ...paste this html into an html file named tmp.html and

[wtr-general] Re: How to get the Response code of URLs on the page?

2009-04-15 Thread Chuck van der Linden
ok, we're off to a decent start with a good message subject. but unfortunately without a bit more in the way of details of what you are trying to do (e.g. a small code sample) and an example of the error you are getting (it throws an error isn't very helpful) it's unliklely that folks here

[wtr-general] Re: firewatir and jssh revisited

2009-04-15 Thread Angrez Singh
can you post HTML code for this? I'll look into it. - Angrez On Wed, Apr 15, 2009 at 7:24 PM, Jeremy Mordkoff j...@zeevee.com wrote: My thread got hijacked L Can we go back to the original problem? As of right now, I cannot use firewatir at all because of this problem… In firebug, I

[wtr-general] Re: Watir/Rspec

2009-04-15 Thread Chuck van der Linden
Scope issues can be very confusing and it sounds a lot like that's the core of your problem.. I'm frankly still wrapping my head around all the complexities of scope (being primarily a tester not a developer) and what I can tell you is this.. Investigate the Watircraft framework

[wtr-general] Re: JavaScript events timing problems with Watir

2009-04-15 Thread Chuck van der Linden
Are you sure what event the javascript is looking for? have you looked at the object on the page and seen what event handlers are defined for it? maybe it's not the 'click' event that it wants? maybe it wants some other sequence such as onfocus or onmouseup On Apr 15, 2:54 am, Jarmo Pertman

[wtr-general] Re: How to use looping structure in watir

2009-04-15 Thread Chuck van der Linden
if you know how many times you need to iterate, for example 10, then it's as simple as 10.times do your code to click the link end The ruby cheatsheet found in the watir wiki has some really basic examples of iteration. if that's not enough to get you going, I might suggest read a book or

[wtr-general] Re: Scripting a foreign subframe

2009-04-15 Thread Chuck van der Linden
did you try adding the domain for the sub-frame contents to the same security group (in IE) as the rest of the page? e.g. add them both to trusted sites. (presuming you are intimately familiar with both, and trust them both) I think this is actually not a bad security feature, you wouldn't

[wtr-general] Re: Watir users: What is your role at work?

2009-04-15 Thread Željko Filipin
I am just a tester. Ž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

[wtr-general] Re: Watir users: What is your role at work?

2009-04-15 Thread Leigh
I am a tester only. Leigh --~--~-~--~~~---~--~~ 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

[wtr-general] Test Results Report Methods

2009-04-15 Thread Jason Shelton
All, I have always used Excel as my test output/results format, but I would like to enhance this. I have spoken with our DBA, and, if necessary he will create a table in our database for my test automation results. What I am asking is if you all can recommend any techniques and/or

[wtr-general] Re: Test Results Report Methods

2009-04-15 Thread JArkelen
I create nice HTMl reports. On Apr 16, 12:19 am, Tiffany Fodor tcfo...@comcast.net wrote: Hi! I've been using ci_reporter to generate xml reports of my Test::Unit results (also works with RSpec) and then I use xsl to transform them to html.  It's not the best and I'm working on better

[wtr-general] Re: Test Results Report Methods

2009-04-15 Thread Chuck van der Linden
For performance data, it's hard to beat excel or a db, since that lets you create nice trending charts etc. Makes it really easy for upper management to see if things are getting better or worse, or when a sudden change occurs for better or worse. For pass/fail stuff here I was using the HTML

[wtr-general] Re: Test Results Report Methods

2009-04-15 Thread Paul Rogers
if you look in Lisa Crispins book, page 323, there is an example of a test reporting app like you describe. This was written in rails and was in use ( and still is ) at financial internet company. Disclaimer - I wrote this app ;-) I think there is a big opportunity for someone to write n open

[wtr-general] Re: about the flash watir example code

2009-04-15 Thread Fish
hi linden, thank you for your help, but it doesn't work, I think the id means object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=8,0,0,0 width=100 height=100 id=clickcolors align=middle you can find

[wtr-general] Re: How to use looping structure in watir

2009-04-15 Thread spike
thankyou very much... On Apr 16, 1:24 am, Chuck van der Linden sqa...@gmail.com wrote: if you know how many times you need to iterate, for example 10, then it's as simple as 10.times do   your code to click the link end The ruby cheatsheet found in the watir wiki has some really basic

[wtr-general] Re: Watir/Rspec

2009-04-15 Thread Bret Pettichord
I think you want to use an instance variable. Thus @browser instead of browser. You also need to read the docs on the newest version of Rspec, which needs an additional require if you want to run your scripts using ruby. Or you can use WatirCraft, which handles both of these issues for you.

[wtr-general] Re: click_no_wait and click! not working javascript popup

2009-04-15 Thread spike
Hi sir, thanks a lot for the solution it worked for me, since a week i had problem with handling popup. thankyou very much. On Mar 3, 8:52 pm, Jim Matthews jim_m...@swbell.net wrote: Here are the steps to reproduct the problem.  First bring up unittests \html\popups1.html in IE.

[wtr-general] Re: Test Results Report Methods

2009-04-15 Thread JArkelen
I'm currently using watir to develop a end-user performance testing tool (with x number of users generating http requests and 1 user running a watir script and do the actual measuring). For reporting, I store all raw data in csv files and then at the end of the test this raw data is used to

[wtr-general] Re: click_no_wait and click! not working javascript popup

2009-04-15 Thread spike
This solution worked fine for popup raised when a button is clicked, but it is not working for popup raised when clicked on a link, please suggest some solution On Mar 3, 8:52 pm, Jim Matthews jim_m...@swbell.net wrote: Here are the steps to reproduct the problem.  First bring up unittests