ods to determine the top and left edges of an
element, as well as the ability to left or right click at certain
coordinates, which I assume you'll need if you don't directly get the
element you're trying to click.
-Dylan
On Sep 3, 3:44 am, Wesley Chen wrote:
> Hi, Guys,
> Now, th
input more random,
cause it was fun) :)
ie.text_fields.each{|tf|
st="#{rand(254).chr} #{rand(254).chr} #{rand(254).chr} #{rand
(254).chr} #{rand(254).chr}"
tf.set(st) if(tf.value=="" and tf.visible?)
}
Hope this helps.
-Dylan
On Sep 3, 7:05 am, manar alalfi wrote:
> T
y not just stick with
tf.set "watir" ?
ie.text_fields.each{|tf|
tf.set("watir") if(tf.value != "" and tf.name !="")
}
Of course, thats going to go through and change any text field to
"watir" whenever it has a name value and there's alread
recommend upgrading to the latest version of watir.
-Dylan
P.S. As far as I know there is no "selection_box" element type.
http://pettichord.com/watirtutorial/docs/watir_cheat_sheet/WTR/Cheat%20Sheet.html
On Sep 2, 10:37 am, rrash586 wrote:
> Thanks for ur reply .
> but the
You can look through \ruby\lib\ruby\gems\1.8\gems\watir-1.6.2\lib\watir
\collections.rb for the types of collections that watir recognizes, as
well as a good idea on how to add your own.
-Dylan
On Sep 2, 7:18 am, manar alalfi wrote:
> Thanks a lot for you all. The solution provided by M
http://pettichord.com/watirtutorial/docs/watir_cheat_sheet/WTR/Cheat%20Sheet.html
-DYLAN
On Sep 2, 9:27 am, naveen kumar wrote:
> Hi Friends,
>
> I am new to ruby watir can any one send the code for selecting values
> is combo box
>
> please send me different WAYS OF SELEC
Also, you can get around the special character (so you dont have to
look each one up) by using a regex and the regular text:
browser.text.include?(/Previous/)
browser.span(:text,/Previous/).click
On Sep 1, 6:52 am, GJHmf wrote:
> How annoying; I thought I had tried and failed on that very solu
ing in the File.open call.
It should look something like this: http://pastie.org/601390
-Dylan
On Aug 31, 9:47 pm, Marlon wrote:
> Hi, how can I rename the filename of the xml created by ci_reporter? I
> need a repository and store the test results generated. ex. TEST-
> .xml. Which part
Well, if you're crawling tens of thousands of pages you might have
picked up a nasty bug somewhere along the way. I would run some virus
scans. Also run some network diagnostics (try pinging some sites,
etc...)
-Dylan
On Aug 29, 8:04 am, curious wrote:
> I have massive WATIR based
e first frame is called signup, so the
text_field elements might be in there. You could try:
$ie.frame(:index,1).text_field(:name,"Email").set("a")
frames hide their html from the parent frame/window, so if the login
fields are in a frame, looking for the fields in the main wind
can't find the image?
-Dylan
On Aug 25, 2:05 pm, sd wrote:
> Hi,
>
> I have an item. Once I mouseover that item, I get an image which I
> need to click on. I used fire_event(onMouseover) which shows me the
> button which is an image, but I need to click on that image.
> U
More details are probably required. What action is performed instead,
for instance?
On Aug 25, 12:51 am, Adrian Ghidu wrote:
> Sorry for the late reply, but the fire_event_no_wait method is not working:
> the expected action is not performed.
> Thanks
>
> On Thu, Jul 30, 2009 at 5:26 PM, Adrian
r you because I've made some changes to how
the reporter outputs the xml file, but it should give you the basic
idea.
-Dylan
On Aug 23, 11:52 pm, Test Test wrote:
> Tony,
> I have added Class.Attr contents and now its working fine but my
> requirement is to get report(s) in
I was just offering another way he might do it. I'm not at my machine
w/ ruby/watir so I cant test it right now.
=Dylan
On Aug 18, 12:28 am, Raveendran P wrote:
> Hi Dylan,
>
> *Way 1:*
>
> Please provide the code/site URL
>
> I will try and let u know
>
> *Way
Can you do $ie.frame(:index, 1).src
?
-Dylan
On Aug 17, 11:09 pm, Marlon wrote:
> Im getting an error retrieving "src" value which is "https://url.com/
> text.asp?p=xyz&q=abc" using attribute_value()
>
> code: $ie.frame(:index, 1).attribute_value("sr
See my reply to your other message, and please only create one
discussion per topic at a time, thanks. :)
-Dylan
On Aug 17, 12:05 am, Bhavesh wrote:
> Hi ,
>
> I have to click CTRL key + link using watir.
>
> Is anybody know how to do it?
>
> Actually i can tmodify any set
Try something like:
Water::Waiter.new(10).wait_until{$ie.image(:id,imgid).exist?}
using one of the images.
-Dylan
On Aug 17, 7:18 am, Maumita wrote:
> Hi,
>
> I have written a script to capture the page download time.
>
> The page has different shopping item images along w
http://wtr.rubyforge.org/rdoc/classes/Watir/IE.html#M000256
-Dylan
On Aug 16, 11:32 pm, Bhavesh wrote:
> Actually currently i press CTRL key manually and then the link, it
> gets opened.
>
> But while automating how can i do this?
>
> Plz dont suggest to remove pop-blocker
This might not be your issue, but have you tried adding a "require
watir/ie" line? If that doesn't help, please provide information on
what versions of watir and ruby you're using.
-Dylan
On Aug 16, 10:17 pm, balbao wrote:
> Folks,
>
> Have any of you faced simil
The text_field element should also work for text areas.
-Dylan
On Aug 12, 9:18 pm, yuping zhong wrote:
> Dear All,
> I am a new user of Watir.
>
> It is known to all that fills the info in the text_field is easy. But how to
> fill the info in the TEXTAREA? I give more info
et as variables passed to right_click (with
defaults of 0) so I can move the mouse into the element more with a
call like ie.element(:id,//).right_click(30,10)
Thank you so much for your help, I can't believe I missed that. :)
-Dylan
On Aug 12, 3:16 pm, tcfodor wrote:
> Hi Dylan!
&
of the row after the row with id "rowid",
which you can then use like this:
tbl[nextRow(tbl,"xyz")].text
Hope this helps!
-Dylan
On Aug 12, 2:59 pm, Steve Hamlett wrote:
> I need to read contents from a row that does not have an id. That is,
> the HTML tag th
. Is there a
straightforward way to directly right click an element or am I out of
luck? Thanks!
-Dylan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to
go through each image and wait till it exists. If an
image doesn't get loaded in 20 seconds it will throw a Timeout
Exception.
I've had a lot of problems with the way Watir waits for things and
haven't really found a good solution overall.
-Dylan
On Aug 12, 1:52 am, Tony wrote:
Try adding require 'watir/ie' after your require 'watir' line
-Dylan
On Aug 11, 2:03 am, John Kolokotronis wrote:
> Thanks - I noticed the Radio class is in input_elements.rb and tried
> the structure you suggested before my original post:
>
> module Watir
>
Try looking at where the radio methods are defined in watir, that
should give you a clue.
In input_elements.rb, the declaration of Radio functions look like
this:
Module Watir
class Radio < RadioCheckCommon
def myMethod
puts "this is my method
end
end
end
le Search").click
ie.close
end
threads = []
threads << Thread.new{test_google1}
threads << Thread.new{test_google2}
threads[0].join
threads[1].join
-Dylan
On Aug 10, 10:30 pm, Marlon wrote:
> for example:
>
> require 'thread'
> require
You can do this in ruby with threads (http://ruby-doc.org/core/classes/
Thread.html) although you need to be very careful that the two threads
don't interfere.
-Dylan
On Aug 10, 7:44 pm, Marlon wrote:
> Hi, anyone here knows how to run multiple scripts at the same time? I
> wan
d match the
outermost td, then look inside there to see if anything matches, and
so on until it reaches a point where nothing else matches other than
the element its on?
Solutions to either of these problems would help quite a bit if
anybody has them. Thanks!
-Dylan
--~--~-~--~~
ile in the
watir gem under the CheckBox class:
def checked?
return true if(self.html =~ /CHECKED/)
return false
end
then you can used the "checked?" method. Hope this helps!
-Dylan
On Aug 10, 2:56 am, ravilla wrote:
> I got one problem while running the automation script:
&
which version of 1.86? :) I know its confusing, but 1.86 - 27 does not
work with click_no_wait, while 1.86 - 26 does. You can download it
here: http://rubyforge.org/frs/download.php/29263/ruby186-26.exe
-Dylan
On Aug 9, 10:20 am, Pallavi Sharma wrote:
> I am using ruby 1.86 and watir 1.
Well, I'm not sure if this is your problem but that isn't a global
variable, its an instance variable. Global variables start with "$"
-Dylan
On Aug 5, 2:51 am, Yuvraj wrote:
> Hi,
>
> I have installed the ruby 1.8.6 and WATIR 1.6.2.
>
> I am checking wheth
I would ask generic ruby questions here:
http://groups.google.com/group/comp.lang.ruby/topics
-Dylan
On Aug 4, 12:38 pm, anna barbara ostrowska
wrote:
> Hi there,
> Can you recommend me any tool/ruby library that allows me convert data
> (metrics) to graph/charts ect?
> Thank
Date.today() returns a Date object, while .set requires a string.
Somewhere in the set function it is trying to get the length of the
string it was passed, which is why you're getting that error. You
might try something like:
ie.text_field(:name,"q").set "#{today}"
-
I would try uninstall/reinstalling and running gem update --system
beforehand so you have the latest version of rubygems before you try
installing watir. I promise nothing, though! :)
-Dylan
On Aug 2, 8:12 pm, DF wrote:
> I am totally new and just trying to learn and do basic staff.
&g
Add ".to_i" in the middle there, because like you said you aren't
getting an integer back, so you have to make it one. So you end up
with:
$regno = oo.cell(row,6).to_i.to_s
-Dylan
On Aug 3, 8:52 am, balbao wrote:
> HI,
>
> Am a novice in Watir and have a problem in re
Your welcome! A good thing to do when you're using variables that
aren't being accepted like you think they should be is to output them
to the screen right before you use them ("print org[0]"), that way you
know exactly what value is getting used.
-Dylan
On Aug 3, 6:21
s:
org=[]
def get_orgs(org)
f=File.open("orgs.txt","r")
f.each{|line| org.push line.gsub("\n","")}
f.close
return org
end
org=get_orgs(org)
ie.select_list(:id,'id').select(org[0])
-Dylan
On Jul 31, 2:58 pm, infoDrone wrot
get the job done.
-Dylan
On Jul 29, 12:47 pm, "Aaron MacDonald" wrote:
> There is a line of text that I want to extract. It is found in some HTML
> that follows this pattern:
>
>
> Some text
>
> Another link (variable text)
>
> Text I want to ex
http://www.autoitscript.com/autoit3/
-Dylan
On Jul 28, 11:34 am, venky wrote:
> Hi,
>
> Is there any open source tool to automate window based application?
>
> Thanks,
> Venkathttp://prog2impress.com/
--~--~-~--~~~---~--~~
You received this m
Don't see why not. Might be dangerous, depending on what sites you end
up crawling, but a recursive loop should do the trick. You'll have to
use something like FireWatir, unless you have IE on your linux web
server :)
-Dylan
On Jul 27, 8:32 pm, Joeyjoey wrote:
> hi there, i have a
the
File.open line, that will start writing at the end of the file rather
than the beginning.
Hope that helps, don't hesitate to ask more questions if you have
them.
-Dylan
On Jul 25, 8:03 am, RAM wrote:
> Hi allI am very new to Watiranybody here know
each suite
-Dylan
On Jul 23, 2:48 am, pallavi shashidhar wrote:
> Hi there,
> Am using Ci_reporter (not the one you have mentioned. The original one.)
> I have an ERP suite which has watir scripts of various projects under it:
> This is the structure:
> ERP
> -
I would try browser.frame(:src,"xyz").div(:id,/.*/).text_field
(:id,"abc123")
-Dylan
On Jul 22, 11:14 pm, basu wrote:
> Hi ,
>
>
I just removed the require 'ClassAttr.rb' line and copy-pasted the
ClassAttr code into the top of Tony's modified reporter file.
-Dylan
On Jul 22, 8:11 pm, Marlon Mojares wrote:
> Hi, I'm still encountering "no such file to load -- ClassAttr
> (LoadErro
I edited it a little to fit my needs, thought I'd post it:
http://pastie.org/554062
I added a "passed" value to the tag so I can easily check if
the entire suite passed/failed, along with a "time" value so I know
when the test was run.
Thanks again, Tony!
-Dylan
O
Thanks! I have it all up and running and its perfect! I had to rework
my xml stylesheet but it was totally worth it. :)
-Dylan
On Jul 20, 11:12 pm, Tony wrote:
> Hi Dylan,
>
> Ooops sorry missed that...
> Basically this class just gives some short cut methods to access the
>
Thanks Tony! I have tried using your file and I'm receiving this
error: custom_require.rb:31:in 'gem_original_require': no such file to
load -- ClassAttr (LoadError)
The error occurs on the line with "require 'ClassAttr'". Am I missing
some file? Thanks again,
"Edit my membership" on the right hand side, I believe.
-Dylan
On Jul 16, 9:42 am, Geniene Martorell wrote:
> I used to want the emails, now I don't. I set my subscription to "No Email"
> but I am still getting emails. I don't want to unsubscri
to fire correctly on it.
If you want to not have it run continuously, then take out the loop in
"jsClicker()" and just call it with a wait time of a few seconds after
your click_no_wait call.
Hope this helps!
-Dylan
On Jul 16, 8:19 am, Smruti Ranjan Kar
wrote:
> Hi Charley
bute
correctly, but it is always set to 1, even if the suite fails. Also, I
still get multiple xml files created. Could you give me an example of
how you call it that only results in one file? Thanks!
-Dylan
On Jul 15, 11:50 pm, Tony wrote:
> Hi Marlon,
>
> Have modified the ci_reporter
Hey all, just thought I'd share something with you that has made my
testing life a little easier. I don't have my test suite set up in
Cruise Control yet, and even when I do I don't really want to run it
every time I'm messing with the tests. So I wrote this xml stylesheet
that puts CI_Reporter's
some of the calendar popup code I'd be happy to let you know if I see
a way to do it.
-Dylan
On Jul 14, 10:28 am, Ray wrote:
> I had to do this to input a date that is normally selected by a
> javascript calendar pop up.
>
> frame.text_field(:name, fieldName).document.readonly = &
If I'm understanding you right, you want your test to never take more
than 20 seconds, and if the page isn't loaded by then put that in the
log?
If so, you would need something like "click_no_wait" for "goto" (or
you can justwrite a tiny html file that just has a link to the page
and call click_n
Thanks everybody! I think I have a handle on how I'm going to set this
up now. I really appreciate the help!
-Dylan
On Jul 12, 10:22 pm, pallavi shashidhar wrote:
> Hi there,
> We have used cruise control to run our test suites.
> We have structured our test scripts with certa
dd snarkyness to it.
On Jul 10, 12:20 pm, Chuck van der Linden wrote:
> On Jul 9, 10:58 am, Dylan wrote:
>
> > Does anyone know of a good tutorial/step-by-step instructions for how
> > to integrate watir/ruby into a cruise control build cycle. I have 1
> > xml output file
Thank you for the response. Unfortunately, we are already pretty well
entrenched with Cruise Control here and aren't really looking to
change to a new system.
-Dylan
On Jul 9, 5:03 pm, marekj wrote:
> I use Hudson.
> has a ruby and rake plugin.
> I use custom workspace for all
!
-Dylan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guideli
there are any other watir/ruby noobs out there, hope that
helps.
-Dylan
On Jul 8, 1:14 am, Željko Filipin
wrote:
> On Tue, Jul 7, 2009 at 7:52 PM, Dylan wrote:
> > I've even copied the exact html and ruby code given in the "What to do
> > for elements not having class in W
le on
Xpath you provided but I haven't been able to see where my mistake is.
I've even copied the exact html and ruby code given in the "What to do
for elements not having class in Watir?" section, and I still get nil
returned. Thank you!
-Dylan
On Jul 3, 12:42 am, Željko Fili
Well, I finally figured out how to add to Watir, as you
suggested, and that seems to work great. Thank you so much!
-Dylan
On Jul 3, 12:42 am, Željko Filipin
wrote:
> On Fri, Jul 3, 2009 at 12:54 AM, Dylan wrote:
> > Click Here
>
> Try this:
> browser.element_by_xpath(&qu
Hey there! I have a problem I've been banging my head against my desk
on for a while now, so here's hoping someone can help.
I'm trying to click on an element and I can't figure out how. I can
use frame and div to get down to the place on the page where I want to
click and end up like this: $win.
Hey there! I have a problem I've been banging my head against my desk
on for a while now, so here's hoping someone can help.
I'm trying to click on an element and I can't figure out how. I can
use frame and div to get down to the place on the page where I want to
click and end up like this: $win.
63 matches
Mail list logo