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 access
Hi guy,whether it can work or not?
On Fri, Jan 9, 2009 at 2:36 PM, 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" wrote:
> > Which watir version do you use?
> >
> > On Fri, Jan 9, 2009 at 1:29 PM, wrote:
> >
> > > Hi Wilson,
> >
Hi Wilson,
I am using latest Ruby 1.8.6-27 with the watir 1.6
On Jan 9, 11:07 am, "Wilson Xu" wrote:
> Which watir version do you use?
>
> On Fri, Jan 9, 2009 at 1:29 PM, wrote:
>
> > Hi Wilson,
> > Thanks for the reply. I executed the modified script, but dint work
> > out. I got the following
I have tested my script on version watir 1.5.3, they works very well.I have
modify a little place, it can work on watir 1.6.2 now.
please add require 'watir/ie' line under require 'watir' line.
On Fri, Jan 9, 2009 at 2:07 PM, Wilson Xu wrote:
> Which watir version do you use?
>
>
> On Fri, Jan 9
Which watir version do you use?
On Fri, Jan 9, 2009 at 1:29 PM, wrote:
>
> Hi Wilson,
> Thanks for the reply. I executed the modified script, but dint work
> out. I got the following Error:
>
> >ruby popup.rb
> C:/Ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/waiter.rb:
> 59:in `wait_u
Hi Wilson,
Thanks for the reply. I executed the modified script, but dint work
out. I got the following Error:
>ruby popup.rb
C:/Ruby/lib/ruby/gems/1.8/gems/commonwatir-1.6.2/lib/watir/waiter.rb:
59:in `wait_until': Timed out after 9.5 seconds.
(Watir::Exception::TimeOutException)
from C:
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 wrote:
> Try:
>
> $ie.frame(:index, 3).frame(:index,
Try:
$ie.frame(:index, 3).frame(:index, 3).form(:name,
'configSnmpAccess').text_field(:name, 'accessIpAddress?3').value
- J
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this gro
Ok - I realize that this is a simple question...but I'm a newbie.
I can write strings to text fields with no problem. I'm now trying to
read text from specific text fields and then do a compare that results
in a true or false result. I don't want to search the entire page, I
just want to focus on
Actually it is. Or so i thought. The jira ticket linked below is marked
as fixed.
Please provide more details about the original problem, Moochie. Are you
using 1.6.2?
Bret
wesley chen wrote:
> I think text_field doesn't support multiple attributes in this release.
> Thanks.
> Wesley Chen.
>
AR wrote:
> On Jan 7, 4:14 pm, Bret Pettichord wrote:
>
>> Try Watir::IE.new_process instead. This will open (and then close) a
>> process each time, and therefore should avoid the memory leak.
>>
>
> The funny thing about this one is that I'm using $HIDE_IE=true, and
> now each new brows
you are wrong, Watir can handle javascript pop up box, I have modified your
script, please copy my code to try it. Ha, it works very well.
require 'watir'
require 'watir/contrib/enabled_popup'
def startClicker( button , waitTime= 9, user_input=nil )
# get a handle if one exists
hwnd = $ie.enab
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 wrote:
>
>
> $ie.text_field(:id=>'diagnosis_date',:index=>index)
>
> Creates a error
>
> send:{index=2, :id+>diagnosis_date"} is not a symbol.
>
> I looked and th
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 b
Another method to perform the same function. Just tried using the
"fastercsv" gem and that also works.
Steps
1. install the gem :gem install fastercsv
2. include the following in the script:
require 'fatercsv'
array=[]
FasterCSV.parse(File.open("gmail.csv")){|row| array << row[1]}
Thi
Hello Bill,
Thank you for your quick reply.
And Thank you once again, as your suggestion works great.
I may have to work on how to deal with invalid lines in the CSV file
in the future. But this works for the moment.
Thank you
Margam
On Jan 8, 3:16 pm, "Bill Agee" wrote:
> The csv module shoul
The csv module should be able to do what you need, without much fuss:
require 'csv'
array = []
CSV::Reader.parse(File.open('foo.csv')) { |row| array << row[1] }
That snippet will open 'foo.csv', and for each row, push the second
column's value onto the array. Note that if you need to deal with
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 "test
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
To:
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 J
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 $ie.la
oops, had a typo in there
labelText = label.to_s
$ie.label(:text, labelText).exists?
On Jan 8, 2:43 pm, Tiffany Fodor 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
> $ie.label(:text, 'l
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 wrote:
> if $ie.label(:text,label.to_s).exists?
>
> I'm getting assert_exists: Unbal
Bummer.
When I'm at my wit's end trying to manipulate an object, I resort to
send_keys. Can you put the focus on a known location and send a
number of tabs to get to the link you want and then send an Enter?
If you haven't used it before, here's an example of how to use
send_keys:
ie.send_keys
$ie.text_field(:id=>'diagnosis_date',:index=>index)
Creates a error
send:{index=2, :id+>diagnosis_date"} is not a symbol.
I looked and there is a defect, but I"m not sure if it's been fixed
http://wiki.openqa.org/display/WTR/Multiple+Attributes
--~--~-~--~~~---
Thanks for the response Tiffany. I would expect that to work, but
unfortunately it does not. This UI is a strange one!
If you have any other great ideas please let me know.
The investigation continues!
Carl
On Thu, Jan 8, 2009 at 12:37 PM, Tiffany Fodor wrote:
>
> Hi Carl!
>
> I've had case
Hi Carl!
I've had cases where clicking the span works, but clicking the link
won't. Does this work?
@ie.frame("sectionFrame").table(:index,1).span(:text,
'TextString').click
-Tiffany
On Jan 8, 9:09 am, "carl.shau...@gmail.com"
wrote:
> First a big thanks to Charley for replying to my previou
Hi!
Your app may be more complicated and you may have already tried this,
but when I've worked with applications with tabs, the tab labels are
actually just hyperlinks or images. Do any of these work?
ie.frame($mf).link(:text, 'TabText').click
ie.frame($mf).span(:text, 'TabText').click
ie.fra
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,
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 subs
Can anybody help please:
What I am trying to do is move between tabs in a browser: this code
will flash what I need to click (the tab)...but i don't know how to
click on it
ie.frame($mf).div(:id, "ext-gen13").li(:index, 2).flash
so if I do this, it seems to click, but nothing happens:
ie.f
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
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 str
It's still on openqa for now: https://svn.openqa.org/svn/watir/trunk/
-c
On Thu, Jan 8, 2009 at 4:06 AM, aidy lewis wrote:
>
> Hi,
>
> Could someone please give me the path to the new Watir trunk ( I
> understand it has moved from OpenQa)
>
> Aidy
>
> >
>
--~--~-~--~~~--
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 wrote:
> I tried this
> require 'firewatir'
>
> class Element
> def close_js_confirm
> assert_exist
> @container.js_eval("window.confirm = function(){return
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, "v
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 :
> 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
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 emai
Can you please log this in FlashSelenium as this is Watir forum? I am
working with that dev and if you need I can check with him but I am
not sure we should take this up here.
Regards,
Sai
On Jan 7, 3:24 pm, kiran wrote:
> I am using firefox with the
> urlhttp://www.geocities.com/paulocaroli/f
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 wrote:
> Hi,
> I have the following code but the problem here is that
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 clo
41 matches
Mail list logo