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

2009-04-11 Thread Chai Taolun
Hi~ Ruby is new to me and I got this problem in this code. Could you give me some help? Thank you infile.each{ |i| thisLocation = folderLocation, i print thisLocation k =testCaseNumber while k !=0 ie = Watir::IE.new ie.goto(thisLocation) and here is the error c:/ruby/lib/ruby/

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

2009-04-12 Thread Chai Taolun
located in D:\watir > The statement for watir > ie.goto("D:\\watir") > > it would help you. > > On Apr 11, 12:15 pm, Chai Taolun wrote: > > Hi~ > > > > Ruby is new to me and I got this problem in this code. Could you give me > > some help? Thank you &g

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

2009-04-12 Thread Chai Taolun
Hi~ Thank you. I already check this. It is working fine. here is the entire source code. require 'watir' require 'win32ole' require 'thwait' inputFile = "C:\\codework\\watir\\Qian\\in.txt" logfile = "C:\\codework\\watir\\Qian\\logfile.txt" testCaseFile = "C:\\codework\\watir\\Qian\\Book1.xls"

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

2009-04-12 Thread Chai Taolun
f you are looking to join file names to directory paths, I > suggest you look at Ruby's File and Dir classes. They have many useful > helpers, for example, File.join does exactly what we are doing above, but in > a platform-safe manner. > > Alex > > On 12 Apr 2009, at 02:57, Cha

[wtr-general] why the ruby says "Unable to locate element"?

2009-04-12 Thread Chai Taolun
Hi~ I got a other problem about the ruby run the php webpage. Here is the thing: when I run the code, it gives me the error :in `assert_exists': Unable to locate element, using :name, "fahrenheit" (Watir::Exception::UnknownObjectException) but in my php page. I do have the "fabrenheit". I got so c

[wtr-general] Re: why the ruby says "Unable to locate element"?

2009-04-12 Thread Chai Taolun
led\n\n" end Thank you Allen On Sun, Apr 12, 2009 at 10:41 PM, George wrote: > > Hello, > > What code are you using to access the form? > > > On Apr 12, 7:34 pm, Chai Taolun wrote: > > Hi~ > > I got a other problem about the ruby run the p

[wtr-general] Re: why the ruby says "Unable to locate element"?

2009-04-12 Thread Chai Taolun
rge wrote: > > Are you just trying to insert text into a text_field, or are you > trying to access the form? If it's the latter, I believe you need to > use: > > ie.form(:id, 'fahrenheit') > > > On Apr 12, 7:52 pm, Chai Taolun wrote: > > Hi~

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

2009-04-14 Thread Chai Taolun
wercase > constant = ALL_UPPERCASE > classes = CamelCase > > you're free to code anyway that works of course, but it might be > slightly less confusing to others (when you have code reviewed or ask > for assistance) to be slightly more 'mainstream'. I've

[wtr-general] Re: why the ruby says "Unable to locate element"?

2009-04-14 Thread Chai Taolun
George > wrote: > > > > > Have you tried using the IE Developer Toolbar to correctly identify > > > the element on your page? This should help you insert the data into > > > the text field (if that is what you're trying to do). > > > > &g

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

2009-04-15 Thread Chai Taolun
p will end right off, > instead of having to scan down inside it to find what will break you > out of the loop. > > On Apr 14, 5:30 am, Chai Taolun wrote: > > Hi~ Chuck > > > > Thank you for your advice. That is good for me. > > I already add the ie.close in th

[wtr-general] Re: why the ruby says "Unable to locate element"?

2009-04-15 Thread Chai Taolun
27;).flash > > Thanks. > Wesley Chen. > > > 2009/4/15 Chai Taolun > >> Hi~ >> >> Thank you for all the help. >> I try to use ie.text_field(:id, 'fahrenheit').flash. It still give me the >> error >> Unable to locate element, using :i

[wtr-general] Re: why the ruby says "Unable to locate element"?

2009-04-16 Thread Chai Taolun
Not > very helpful... > > On Apr 15, 9:05 am, Chai Taolun wrote: > > Hi~ > > > > I tried again, it still not work > > Here is the picture I captured when the program is down. > > > > Thank you > > > > Allen > > > > > &g

[wtr-general] Re: why the ruby says "Unable to locate element"?

2009-04-17 Thread Chai Taolun
Hi~ I think my case is just not normal. My laptop has the problem. the code runs well in other people's labtop allen On Fri, Apr 17, 2009 at 8:24 PM, Chuck van der Linden wrote: > > On Apr 16, 8:20 pm, Chai Taolun wrote: > > Hi~ > > > > Thank you for all th