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
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
_
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
_
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?
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
--
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?
--
.
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
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
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
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
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 <
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
___
( :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?
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
, "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
---
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
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:
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
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
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
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
__
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
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
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
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
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
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
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
end
end
end
return o
end
=end method=
It is unclear to me why for this: "({:name => 'foo', :index => 2})" as your
parameters
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
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
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
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
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
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
-
35 matches
Mail list logo