Re: [Wtr-general] How to verify if SPAN is visible

2006-12-21 Thread Nathan Christie
t need. A good reference for what true power one actually has over the DHTML DOM can be found here: http://www.w3schools.com/htmldom/default.asp It seems like there are a fair amount of adverts on the site, but the content is exceptional. Generally, just ignor

Re: [Wtr-general] How to capture exception details

2006-12-21 Thread Nathan Christie
n occured:    puts $@ ensure    myObject.tearDown() end Hope this helps, —›Nathan Christie - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=5886&messageID=16494#16494 _

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=6089&messageID=17063#17063 _

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

2007-01-11 Thread Nathan Christie
on looks for the first instnace 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?

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

2007-01-11 Thread Nathan Christie
d it is not present, a(n) [silent] error may be occuring. Check out 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 --

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 in table

2007-01-22 Thread Nathan Christie
. You can also 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^^ —Nathan Christie

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

2007-01-24 Thread Nathan Christie
IE object correctly like "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 sugges

Re: [Wtr-general] How to retrieve 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://fo

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

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

2007-01-26 Thread Nathan Christie
uot;)". It appears that this particular method only starts grabbing cells from rows [i]only[/i], hence the "TR". I believe this could be fixed by starting this logic with a check for a "TH" row. Then the subsequent "x <

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=6308&messageID=17766#17766 ___

Re: [Wtr-general] url for link

2007-01-30 Thread Nathan Christie
( :text, "add a term" ) Now it works, but do consider Ryan's suggestion in the longterm. Hope this helps :) Nathan Christie - Posted via Jive Forums http://forums.openqa.org/thread.jspa?

Re: [Wtr-general] Watir Test Case Writing

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

Re: [Wtr-general] Watir Test Case Writing

2007-01-30 Thread Nathan Christie
, "goodPassword" ) assert_nil( $is.get_errors(), "No errors should have been thrown." ) end You get the picture, also, it's usually best practice to limit your assertions to one per test case. More to come with questions, Nathan Christie ---

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 http://forums.openqa.org/thread.jspa?threadID=634

Re: [Wtr-general] Watir Test Case Writing

2007-01-30 Thread Nathan Christie
ase overall test [suite] execution time, 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:

Re: [Wtr-general] url for link

2007-01-31 Thread Nathan Christie
I like Bret's idea :) - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6325&messageID=17925#17925 ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyf

[Wtr-general] A Different WIN32OLERuntimeError (Ruby)

2007-02-07 Thread Nathan Christie
at didn't involve reinstalling Windows in any 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.o

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 [automat

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=6470&messageID=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() —› IE objec

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

2007-02-07 Thread Nathan Christie
add 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. T

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 http://forums.openqa.org/thread.jsp

Re: [Wtr-general] renaming sheets in Excel

2007-02-07 Thread Nathan Christie
ets( 3 ).delete() 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?threa

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

2007-02-08 Thread Nathan Christie
event 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

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 doesn

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

2007-02-08 Thread Nathan Christie
end end end return o end =end method= It is unclear to me why for this: "({:name => 'foo', :index => 2})" as your parameters

Re: [Wtr-general] How do I connect to MS SQL 2005 using Ruby?

2007-02-08 Thread Nathan Christie
I know it's been beat to death, but after setting up your named ODBC item correctly, here is some n00b DBI code I wrote for easy query/outputting: # Nathan Christie require 'dbi' db = DBI.connect( 'DBI:ODBC:MS_SQL_QA2' ) q = db.prepare( 'select top 100 * fro

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

2007-02-08 Thread Nathan Christie
button/image, the text/page/condition that deems no records were found. Please respond with more details/questions :) Hope this helps, Nathan Christie - Posted via Jive Forums http://forum

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

2007-02-08 Thread Nathan Christie
the forums =] -Nathan Christie - Posted via Jive Forums http://forums.openqa.org/thread.jspa?threadID=6488&messageID=18439#18439 ___ Wtr-general mailing list Wtr-general@ruby

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 http://forums.openqa.org/thread.jspa?threadID=6473&messageID=18440

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

2007-02-08 Thread Nathan Christie
ling Ruby. 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=6490&mes

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

2007-02-12 Thread Nathan Christie
uding 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 -