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
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
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
=
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
. 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
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
. 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
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
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
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
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;
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
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
()
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
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
!
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
, 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
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
, 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
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
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
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
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
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
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?
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
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
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
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
30 matches
Mail list logo