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/
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
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"
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
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
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
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~
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
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
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
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
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
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
13 matches
Mail list logo