Re: [Wtr-general] Installation Problem

2007-02-02 Thread Rand Thacker
Oh, yeah. I forgot all about the "space in path" thing. And for even more help, try this URL: http://www.openqa.org/watir/ sometimes, I forget and go to the old site: http://wtr.rubyforge.org/ On 2/2/07, Ethan Jewett <[EMAIL PROTECTED]> wrote: It's been a while since I tried an executable i

Re: [Wtr-general] How to use for loop in watir script?

2006-08-10 Thread Rand Thacker
Well, you can do something like:st = ""5.times do |x|  st << "Joe" + x.to_sendie.text_field(:name, 'username').set(st)Results is the text_field called username being set to "Joe0Joe1Joe2Joe3Joe4" Hope that gives you some direction.Rand.On 8/10/06, Mayank <[EMAIL PROTECTED] > wrote:My requirement is

Re: [Wtr-general] Watir 1.5 Specifying Element in Form Error

2006-08-08 Thread Rand Thacker
If there's only one form on the page, isn't:ie.button(:src, 'https://www.entertainment.com/images/button_continue.gif').clickenough to click the button? Also, there was some discussion about images versus buttons.  I can't recall if they were trying to reference images that were not "buttons", but

Re: [Wtr-general] AWESOME Ruby Hacks

2006-07-26 Thread Rand Thacker
Hey, and as an aside, XP pro systems have ENV['HOMEPATH'], so you'd changeLOG = "#{ENV['HOME']}/.irb-history"toLOG = "#{ENV['HOMEPATH']}\\.irb-history" Worked like a charm for me.And, thanks to all for these great pointers.  Very helpful.On 7/26/06, Nick Sieger < [EMAIL PROTECTED]> wrote:On 7/26/06

Re: [Wtr-general] Rounding values

2006-07-20 Thread Rand Thacker
You could do something like this:x = (y/1 + 1) * 1Of course, if the exponent of the numbers changes, you might want to define a function that can put more intelligence in there. On 7/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi all,I want to verify if the text is correctly display

Re: [Wtr-general] for loop syntax??

2006-07-19 Thread Rand Thacker
Let's not forget the each_index method, then the size of the array no longer matters:pubInfoTextFields.each_index {|x|  Simple1.fill_text_field(pubInfoTextFields[x], pubInfo[x])   puts "pubInfoTextFields = "+pubInfoTextFields[x]+"   pubInfo = "+pubInfo[x] }On 7/19/06, Paul Carvalho <[EMAIL PROTECTE

Re: [Wtr-general] UI Mapping Revisited

2006-07-18 Thread Rand Thacker
If I remember correctly, this was part of a larger thread, and they were simply providing examples in the context of the code snippets provided.  So, the $ie was simply part of that code, and Bret was just providing an answer that could work for non-globals, as well. On 7/18/06, Adrian Rutter <[EMA

Re: [Wtr-general] WIN32OLERuntimeError redux - innertext

2006-07-12 Thread Rand Thacker
I've even run into problems before where $ie.wait didn't seem to do the trick.  Usually it was when the pages where doing a redirect or some other craziness that I hadn't planned on.My workaround was to go ahead and do the $ie.wait, then I threw in some thing like this:   xUselessVariable = $ie.con

Re: [Wtr-general] Accessing Session Information

2006-07-12 Thread Rand Thacker
d answers to my questions regarding session information." On 7/12/06, Rand Thacker <[EMAIL PROTECTED]> wrote: Lonny, for someone asking for help, you're going about it all wrong.Folks who answer questions on this list aren't doing it because it's their job or because they owe y

Re: [Wtr-general] Accessing Session Information

2006-07-12 Thread Rand Thacker
Lonny, for someone asking for help, you're going about it all wrong.Folks who answer questions on this list aren't doing it because it's their job or because they owe you.  They are doing it out of the general desire to help the community.  If you are rude to the people who are providing help, they

Re: [Wtr-general] Need help populating a field array using variables

2006-06-28 Thread Rand Thacker
ie.text_field(:name,"grade_result_list[#{x}].beanCount").set("800")should do the trick.  Hope that helps On 6/28/06, Legarreta, Frank <[EMAIL PROTECTED]> wrote: When I hardcode an array to a set value it works: ie. "grade_result_list[1].beanCount" (where 1 is the array valu