Thanks again.
About "type: image" - after I thought about it, I also think it should not
be removed.
Zeljko
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Thursday, July 28, 2005 12:45 AM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-
Thanks, I will try it at once.
Zeljko
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Thursday, July 28, 2005 12:25 AM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#file_fields
Ok, this time Im sure I g
Hi,
Try this..
var1 = 'ghi'
new_string = "abcdef#{var1}jklmnop"
I think you forgot to put the # before the braces and also double quoted string is must for this kind of substitution.
Regards,
Angrez
On Wed, 27 Jul 2005 Torres,Ben(HQP) wrote :
>Right now, I am doing this:
>
>var1 = 'ghi'
>n
Hi,
Try this..
var1 = 'ghi'
var1 = 'ghi'
new_string = "abcdef#{var1}jklmnop"
I think you forgot to put the # before the braces and also double quoted string is must for this kind of substitution.
Regards,
Angrez
On Wed, 27 Jul 2005 Torres,Ben(HQP) wrote :
>Right now, I am doing this:
>
>va
Hi! What's the best approach to know if the explorer has finished loading.
sometimes, 1 sec is not enough. it depends. What's the best way to do this? Pls
look at the code below.
w.winsystem("start explorer #{thread_number}_#{i}.html ")
sleep(1)
$ie_array[i] = IE.attach(:title
Nope, just the Javascript alert() type. I'm just learning Ruby, so I don't
know if it's cool or not, but it sure seemed cleaner than fork'ing.
It is/was on XPSP2
Scott
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Wednesday, July 27,
It's 5.00. I guess this is a limitation for testing with IE 5.00.
Thanks.
JAN
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Rogers
Sent: Thursday, July 28, 2005 2:26 AM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] can't run googlesearch.rb
Thanks paul! It's working now.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Paul Rogers
Sent: Thursday, July 28, 2005 10:44 AM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] click image problem
Give this a go:
$ie.image(:src ,/FBK-and/).click
Give this a go:
$ie.image(:src ,/FBK-and/).click
You may have to change the reg-exp if there are other images with the
same ( or similar) name
Paul
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 27 July 2005 20:19
To: wtr-genera
Hi!
I have this problem clicking this image... pls see attached htm for added info.
here's the line of the image I want to click...
I tried
$ie.link(:url,"javascript:AddText(' AND ')").click
$ie.button(:url,"javascript:AddText(' AND ')").click
but it says unable to locate object. Th
Thanks for the good link, Zeljko.
I also tried using the example from the link but didn’t
get anything through.
Probably didn’t enter the right SMTP.
Would you mind posting an example that worked for you?
Thanks!
___
Wtr-general mailing
Thanks, Mark. I did find CDOEX.DLL on my
machine, so I copied your code and ran it, but got this error:
C:\watir\watir>email2.rb
C:/watir/watir/email2.rb:20:in `method_missing': Send
(WIN32OLERuntimeError)
OLE error code:80040220 in CDO.Message.1
The "SendUsing" configurat
Ive just seen Scotts post on the 26th and I think I like his solution
better. - Scott have you tried all the popup windows - file requester,
security etc? What OS did you use?
I seem to remember having problems with one type or one os that required
a new process rather than a thread.
Paul
-O
Title: Message
C# on .NET 1.1.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Paul Rogers
Sent: Wednesday, July 27, 2005
3:02 PM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general]
(possibly) Introducing WatirMaker
Way cool! I couldnt see anywhere -
I added alt as a property and included it in the to_s
As to why the typs= 'image' is available. It's a standard property from
IE on input controls, like button, etc. I just continued it on. Maybe
this is something that should be removed?
At some point I think we want to add a elements iterator th
Ok, this time Im sure I got it right ;-). Its in cvs with a very basic
unit test.
Paul
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin
Sent: 27 July 2005 15:08
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#
Title: Message
Way
cool! I couldnt see anywhere - what language is it written
in?
Paul
-Original Message-From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Scott HanselmanSent: 27 July 2005
04:43To: wtr-general@rubyforge.orgSubject: [Wtr-general]
(possib
I had the same problem with the controller I used before Watir. If I
remember it was caused by the page loading faster than we could detect, so
the wait method is still waiting, as it doesnt realise its already loaded.
This was one of the reasons I wanted to move to an event based system (
which ca
Ah. I'll see how difficult it is to add!
Paul
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeljko Filipin
Sent: 27 July 2005 15:08
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#file_fields
Thanks, I also have file_fie
But it will not work if you use single quotes ('), you have to use double
quotes (") if you have variable inside the string.
new_string = "abcdef#{var1}jklmnop"
Zeljko
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Wednesday, July 27,
Thanks, I also have file_field, but I need file_fields (plural). :)
Zeljko
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Rogers
Sent: Wednesday, July 27, 2005 7:20 PM
To: wtr-general@rubyforge.org
Subject: RE: [Wtr-general] Watir::FactoryMethods#fi
Actually, when I was going back to it earlier today, I couldn't get it to work
in IRB either. I have the same problem whether I'm using button.click or
form.submit. The browser does what I want it to do, but IRB just sits there
with a blank prompt until you hit Ctrl-C.
Daniel Kurtz
Consultant
The command equivelant:
ie.button(:src, "http://cdn.search.aol.com/aolsearch/searchbutton_5_0.gif").click
works fine in IRB. Running in a script however, it does click the button, but never returns, causing the script to stall without any error reporting.
Running fine in IRB but not in a
Title: Message
Scott,
I got tired of waiting as well. I've started an IE toolbar that will do
the same thing. While I really like the idea of having a Watir toolbar for
this, it has taken me into the black art of C++ / COM / ATL (not my greatest
strength). I've gotten a lot of legs from a
The scripts that handle pop ups are in the unit test directory
jscriptExtraAlert.rb
jscriptExtraConfirmCancel.rb
jscriptExtraConfirmOk.rb
jscriptPushButton.rb
I suggest we move these to a better location -
The C:\ruby\lib\ruby\site_ruby\1.8\watir seems like the best place ( or
maybe another di
Well, it works for me too!
Whats the windows/IE version on the other machine? I think fireEvent was
added in IE 5.5
Paul
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 25 July 2005 20:00
To: wtr-general@rubyforge.org
Subject: [Wt
Everyone Please excuse this earlier message.
I'm just being obtuse. The pages I'm testing are meant to reside in a
frame that provides the error message display element.
My test scripts are not exercising the pages in the frame yet.
Thanks for the speedy reply, and please forgive the false al
Are these messages fired by the onBlur or onChange events on a text
field? If so Bret has fixed the problem and it will be in the next
release.
Paul
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexander, Kim
(Kim)
Sent: 27 July 2005 11:58
To: wtr-gene
Hi All,
I'm noticing differences in the behavior of a page between automated
testing and manually doing the same thing.
The app I'm testing registers (sends) a piece of javascript code
to display validation error messages. It adds this to the html stream
upon processing a postback.
When runnin
You're close!
New_string = 'abcdef#{var1}jklmnop'
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Torres, Ben
(HQP)
Sent: 27 July 2005 11:36
To: wtr-general@rubyforge.org
Subject: [Wtr-general] Inserting variable name in string
Right now, I am doing thi
Right now, I am doing this:
var1 = 'ghi'
new_string = 'abcdef' + var1 + 'jklmnop'
Is there any way I can insert the variable name within the string? I
tried doing this, but it didn't work:
New_string = 'abcdef{var1}jklmnop'
___
Wtr-general mailing l
Brett,
Sorry, I don't have a definate example.
It's been a while since I've worked on my test scripts (due to other
responsiblities). If I recall I'll post here.
Thanks,
Kim
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bret Pettichord
Sent: Tuesda
homeDrive is probably nil. I think that comes from an environment
variable.
I think this needs to change anyway, recently I had watir install to a
network drive, as the users home path was set to be k:
I imagine most people would want to install to c: - rather than the
place where the HomeDrive en
Actually, I hadn't even noticed the typo in your code .
In any event, the problem is not that Watir can't locate or click the button.
The issue is that, once clicked, control never comes back to Watir from the
page/browser, so the script hangs.
Daniel Kurtz
Consultant
Olenick & Associates
205
I see this in my one:
Im not sure when it was added, I have watir.rb 1.194
# This is the main method for accessing a file field. Usually an
HTML tag.
# * how - symbol - how we access the field , :index, :id,
:name etc
# * what - string, int or re , what we are looking
Sorry there
was a typo on my part... try
ie.image(:src, /searchbutton_5_0.gif/).click
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel
KurtzSent: Wednesday, July 27, 2005 10:26 AMTo:
wtr-general@rubyforge.orgSubject: RE: [Wtr-general] Script
non-responsive
>> From
>> From: "Peter Chau"
<[EMAIL PROTECTED]>>> Try this,
ie.image(:src, /searchbutton_5_0.gif.).clickHi Peter;
No go. I find I get the same thing no
matter how I click the thing (the only attributes on this object that Watir
recognizes is the SRC and its index position.) I think the issue
Title: Re: [Wtr-general] Script return values
I came across some situations where the exceptions thrown
by Watir were not picked up by the rescue. The work around for me was
rescue Exception =>
e
log("Exception in #{getFunctionName()} " + e.message + "\n" +
e.backtrac
I'm familar with it. I don't think it would make much of a difference for what
I'm doing here. Your code is exactly equivelant to:
try
rescue => e
puts ("Test failed. Error: " + e)
end
Daniel Kurtz
Consultant
Olenick & Associates
205 W. Wacker Drive
Suite 2010
Chicago, IL 60606
312-332-
This works if you have the CDOEX.DLL on you
machine.
require 'win32ole'
cdoMail = WIN32OLE.new("CDO.Message")
cdoMail.From = "[EMAIL PROTECTED]"
cdoMail.To = "[EMAIL PROTECTED]
"
cdoMail.Subject =
"This is a test"
cdoMail.TextBody =
"This is a test"
cdoMail.Send
cdoMail = n
I would try
bonus_location = "#{homeDrive}\\watir_bonus\\"
Peter
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
I would like to look at it as my day time job is .Net developer. But I
took a 3 months contract with microsoft, as a consultant in Turkey.
My current company rents (is this correct use) me to microsoft.
Therefore I do not know, if I will have a time for it.
___
Is there some reason that there is no method
Watir::FactoryMethods#file_fields (like Watir::FactoryMethods#buttons)? It
would be nice to have it.
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-gen
Do you know about $!? It holds the last error Ruby encountered. Instead of
> rescue
> puts("TEST FAILED.")
> end
try
rescue
puts ("Test failed. Error: " + $!)
end
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge
Hi...
I'm trying to install Watir on a colleague's machine and getting a
strange error. Line 155 of install.rb is
bonus_location = homeDrive + "\\watir_bonus\\" # the default bonus location
Ruby is giving us an "undefined method "+"" error-- it's interpreting
the plus-sign (+) as a method
Yea, I guess that's the effect. Unfortunately, not rescuing causes the script
to terminate. What I have going on here is a loop... Ideally, at the end of the
test case, I see that the loop executed say 20 times, that there were 20
assertions, and that 5 of them failed. I guess I need to redesign
Chris McMahon wrote:
On 7/26/05, Scott Hanselman <[EMAIL PROTECTED]> wrote:
Why do folks do all this tricky stuff with Winclicker and starting new
instances of the ruby process?
I do this:
Thread.new { sleep 0.1; WindowHelper.new.push_alert_button }
ie.link(:id, "whatever").click #this
On 7/26/05, Scott Hanselman <[EMAIL PROTECTED]> wrote:
> Why do folks do all this tricky stuff with Winclicker and starting new
> instances of the ruby process?
>
> I do this:
>
>Thread.new { sleep 0.1; WindowHelper.new.push_alert_button }
>ie.link(:id, "whatever").click #this causes an A
I am new to unit testing, but try this:
assert(ie.contains_text("verification text"), "TEST FAILED.")
assert(boolean, [ message ] ) - Fails if boolean is false or nil.
"rescue" seems to rescue your failure.
Zeljko
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECT
Hey folks,
I got tired of waiting and wrote a 0.1 version of what I'm calling
WatirMaker. It's puts IE on a string and attempts to record a Watir
script from events. Take a look here http://www.hanselman.com/blog/IntroducingWatirMakerRecordingForRubybasedWatir.aspx
- there is a flash movie dem
I use net/smtp.
http://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/
Zeljko
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Tuyet Cong-Ton-NuSent: Wednesday, July 27, 2005
3:14 AMTo: wtr-general@rubyforge.orgSubject: [Wtr-general]
Sending Email Notifications
After a
51 matches
Mail list logo