Thanks a lot Tiffany for your reply, I tried other things too too
like dialog.button('Cancel').click , click_no_wait and I tried Auto it
etc but of no use. I am working on in further, will get back to you if
I find something useful.
By the way do you think that the script that I have posted
I have found that one important thing that people miss out on is that Ruby
1.8.6.27 doesn’t support click_no_wait.
So I hope you are not using this version of Ruby. If yes then try with
Ruby 1.8.6.26
Also always use sleep after click_no_wait and the pop-up handler method
Thanks,
Rohan Ojha
Hi, guys,
I mean that sometimes, we know there is a modal dialog but we won't to know
the title.
For following, we must provide a title. But I don't want to provide it
sometimes.
=
autoit=WIN32OLE.new('AutoItX3.Control')
#ret=autoit.WinWait(title,,180)
Hi Adrian,
The above code works fine for me ... by changing
img.fire_event_no_wait(mousedown) to img.fire_event_no_wait
(onmousedown)
Maybe you could post the whole code that you are using ... so we could
take a look at what you are exactly trying to do...??
Not sure on the threads --
I
Hi,
If you do not want to use title of the pop up then you can use the
hwnd command to close the pop up by just passing the caption of
button. Visit this URl for some sample examples.
http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups
Thanks
Namit
On Aug 26, 11:42 am, Wesley Chen
Hi, Namit,
Your suggestion maybe good. I know some kinds of solution.
But if I use autoit, there is no title, how can I make it?
autoit=WIN32OLE.new('AutoItX3.Control')
ret=autoit.WinWait(*title*,,60)
Thanks.
Wesley Chen.
On Wed, Aug 26, 2009 at 3:08 PM, Namit namitjai...@gmail.com wrote:
Hi Wesley,
There is a different technique to handling popups without autoit -
This will act only on the current ie window which watir is using not
any other browser.
The below will handle alert, confirm , prompt, auth dialog box.
Usage:
require 'watir'
iewin = Watir::IE.new
Hi all
Does anyone know if there's a safariwatir equivalent of the attach
method for IE?
If not, is there a workaround? I need to be able to switch focus to
pop-up html windows and continue testing within these, and if I can't,
safariwatir is pretty much useless for what I need to do!
Thanks
Hi, Tony,
Thank you very much for the quick reply.
:), 1) I can't find the *below code*;
2)will iewin.clickprompt( ) click the button on the pop up? If it does, if
on the pop up, there are two buttons such as OK/Cancel, how to identify
them?
Thanks.
Wesley Chen.
On Wed, Aug 26, 2009 at 3:43
Hi Wesley,
iewin.clickprompt() will click the button in the popup and return the
popup text.
This is the definition - def clickprompt(but=OK,txt =, waitTime =
10)
iewin.clickprompt(CANCEL) # will click cancel button.. actually if
you pass in anything other than OK, cancel will be clicked.
Hi Tony,
Thanks for trying to help me out.
Here is the ruby script. The app is a servlet. Onmouseover works just fine,
also fire_event(onmousedown) works, but this opens a modal dialog and the
program is stuck on the fire_event line.
require 'rubygems'
require 'watir'
class RunProg
def Run()
Hi all,
Sorry to annoy you with such a basic question, no doubt, but I am
really struggling on the basics...
I am using firefox instead of ie and am not too sure on some of my
ruby code. I have hacked it here and there and now I am not too sure
what I am doing wrong.
I am using SciTE editor
On Wed, Aug 26, 2009 at 1:37 PM, Matt matt.walt...@three.com.au wrote:
Test_site=http://www.google.com
test26aug.rb:2: undefined local variable or method `www' for
main:Object (NameError)
You have forgot quotes:
Test_site=http://www.google.com;
Željko
--
http://watirpodcast.com/
Hi,
This is a test site https://sandbox.google.com/checkout/view/buy?
o=shoppingcartshoppingcart=322449560105091pli=1tzfp=wg-14ArD
In this I am not able to enter login credentails in the Sign In
section.
--
require 'watir'
require 'test/unit'
require 'win32ole'
$ie = Watir::IE.new
Cheers - thanks for that.
On Aug 26, 9:53 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Wed, Aug26,2009at1:37PM, Matt matt.walt...@three.com.au wrote:
Test_site=http://www.google.com
test26aug.rb:2: undefined local variable or method `www' for
main:Object (NameError)
You
Cheers - thanks for that.
On Aug 26, 9:53 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Wed, Aug26,2009at1:37PM, Matt matt.walt...@three.com.au wrote:
Test_site=http://www.google.com
test26aug.rb:2: undefined local variable or method `www' for
main:Object (NameError)
You
The first error is the missing double quotes, like Željko pointed out.
Your script will still not run though as there are a couple of other
errors. You set up the browser like this:
$ff = FireWatir::Firefox.new
instead of:
Ff=Firefox.new (if you use a capital letter, you set up the browser
Well, your code isn't finding the sign in text fields in the first
place. Are you sure that the name value for those fields are Email
and Passwd? Keep in mind the name field is specifically declared, it
isn't just whatever text is nearby.
Also, it looks like the first frame is called signup, so
Thanks for your response, Chuck.
I tried clearing the selection first, and that didn't seem to make a
difference. The changing of the dropdown box does in fact trigger a
postback:
onchange=javascript:setTimeout('__doPostBack
(\'FacsimileSearchControl1$FromDateDropdownlist\',\'\')', 0)
I am
Hi Everybody...
I am new to Ruby, Watir and this Group
i am automating a web based application
*1. My web page has Drop down list box or Select list box*
*2. It has 10 items ( Eg: 10 Diff car names Audi, BMW, Mazda etc) or it can
contain N of Cars also*
Scenario
1. After selecting the
Hello Namit,
Please see the google example in my response to the following post -
will watir-1.6.2 support pop-up message
http://groups.google.com/group/watir-general/browse_thread/thread/eeb37d3a8562936/e9ec1258c2aa547f?hl=enq=#e9ec1258c2aa547f
You must use click_no_wait
Good luck,
Darryl
Hi Everybody...
I am new to Ruby, Watir and this Group
i am automating a web based application
1. My web page has Drop down list box or Select list box
2. It has 10 items ( Eg: 10 Diff car names Audi, BMW, Mazda etc) or it
can contain N of Cars also
Scenario
1. After selecting the car,
Thanks for your help John - I really appreciate it. As you rightly
pointed out, it still didn't work, but I didn't want to annoy you all
again with another post. I will try this tonight when I get home.
Cheers,
Matt
On Aug 26, 11:38 pm, John Kolokotronis johnj...@gmail.com wrote:
The first
I am a new watir user,
now I am writing a function,double click a element in the table,it
will jump detail page
how I can to deal with double click on Element in watir?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
24 matches
Mail list logo