Hi,
Can I get the name of the currently running methods with the class and
package name. like--
class A
def method()
puts nameofThecurrentMethod
end
end
let suppose there is a method nameofThecurrentMethod which prints the
name of the currently running method. Is it possible in Watir?
Tha
You could always define your tests in a wiki and update the results
directly to there!
A good way to get everyone involved in what you are running and what
the results are.
Some more info on my blog: http://watirmelon.wordpress.com/category/wiki/
(shameless plug!)
Cheers,
Alister Scott
Brisbane,
I opened Jira ticket #WTR-301 to address the problem. I'll look over
the wiki information again and see what I can do to help clarify the
steps to get up and running until the problem is addressed in a future
gem release/install. The present wiki information seems to be really
geared towards dev
it worked, thanks a lot
On Apr 6, 5:07 pm, Željko Filipin
wrote:
> On Mon, Apr 6, 2009 at 13:58, spike wrote:
> > include Watir
>
> Remove this from your script and try again.
>
> > no such file to
> > load -- safariwatir (MissingSourceFile)
>
> Not sure how you got this error message. Maybe "
it worked, thanks a lot
On Apr 6, 5:05 pm, Angrez Singh wrote:
> remove Include Watir line from your file
>
> - Angrez
>
>
>
> On Mon, Apr 6, 2009 at 5:28 PM, spike wrote:
>
> > i'm not able to run the script from SciTE. I typed in the following
> > script saved it and clicked F5.
> > require '
Hi Chuck,
Thanks for your suggestion, i will try fireEvent and let you know, even i
will take to dev if they can help me out with this.
regards,
jonty
On Tue, Apr 7, 2009 at 5:05 AM, Chuck van der Linden wrote:
>
> if divs are draggable around the screen it's due to javascript running
> on the
Also, keep in mind that FlashWatir is not a universal solution to
testing Flash. It can only see the functions that the Flash app chooses
to expose to JavaScript. So testing a random app on the web isn't
likely to work; testing an in-house app will require talking to your
developers about exposi
Good tips, Chuck. We currently have SharePoint (although we're
getting rid of it in the future...not sure why, though), so I'll need
to figure out how to link the HTML report from there. I'll look into
this...thanks!
On Apr 6, 1:21 pm, Chuck van der Linden wrote:
> write the results to HTML
Its actually just text not a link.
My table has columns 'Agency', City, State. Each row will have data
populated. I will have to select a row based on the 'Agency' I want,
then only the "OK" button will get Enabled. Once I select a 'Agency' I
could select "OK" button.
Thanks
Satish
On Apr 6, 6
answered in other thread
On Apr 6, 3:25 pm, satish wrote:
> I have one more question please.
>
> I have a table inside that I have 3X3 rows/columns.
> I need to select a cell based on text.
>
> Please tell me how to deal with this.
>
> HTML tag for the cell is attached under TD tag as #text
> Ex
is there something more inside the cell than just the text? because
normally 'selecting' a table cell does nothing. If there's something
in there that you can act on, maybe you should try to address that
element, using (:text, 'textyouknow) to identify it.
If you need to be sure it's inside th
SemiOT: Javascript can also tend to cause memory leaks in browsers.
There are some best practices out there as well as a tool called jsleaks I
believe. If your pages are using js, then that's something to check into. It
could actually be a bug.
-c
On Mon, Apr 6, 2009 at 3:11 PM, Chuck van der
I have a table inside that I have 3X3 rows/columns.
I need to select a cell based on text.
Please tell me how to deal with this.
HTML tag for the cell is attached under TD tag as #text
Ex:-
Wilmington
Thank you very much.
Appreciate your help.
Satish
--~--~-~--~~
I have one more question please.
I have a table inside that I have 3X3 rows/columns.
I need to select a cell based on text.
Please tell me how to deal with this.
HTML tag for the cell is attached under TD tag as #text
Ex:-
Wilmington
On Apr 6, 4:50 pm, Chuck van der Linden wrote:
> does
You are wonderful. Thank you very very much for your help. :)
Satish
On Apr 6, 4:50 pm, Chuck van der Linden wrote:
> does the outer table had a good way to identify it? does the inner
> table exist inside a specific cell of the outer table?
>
> You might try using .flash to see if you can sor
Hi everyone. There is a new startup here in Colorado that is doing
something pretty cool for Ruby/Rails development projects. Full
disclosure - I have a (tiny) investment in the company and provide
advice to them from time to time.
Agile Developers may spend (waste?) up to an hour a day waiting
On Apr 4, 11:11 am, kiran wrote:
> Thank you bret..its workinghow to use for for firefox
>
http://wiki.openqa.org/display/WTR/Browser.new
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General" grou
Your original script would probably work if you'd had the correct
value for the ID.
You were using the id of the DIV that contained the select list, when
you wanted the id value for the SELECT list itself
were you ripping the values from the code itself using view source, or
were you using the I
the big question is what's using the memory. its it IE itself, or
something else. (you might be able to tell by using taskman, or
better yet perfmon to look at privatebytes of a few things while the
script runs)
On Apr 6, 1:57 pm, IDIEININIIS wrote:
> Thanks guys.
>
> @Darin,
>
> There actua
if divs are draggable around the screen it's due to javascript running
on the client, since that's not a normal behavior in an html page all
on it's own.
You should probably talk to your devs to find out how it's being
done. I suspect you might end up having to do something like firing
the mous
Thanks guys.
@Darin,
There actually is a puts statement and a counter, I just didn't add it
to the example code because puts seemed to be working fine (i.e. it
wasn't printing out super large amounts of text).
@Chuck,
I noticed that as well, that it starts to hog memory.
Closing and re-opening
does the outer table had a good way to identify it? does the inner
table exist inside a specific cell of the outer table?
You might try using .flash to see if you can sort of work your way in
from the outside.
Potentially (this is theory, I've got no good site I can think of to
hit and see if t
For FlashWatir support, you'd probably be best off contacting the
developer of flashwatir directly since I don't see that they have a
forum or anything listed on the google code page for it.
Your example below appears to be just a slightly edited version of
their generic example code, Most likel
I apologise for my questions, I am very new to this watir tool.
Login To Agency
Here I have to get the name in side the table, as you can see there is
no id
I would also look for opportunities where you could close and re-open
the browser. IE can be a bit of a memory pig I've noticed, and if you
are going to page after page after page with it, it will eventually
grow to use a lot of memory.
if it really was the text method in watir (or some ie/windo
write the results to HTML on a network share everyone can access, send
mail when the test finishes that the results are available (or better
yet embed the report in the mail)..or link to it from sharepont or
your team wiki or whatever collaboration tools you are using.
(see the html reporting
I guess I would add a puts statement or add a counter to see which iteration
it's failing on.
-Original Message-
From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On
Behalf Of IDIEININIIS
Sent: Monday, April 06, 2009 2:42 PM
To: Watir General
Subject: [wtr-gen
My bad, I meant to say "Here is the error message:".
The line of code where the error originates from, basically looks like
this:
ie.div(path).text
The command is in a loop and 'path' is a variable.
On Apr 6, 4:24 pm, "Dennis I." wrote:
> Hi everyone,
>
> I was running a script and after a
Hi everyone,
I was running a script and after a while an IE message popped up
saying it was out of memory.
I believe it's a buffer overflow from using the text method a lot.
Here is the code:
---
The remote procedure call failed.
from (eval):3:in `class_name'
from C:/Ruby/lib/r
Hi George,
I appreciate the plugs for the book from Paul and Chris (and it's the
contributions from them and other folks like them that make the book
helpful!)
Does your team do any regression testing? If so, and if you don't have these
tests automated, who is doing the manual regression tests?
W
Hi all,
Is it posible to test flash on the web?
I am using following code
# include the controller
require 'flash_watir'
include FireWatir
# create an instance of the controller
browser = Firefox.new
# go to the flash page you want to test
browser.goto('http://www.geocities.com/paulocaroli/flash
Hi all,
Is it posible to test flash on the web?
I am using following code
# include the controller
require 'flash_watir'
include FireWatir
# create an instance of the controller
browser = Firefox.new
# go to the flash page you want to test
browser.goto('http://www.geocities.com/paulocaroli/flash
This conversation tends to be quite unproductive when it becomes "is
or isn't test automation useful." It's a lot like "Are books useful?"
Books won't solve any problems on their own. There are plenty of
problems that books will not help with a bit. There are /some/
problems where /the right/ book
Hi all,
Is it posible to test flash on the web?
I am using following code
# include the controller
require 'flash_watir'
include FireWatir
# create an instance of the controller
browser = Firefox.new
# go to the flash page you want to test
browser.goto('http://www.geocities.com/paulocaroli/flash
Right now, I'm creating simple regression tests that we can run after
every patch/version update. And, you're right - there isn't much of a
chance of these tests failing. We're automating this because it's
boring to do manually.
As far as the quick win, I have already completed quite a few scri
This error means the $ie variable contains an array (not a browser). You
have code somewhere that is doing this.
Shweta wrote:
> Hi
>
> Am using arrays in my script to test with multiple data,the scenario
> is in my application i have a search page there i am able to search
> with different crit
That is strange.
Your email summary said "index,2", but you used "index,0"
Index is based 1.
- Original Message
From: jason
To: Watir General
Sent: Friday, April 3, 2009 10:23:14 AM
Subject: [wtr-general] ff.frame(:index,1).button(:index, 2) does not work?
has anyone an idea abo
I don't think any of the recorders have been updated to work with Watir
1.6.x.
vladimir...@hotmail.com wrote:
> My team does not have strong programming experience.
> Recording can be a starting point that speeds up the script
> development.
> What Watir recorder do you recommend?
>
--
Bre
Paul,
Could you update the wiki with this information please?
Bret
Paul Carvalho wrote:
> Well that advice was fairly useless.
>
> I wasted time on a wild goose chase through wiki pages until I got
> around to downloading the original source. I copied the new FireWatir
> folder and, of course
Please see www.watircraft.com/training for my current training.
alex.ikhelis wrote:
> Hi guys!
>
> This is the thing, BTW :): Homebrew Test Automation training by Bret
> http://www.io.com/%7Ewazmo/papers/homebrew_test_automation_200409.pdf
>
> And some articles related to it:
> http://adtmag.com/
There was this fix to the wait logic:
* Fix for "undefined method 'document'" error that was occuring when
loading pages with frames that were slow to load. Reported here:
http://groups.google.com/group/watir-general/browse_thread/thread/ddde6251e30588c9
Based on your previous description, I do
Chuck van der Linden wrote:
> The harder part is purging all the examples that have been printed out
> and pinned to walls...
>
> Is there any way to display some kind of readme (where we could list
> things like this) when someone updates a gem?
>
No. The standard method is to issue a warning
Hi All,
I want your help to findout how should I Automate Drag and Drop a
element to another element (other than using JavaScript)
HTML code:
destination:
i tried the following but it didnt work:
ie.text_field(:id, "ext-gem-532").dragContentsTo(:id, "ext-gem-616")
ERROR: unknown property
@George,
Yes they are all divs.
@Tiffany,
Hi Tiffany,
I am trying to get a list of all the objects that are similar.
I'm dealing with nested divs in my case.
E.g.) I'm after all div class="b" (I didn't expand div class a, b and
c in this case. But they contain info.)
On Mon, Apr 6, 2009 at 06:57, spike wrote:
> I've installed watir recorder++ and i'm getting an error while
> playback
This is not watir recorder support forum. They have their own forum, so you
should ask there. Let me know if you can not find their forum and I will
send you the link.
Željko
-
Did you by any chance install this as admin and are trying to run it
as a regular user? Might want to check your permissions?
i played with watir recorder++ a long while back and never had
problems with watir not working after that. A suggestion though - try
to stay away from the recording tools
see this http://wiki.openqa.org/display/WTR/Selection+Boxes
- Angrez
On Mon, Apr 6, 2009 at 5:48 PM, bwaybandit wrote:
>
> you mean what is the "method" for selecting a value from the list.
>
> Try 'select'
>
> On Apr 6, 8:10 am, spike wrote:
> > Ya that's ok, but wat is the script for selecti
you mean what is the "method" for selecting a value from the list.
Try 'select'
On Apr 6, 8:10 am, spike wrote:
> Ya that's ok, but wat is the script for selecting a value from the
> list.
>
> On Apr 6, 4:02 pm, JArkelen wrote:
>
> > You should use "ctl00_ContentPlaceHolder1_ddlSelectSuperviso
Ya that's ok, but wat is the script for selecting a value from the
list.
On Apr 6, 4:02 pm, JArkelen wrote:
> You should use "ctl00_ContentPlaceHolder1_ddlSelectSupervisor" as the
> id for the select, not the id of the label
>
> On Apr 6, 12:09 pm, Angrez Singh wrote:
>
>
>
> > you are try
On Mon, Apr 6, 2009 at 13:58, spike wrote:
> include Watir
Remove this from your script and try again.
> no such file to
> load -- safariwatir (MissingSourceFile)
Not sure how you got this error message. Maybe "include Watir" causes it.
Željko
--~--~-~--~~~---~--~-
remove Include Watir line from your file
- Angrez
On Mon, Apr 6, 2009 at 5:28 PM, spike wrote:
>
> i'm not able to run the script from SciTE. I typed in the following
> script saved it and clicked F5.
> require 'Watir'
> include Watir
> ie = Watir::IE.new
> ie.goto "http://www.google.com/";
> i
i'm not able to run the script from SciTE. I typed in the following
script saved it and clicked F5.
require 'Watir'
include Watir
ie = Watir::IE.new
ie.goto "http://www.google.com/";
ie.url == "http://www.google.co.in/";
In the output panel I'm getting the following data
>ruby startgoogle.rb
C:/
On Mon, Apr 6, 2009 at 12:58, spike wrote:
> I'm using watir tool currently i'm running the script in Command
> prompt. Is it the right way? or should i run the script in SciTE.
I am running Watir scripts from command prompt for years. Works just fine. I
have tried to run them from Scite and Netb
You should use "ctl00_ContentPlaceHolder1_ddlSelectSupervisor" as the
id for the select, not the id of the label
On Apr 6, 12:09 pm, Angrez Singh wrote:
> you are trying to access select_list using id of label. I think watir is
> right in not recognizing the element. Correct?
>
> ie.select_l
Hi
I'm using watir tool currently i'm running the script in Command
prompt. Is it the right way? or should i run the script in SciTE.
Please suggest me a solution.
thankingyou
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
You could also use variable called __FILE__
On Mar 25, 9:31 am, "vladimir...@hotmail.com"
wrote:
> Thank you very much, Bill.
>
> The idea is to name the results file for each script in a test set by
> the name of the script.
> All scripts use Test::Unit class and have the same setup method.
> I
you are trying to access select_list using id of label. I think watir is
right in not recognizing the element. Correct?
ie.select_list(:id, "ct100_ContentPlaceHolder1_IbISupervisor").
"ct100_ContentPlaceHolder1_IbISupervisor" is ID for span & not select_list.
As per your HTML code "ctl00_Content
hello sir
I used ur solution but its not working i'm getting the following error
irb(main):011:0> ie.select_list(:id,
"ct100_ContentPlaceHolder1_IbISupervisor").
set("Select")
Watir::Exception::UnknownObjectException: Unable to locate element,
using :id, "
ct100_ContentPlaceHolder1_IbISupervisor
At the company where I work using oss tools for performance testing
(www.altentee.com) we often use JMeter to 'spin up the wheels' or as
Chuck put it, conduct 'protocol' level testing. At the same time we
also run a quasi-smoke test if you like, using Watir to conduct
'browser' level testing.
Pro
Or, since vb is already a string, then even cleaner syntax would be:
ie.link(:text, Regexp.new(vb)).click
Also, Netbeans for example doesn't mess syntax highlighting up with
the /#{vb}/ solution.
Jarmo
On Mar 24, 9:31 pm, "vladimir...@hotmail.com"
wrote:
> Thank you, Bret. This syntax is clean
Perhaps you should set the select element and not the span element?
(And could you please give your topic a more meaningful name instead
of 'watir'?)
Cheers,
John
On Apr 6, 8:35 am, spike wrote:
> Hi
>
> The following is the code written for a check list.
>
> align="right">
>
61 matches
Mail list logo