[wtr-general] Re: autoit

2009-03-10 Thread jam
Hi, Its already installed.. Thanks, Jam On Mar 9, 11:59 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: Install auto it. -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of jam Sent: Monday, March 09, 2009 1:56 PM

[wtr-general] Pop up handling

2009-03-10 Thread jitu
Hi, how do i handle javascript pop up as i tried with autoit as well as winclicker. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to

[wtr-general] Re: clicking on a link, with certain parameters changing every time

2009-03-10 Thread Rasika
I wish unique ID or Name attribute could be added but it's not possible. So, I am still using index way. So far it's working fine, but I am still looking for a better solution. Thanks for responses :) On Mar 6, 2:30 am, SuperKevy kpe...@scholarshipamerica.org wrote: The thread about adding a

[wtr-general] How to change the array to a string?

2009-03-10 Thread wesley chen
Suppose I have an array arr1 like: [2, 3, [2, 3, 2]] When I use: p arr1, I will get: [2, 3, [2, 3, 2]] I would like to save the [2, 3, [2, 3, 2]] as a string [2, 3, [2, 3, 2]], how to make it? Appreciated to any suggestion. Thanks. Wesley Chen.

[wtr-general] How to shrink to fit in Excel?

2009-03-10 Thread wesley chen
When I practice on excel methods, I can make the columns a:d to autoFit by: @@worksheet.columns(a:d).AutoFit Is there any method shrink to fit? Can anybody provide the documents or url talking about MS excel methods? Appreciate to any suggestion. Thanks. Wesley Chen.

[wtr-general] Re: autoit

2009-03-10 Thread sai
You need to require 'watir/ie' to use Watir.autoit. Regards, Sai On Mar 10, 12:15 pm, jam ruby.wa...@gmail.com wrote: Hi, Its already installed.. Thanks, Jam On Mar 9, 11:59 pm, Darin Duphorn dduph...@redbrickhealth.com wrote: Install auto it. -Original Message- From:

[wtr-general] Re: to click a button with Onclick as its attribute

2009-03-10 Thread Joaquin Rivera Padron
is it too difficult to define the id? check the rdoc, there are others, but unique should be id (html specs) 2009/3/10 nagmani vm nagman...@gmail.com id also not defined what other option is there to identify?? On 3/10/09, Joaquin Rivera Padron joahk...@gmail.com wrote: ie.button(:id,

[wtr-general] Re: to click a button with Onclick as its attribute

2009-03-10 Thread kiran yajamanyam
Send a screen shot of the attributes. That will help I think Regards, Krian Y On Tue, Mar 10, 2009 at 5:05 PM, nagmani vm nagman...@gmail.com wrote: id also not defined what other option is there to identify?? On 3/10/09, Joaquin Rivera Padron joahk...@gmail.com wrote: ie.button(:id,

[wtr-general] Re: to click a button with Onclick as its attribute

2009-03-10 Thread bwaybandit
can u post the html that describes your button? On Mar 10, 6:45 am, Nagu nagman...@gmail.com wrote: I have a button in my application and its having 2 properties/ attributes on click and type.the values are onclick:this.value=check (this.form.selections) and type:button.So how can i click

[wtr-general] Req to join this grp

2009-03-10 Thread bharath
Hi, I am interested in joining to this grp since i am very new to watir. Kindly accept... Thanks in advance, Bharath --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group,

[wtr-general] Read value from a field

2009-03-10 Thread maximore
I am looking for a way to read back from a form field? any idea will be appreciated --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to

[wtr-general] Re: How to shrink to fit in Excel?

2009-03-10 Thread Tiffany Fodor
Hey Wesley! I've never seen anything like that, but I've never looked for it either. This blog has some great examples on working with excel in ruby. Maybe you can find what you're looking for there. http://rubyonwindows.blogspot.com/ -Tiffany On Mar 10, 3:56 am, wesley chen

[wtr-general] Re: Need help

2009-03-10 Thread Tiffany Fodor
Check this thread: http://tinyurl.com/bshljz Hope this helps! -Tiffany On Mar 10, 8:58 am, BR bharath.raja...@gmail.com wrote: Hi, I get this error every time i execute this: ie = Watir::IE.new And the error displayed is: NameError: uninitialized constant Windows::API::Error        

[wtr-general] Re: Read value from a field

2009-03-10 Thread Tiffany Fodor
Have you tried this? my_text = ie.form(:name, 'my_form').value If that doesn't work, you might want to verify the field is actually a form and not a text_field. Hope this helps! -Tiffany On Mar 10, 7:44 am, maximore hri...@gmail.com wrote:  I am looking for a way to read back  from  a  form

[wtr-general] Re: Reading values in a field

2009-03-10 Thread SQAPro
three things: 1) fix the typo.. ie.test_field will give you an undefined method error.. (heh I make that same typo myself a LOT.. my fngers like to type 'test' instead of 'text' go figure) 2) you are missing a colon in front of 'name' the format for these things is always

[wtr-general] Re: How to add any data into the EXCEL sheet using Excel interface class

2009-03-10 Thread Tiffany Fodor
Hi! Have you verified that you're getting data into myData? I think you need to specify a cell range and worksheet for the data: myData = xlFile.getRowRecords('A1:Z50', 'Example') where 'Example' is the name of your worksheet. Hope this helps! -Tiffany On Mar 10, 5:47 am, rrash586

[wtr-general] Re: to click a button with Onclick as its attribute

2009-03-10 Thread SQAPro
If all else fails you can use :index usually to identify an element as the nth occurance of that element on the page. Personally I REALLY hate doing that because it's one of the most fragile things you can do other than using specific x,y coordinates and almost always results in code that

[wtr-general] Re: to click a button with Onclick as its attribute

2009-03-10 Thread SQAPro
FYI 'onclick' isn't a property of the button.. it's a javascript event type, in this case it's defining what actions the java code is to take when the event occurs (e.g. when the button is clicked) You can't use that as a means to identify the button. On Mar 10, 3:45 am, Nagu

[wtr-general] Re: Read value from a field

2009-03-10 Thread maximore
field is text, should the Ie.text_field() do the trick ? On Mar 10, 11:16 am, Tiffany Fodor tcfo...@comcast.net wrote: Have you tried this? my_text = ie.form(:name, 'my_form').value If that doesn't work, you might want to verify the field is actually a form and not a text_field.

[wtr-general] Re: Read value from a field

2009-03-10 Thread maximore
yes thanks let give it a try On Mar 10, 1:29 pm, Tiffany Fodor tcfo...@comcast.net wrote: If you're trying to get the value from a text field: my_text = ie.text_field(:name, 'text field name').value -Tiffany On Mar 10, 12:22 pm, maximore hri...@gmail.com wrote:    field is text,

[wtr-general] Re: Read value from a field

2009-03-10 Thread SQAPro
pretty sure that's what I just told him in another thread here a few hours ago.. On Mar 10, 11:29 am, Tiffany Fodor tcfo...@comcast.net wrote: If you're trying to get the value from a text field: my_text = ie.text_field(:name, 'text field name').value -Tiffany On Mar 10, 12:22 pm,

[wtr-general] Re: How to shrink to fit in Excel?

2009-03-10 Thread George
Thanks for the link, Tiffany! A lot of good stuff here. On Mar 10, 9:01 am, Tiffany Fodor tcfo...@comcast.net wrote: Hey Wesley! I've never seen anything like that, but I've never looked for it either.  This blog has some great examples on working with excel in ruby.  Maybe you can find

[wtr-general] Re: Read value from a field

2009-03-10 Thread maximore
Thanks but it is not working although the program run and executed without any error message , The value read is not pass to the result. at this point I am not sure if the methods work or not. I am relative new to ruby On Mar 10, 1:46 pm, sqa...@gmail.com wrote: pretty sure that's what I

[wtr-general] Re: Read value from a field

2009-03-10 Thread SQAPro
Did you correct the typo and syntax error I noted in the other thread? What exact error are you getting What exact code are you trying to use? See my comments in the other thread about usng interactive ruby to troubleshoot stuff like this Have you worked through the watir tutorial? it has

[wtr-general] Preference for where to put example improvements?

2009-03-10 Thread Chuck vdL
I've been playing with the CLReport example html reporting class, I've added the concept of a 'blocked' test (e.g. if you were going to check the URL of a link, but the link doesn't exist) and also have what I think might be slightly more useful examples of how to use it (by creating a

[wtr-general] Re: installing watir behind a firewall on Windows

2009-03-10 Thread marekj
location like : C:\ruby\lib\ruby\gems\1.8\cache is where gem command copies gems to when it is installing them. I am not sure if there may be a conflict there. (just being paranoid) I would put all your *.gem files you pulled form machine1 to c:\tempgem\*.gem location first and I would not touch

[wtr-general] Re: How to automate site with Captcha?

2009-03-10 Thread marekj
Charley, Will there be any Annual Boiled Watir Award winners announced soon? marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ On Sat, Mar 7, 2009 at 4:17 PM, Charley Baker charley.ba...@gmail.comwrote: That's awesome, an automated way to handle the

[wtr-general] Re: How to shrink to fit in Excel?

2009-03-10 Thread wesley chen
Hi, Tiffany, Thank you very much. Thanks. Wesley Chen. On Wed, Mar 11, 2009 at 3:14 AM, George george.sand...@gmail.com wrote: Thanks for the link, Tiffany! A lot of good stuff here. On Mar 10, 9:01 am, Tiffany Fodor tcfo...@comcast.net wrote: Hey Wesley! I've never seen anything

[wtr-general] Re: Req to join this grp

2009-03-10 Thread nagmani vm
Ok sure most welcome am also new to this group On Tue, Mar 10, 2009 at 5:56 PM, bharath bharath.raja...@gmail.com wrote: Hi, I am interested in joining to this grp since i am very new to watir. Kindly accept... Thanks in advance, Bharath -- Thanks Regards, Nagmani V.M.