Re: [Wtr-general] How to take input from text file?

2007-02-12 Thread Nathan Christie
the semicolon/delimiter. inputLine = Reggie;12345;Phillipines inputLine[/w*/] # gets name as one word only inputLine[/\w* *\w*/] # gets name as two words only (separated by space) Hope this helps, Nathan Christie - Posted via

Re: [Wtr-general] how ie.div(:name = 'foo', :index = 2).click works?

2007-02-08 Thread Nathan Christie
on the object calling the method. So, `ie.div(:name = 'foo', :index = 2)`, once recognized/identified/stored in memory (as [EMAIL PROTECTED]) then responds to a `click` event. Hope this helps, Nathan Christie - Posted via Jive

Re: [Wtr-general] A Different WIN32OLERuntimeError (Ruby)

2007-02-08 Thread Nathan Christie
bbiker, Butting in is encouraged! So, basically, this command USED to work correctly for me in the past. Then something happened to my machine's configuration or something along those lines that made this stop working as it previously had. Now the only way this command works is if an instance

Re: [Wtr-general] renaming sheets in Excel

2007-02-08 Thread Nathan Christie
Shok, I'm sorry my example wouldn't work for you directly; I copied / pasted it out of some of my code, which does work, so I'm unsure why. Even though you are shelving it for a while, here is some more complete code of how my Excel test automation output works: (This automation actually

Re: [Wtr-general] how ie.div(:name = 'foo', :index = 2).click works?

2007-02-08 Thread Nathan Christie
= It is unclear to me why for this: ({:name = 'foo', :index = 2}) as your parameters list that you placed these parameters inside a block { } . Maybe more will chime in to get your question answered :) Nathan Christie - Posted via Jive

Re: [Wtr-general] How to take input from text file?

2007-02-08 Thread Nathan Christie
. Please respond with more details/questions :) Hope this helps, Nathan Christie - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6488messageID=18425#18425 ___ Wtr

Re: [Wtr-general] jscript_test.rb doesn't work in my machine.

2007-02-08 Thread Nathan Christie
Post more details, such as: Ruby version, Watir version, some of your [suspect] code, as well as the error output you get after execution. - Posted via Jive Forums

Re: [Wtr-general] Errors installing Watir 1.5.0.934.exe (1-click installer)

2007-02-08 Thread Nathan Christie
. For some reason the gem install/update just works more reliably for me. Good luck, Nathan Christie - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6490messageID=18442#18442

[Wtr-general] A Different WIN32OLERuntimeError (Ruby)

2007-02-07 Thread Nathan Christie
shape. If anyone can shed some light on this mysterious occurance I would really appreciate it. Thanks, Nathan Christie - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6470messageID=18321#18321

Re: [Wtr-general] WIN32OLERuntimeError

2007-02-07 Thread Nathan Christie
I didn't fully read this thread, this is exactly what is happening to me, I traced the to the Ruby level in my post, A Different WIN32OLERuntimeError, even though it is exactly the same problem this gentleman is having =| I want to think this may somehow be related to a .NET Framework

Re: [Wtr-general] A Different WIN32OLERuntimeError (Ruby)

2007-02-07 Thread Nathan Christie
This is the same error as WIN32OLERuntimeError, but this info is what Watir would send to Ruby. - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6470messageID=18323#18323

Re: [Wtr-general] A Different WIN32OLERuntimeError (Ruby)

2007-02-07 Thread Nathan Christie
When I use this Watir command you have suggested, it unwraps it and sends essentially the WIN32OLE command to create a new IE instance, so in turn: [ myIE = IE.new() ] == [ myIE = WIN32OLE::new( InternetExplorer.Application ) ] So this Watir command: `IE.new()` does this: IE.new() #8212;#8250;

Re: [Wtr-general] A Different WIN32OLERuntimeError (Ruby)

2007-02-07 Thread Nathan Christie
a comment for each line with some explanation. Mostly just curious about: [u]startup_info = [68].pack('lx64') process_info = [0, 0, 0, 0].pack('')[/u] But I would like to be able to understand the logic, as that code has many new elements I'm not familiar with. Thanks so much! Nathan Christie

Re: [Wtr-general] renaming sheets in Excel

2007-02-07 Thread Nathan Christie
Yes! This was one of the first resources for scripting Excel via Ruby and has served me well. I highly second this recommendation for anyone doing anything of the sort. - Posted via Jive Forums

Re: [Wtr-general] renaming sheets in Excel

2007-02-07 Thread Nathan Christie
() There is no WIN32API method for simultanesouly creating and naming a new worksheet. Hope this helps, Nathan Christie - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6472messageID=18339#18339

Re: [Wtr-general] url for link

2007-01-30 Thread Nathan Christie
false;add a term/a You can access this link in this manner: ie = IE.attach ( :title, PageTitle ) myAjaxLink = ie.link( :text, add a term ) Now it works, but do consider Ryan's suggestion in the longterm. Hope this helps :) Nathan Christie

Re: [Wtr-general] Watir Test Case Writing

2007-01-30 Thread Nathan Christie
! Nathan Christie - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6344messageID=17872#17872 ___ Wtr-general mailing list Wtr-general@rubyforge.org http

Re: [Wtr-general] Watir Test Case Writing

2007-01-30 Thread Nathan Christie
, it's usually best practice to limit your assertions to one per test case. More to come with questions, Nathan Christie - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6344messageID=17878#17878

Re: [Wtr-general] Watir Test Case Writing

2007-01-30 Thread Nathan Christie
Sometimes I've even been confused when glancing at thread lists quickly. I'm like, I didn't post that! and such. The more Nathan's the merrier I think :) - Posted via Jive Forums

Re: [Wtr-general] Watir Test Case Writing

2007-01-30 Thread Nathan Christie
, it's probably a good practice to do so. Let me know if you need any more explanation on this, as I felt I was kinda rambling. Thanks! Nathan Christie - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID

Re: [Wtr-general] how to make Watir output the current system date through a command

2007-01-29 Thread Nathan Christie
This is a Ruby Date object and its functions: require 'Date' myDate = Date.today().strftime(%d/%m/%y) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6308messageID=17766#17766

Re: [Wtr-general] same text fordifferent urls..

2007-01-26 Thread Nathan Christie
It looks like in your link identification you have, ...contract_id=14 0 (with a space) and in your error message it displays, Unable to locate ... contract_id=140 (no space). Could this be it? Nathan Christie - Posted via Jive

Re: [Wtr-general] How to retrieve TH in table

2007-01-26 Thread Nathan Christie
the TR. I believe this could be fixed by starting this logic with a check for a TH row. Then the subsequent x td.innerText.strip only retrieves cell text values starting from the first row. Hope this helps :) Nathan Christie

Re: [Wtr-general] error with running a testsuite

2007-01-24 Thread Nathan Christie
myIE = IE.start( www.url.com ) but make this variable only local to the setup(() method. If you define your ie variable in the setup method you must make it global, like $ie = IE.start( www.url.com ). These are just some suggestions based on what I see here. Hope this help, Nathan Christie

Re: [Wtr-general] How to retrieve TH in table

2007-01-24 Thread Nathan Christie
Try this: t = ie.table( :id, ctl00_MasterContentPlaceHolder_DomainGridView ) t.row_values(1) Let me know if this is what you're looking for. Hope this helps, Nathan Christie - Posted via Jive Forums http://forums.openqa.org

Re: [Wtr-general] same text fordifferent urls..

2007-01-22 Thread Nathan Christie
When you say, ...it's working for the general urls, but not for the ajax links..., what exactly to you mean by not working. Does it seem the click() method is not being called and the page is not changing, or is there a runtime object [link] identification error?

Re: [Wtr-general] How to retrieve TH in table

2007-01-22 Thread Nathan Christie
access individual cells this way, and sometimes I find it easier to just do it directly through the COM. my_cell = $browser.table( :id, 'theID' ).rows( x ).cells( y ).innerText() Hope this helps^^ #8212;Nathan Christie - Posted via

Re: [Wtr-general] working with bitmap

2007-01-11 Thread Nathan Christie
Can you be more specific please? Do you need to validate filesize, filename, modified date between two images? - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6089messageID=17063#17063

Re: [Wtr-general] Need Regular Expression help with a URL string

2007-01-11 Thread Nathan Christie
of `foo/` and replaces it with `foo/` + your desired web page string. Hope this helps, Nathan Christie - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6091messageID=17062#17062

Re: [Wtr-general] OT: Need help Trapping Errors in Ruby

2007-01-11 Thread Nathan Christie
this function or post it's guts to the forums, along with your console output on execution for further assistance if this is not enough to debug your problem. Hope this helps, Nathan Christie - Posted via Jive Forums http