Hi Tony,
Certainly works, even though I have changed #click_no_wait to #click.
I think we need to put this example in the js pop-up wiki and we need
an example for alerts as well.
For Firewatir you could re-open the FireWatir class and use #$jssh_socket.send
class FireWatir::Firefox
def
Hi Jagdeep,
I am facing the same problem of handling javascript popups. Inspite of
repeated posts, dint find any concrete solution. It seems this is a
limitation with the Watir tool. Pathetic :(
On Jan 2, 7:26 pm, Jagdeep Jain jagdeep.j...@gmail.com wrote:
Hi,
I have the following code but the
Hi,
Could someone please give me the path to the new Watir trunk ( I
understand it has moved from OpenQa)
Aidy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General group.
To post to this group, send email
The trouble however with this method is that we will never know if it
executes the js or not or does what it is supposed to do.
Aidy
2009/1/8 aidy lewis aidy.le...@googlemail.com:
Hi Tony,
Certainly works, even though I have changed #click_no_wait to #click.
I think we need to put this
I tried this
require 'firewatir'
class Element
def close_js_confirm
assert_exist
@container.js_eval(window.confirm = function(){return true;})
sleep 1
end
end
ff = FireWatir::Firefox.new
ff.goto(http://www.w3schools.com/JS/tryit.asp?
filename=tryjs_confirm)
ff.frame(:name,
sorry forgot to mention that it is working in firebug. So I am not
sure why it is not workin in FireWatir
On Jan 8, 6:34 pm, sai saidesertrose2...@gmail.com wrote:
I tried this
require 'firewatir'
class Element
def close_js_confirm
assert_exist
@container.js_eval(window.confirm
First a big thanks to Charley for replying to my previous post. I
have managed to methodically isolate the target element in the AUT.
Now I am uncertain how to click on the text string.
If interested, below is the code I used to isolate the target string.
Now that I have isolated the target
Winstan,
I've never used the soap library directly as you seem to be doing. We're
using soap4r: http://dev.ctor.org/soap4r to test webservices, which I've
found to be a good solution and interactively calling the service/checking
responses instead of comparing a known good xml to the generated
if $ie.label(:text,label.to_s).exists?
I'm getting assert_exists: Unbale to locate element, using :text,
Text Value
Are you unable to check if a label exists using text attribute?
Thanks,
DD
--~--~-~--~~~---~--~~
You received this message because you are
I've been try to figure out what the best practice is for watir
regarding running a number of tests in parallel. So far, other then
deploying multiple machines and allocating browser time to a group
of tests and managing that, I haven't had an amazing amount of luck.
Initially, I thought - hey,
I'm just curious
Does this work if you assign label.to_s to a variable first and try to
locate the label?
labelText = label.to_s
$ie.label(:text, 'labelText').exists?
-Tiffany
On Jan 8, 11:29 am, Moochie dduph...@redbrickhealth.com wrote:
if $ie.label(:text,label.to_s).exists?
I'm
oops, had a typo in there
labelText = label.to_s
$ie.label(:text, labelText).exists?
On Jan 8, 2:43 pm, Tiffany Fodor tcfo...@comcast.net wrote:
I'm just curious
Does this work if you assign label.to_s to a variable first and try to
locate the label?
labelText = label.to_s
That actually what I'm using
$ie.label(:text,label.to_s).exists?
-Original Message-
From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On
Behalf Of Tiffany Fodor
Sent: Thursday, January 08, 2009 3:43 PM
To: Watir General
Subject: [wtr-general] Re: if
Hey Darin!
I was just wondering if there's a problem modifying the variable with
the to_s in the object specifier or if maybe 'label' is some kind of
reserved keyword or variable. That's why I suggested changing the
variable name and modifying it outside of the object identifier.
-Tiffany
On
I appreciate any help.
Do you have an application that uses Labels? If so, could you please try this.
Thanks,
Darin
-Original Message-
From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On
Behalf Of Tiffany Fodor
Sent: Thursday, January 08, 2009 3:48 PM
Hello all,
I am trying to get data from a particular column (second in my case)
of an CSV file and store it into an array. And then use the array
elements within my script
Curerntly my script(below) uses the datahandler.rb
---
require 'watir'
require 'watir/datahandler'
require
Using FireWatir's element_by_xpath on my Mac, I get the expected type
for the element. For example, on the Google home page:
irb(main):008:0 b.element_by_xpath(//*...@name='btnG']).class
submit
= FireWatir::Button
But with Watir (on Windows, of course), I always get an instance of
WIN32OLE
I think text_field doesn't support multiple attributes in this release.
Thanks.
Wesley Chen.
On Fri, Jan 9, 2009 at 3:32 AM, Moochie dduph...@redbrickhealth.com wrote:
$ie.text_field(:id='diagnosis_date',:index=index)
Creates a error
send:{index=2, :id+diagnosis_date} is not a symbol.
OK - Next dumb questions -
1) where should the value appear? I though that it would show up in
the command window
2) Once I can get hold of the value, what is the simple syntax for the
compare.
Again thanks,
Gem
On Jan 8, 10:01 pm, Jason freezingki...@gmail.com wrote:
Try:
Hi guy,whether it can work or not?
On Fri, Jan 9, 2009 at 2:36 PM, aami...@gmail.com wrote:
Hi Wilson,
I am using latest Ruby 1.8.6-27 with the watir 1.6
On Jan 9, 11:07 am, Wilson Xu xu.xiaodong.wil...@gmail.com wrote:
Which watir version do you use?
On Fri, Jan 9, 2009 at 1:29 PM,
Hi All,
I am trying to write a WATIR script to automate data filling in a web page.
On this webpage, I have a button, for which, on being clicked, some
javascript code is called. This javascript code opens a new browser window
(without any menubar, tool bar and address bar).
I am unable to
21 matches
Mail list logo