You could use Kernel#caller to extract this information
http://www.ruby-doc.org/core/classes/Kernel.html#M005955
Jarmo
On Apr 17, 4:55 pm, Vikas Tulashyam vtulash...@gmail.com wrote:
Hi Friends,
I want to get the name of the calling function in our program . e.g. --
class A
def
I have met a problem.
There is a checkbox, when I click it, it pops up a dialog with OK button
on it.
How can I click the OK button on it?
Is there any set_no_wait method and then click OK?
Any suggestion would be quite appreciated.
Thanks.
Wesley Chen.
On Tue, Feb 17, 2009 at 1:51 AM, Bret
Hi
i went through the link and did some changes but it didnt work for me
below is the code i'm using to handle the ajax popup. please suggest
the changes required
require 'Watir/ie'
require 'test/unit'
require 'watir/testcase'
require 'win32ole'
require 'watir/contrib/enabled_popup'
class
Hi,
As most of you know, Watir uses JIRA and Confluence for bugs and
documentation.
If you work in a small team and have wanted to have these tools but
couldn't afford it, you can now.
For 5 days, 5-user licenses for JIRA and Confluence are only $5!
All proceeds to charity too! See:
Thanks, I make few changes and get it down. :)
Now, we can use click_no_wait, select_no_wait, set_no_wait.
module Watir
class Element
#select_no_wait - selects a drop-down element spawning a new
process.
#this is needed to close potential pop-ups that select drop-down can
Hi All,
I have one button in my web spplication:
INPUT class=iceCmdBtn id=_id129:configchange onblur=setFocus
(''); onfocus=setFocus(this.id); onclick=deleteCalled
(form,this,event,'Are you sure you want to restart the Agent? \n \n
Till the time agent restarted, you may not be able to do any
Hi,
I want to know how can we continue with the script execution when assert
condition fails.
The control does not go ahead from the line where the assert condition
fails.
For example suppose I have following assert condition
assert(ie.pageContainsText(some text))
Then if the above condition
startclicker goes well while I puts statements there, it has completed
its job, sending msg to jssh sucessfully :(
Can you share some information on how the Jssh works or point me to
some link so that I can continue to trace what happen in Jssh side?
Thanks
On 4月9日, 下午3时28分, Angrez Singh
i dont have power point, so no. Id guess from the exception that you are
trying to read the text from a square box or some other shape
Paul
On Sun, Apr 19, 2009 at 11:41 PM, kiran gki...@gmail.com wrote:
Hi paul,
Thank you for your reply.
I am using MS-powerpoint2003 and I have tried the
Can anyone send some sample code that creates reports using the html reporting
class? Preferably a report with all of the bells and whistles that management
would like to see. Thanks alot.
- Shelton
Date: Wed, 15 Apr 2009 15:47:22 -0700
Subject: [wtr-general] Re: Test Results Report
I have a field which should be defined as
class ViewActivityPatternPage Taza::Page
field(:class) {logon_frame.span
(:id, /.*:ActivityClass$/)}
...
end
but as soon as the page object is instantiated I get
undefined method `class_field' for
Look I'm not sure how to make this any clearer
Without direct access to the page you are tryng to test, there's no
way anyone here can tell you exactly what you need to do (i.e.
suggest the changes required) to make things work (aka do your job
for you)
Without access to output and error
On Apr 20, 4:27 am, bwaybandit lenridge...@gmail.com wrote:
use 'rescue' to handle your exception and there you can pass on
control to your next test or not. use unit/test framework to write
your tests. All that is handled for you.
But do be aware that by design with most of these
I have code that uses this, but it tests against a non public site so
I doubt it would be of much use to you.
did you look at the sample code that's in the wiki already? that's
what I used as a starting point for much of what I did.
On Apr 20, 12:23 pm, Jason Shelton jas.shel...@hotmail.com
I think you'd be better off to take this to a forum specific to either
powerpoint or ruby.. you're pretty far away from the expertise of the
folks here once you are not dealing with watir, or a web iterface or
website
On Apr 19, 10:41 pm, kiran gki...@gmail.com wrote:
Hi paul,
Thank you for
search the group for the phrase 'onmouseover' and you'll find
threads about firing that event, which is likely what is driving the
code.. (which you would likely discover if you review the actual code
that makes the page work, or at least the code that drives the
animation of the stars)
On
I used what the wiki gave me and tried different background colors,
added the company logo, etc. It appears that I need to learn some
HTML to really make this look snazzy.
Chuck, is it possible to attach an example of how you tweaked the wiki
report? I'm needing some inspiration to make this
Actually, I kind of liked the way WET produced their report when I
used it...
file:///U:/New%20Folder/authentication/results/Authentication.html
On Apr 20, 2:43 pm, George george.sand...@gmail.com wrote:
I used what the wiki gave me and tried different background colors,
added the company
I actually kind of liked the way WET produced their HTML report. For
the life of me, I don't know how to attach a file to this message, so
I posted Authentication.html in the Files section of this group. Hope
that was OK...feel free to remove it if it isn't.
On Apr 20, 2:43 pm, George
Hi Durgesh!
Are you using the Test::Unit assertions?
Originally, I used the Test::Unit assertions, but moved to the Watir
assertions for this reason. Watir assertions won't cause the script
to stop - it will keep running until it can't find any of the page
objects to continue your tests.
You
To clarify, Tiffany is talking about the verify method that is part of
the Watir assertions.
Bret
Tiffany Fodor wrote:
Hi Durgesh!
Are you using the Test::Unit assertions?
Originally, I used the Test::Unit assertions, but moved to the Watir
assertions for this reason. Watir assertions
where is that documented? I didn't even know we had that method (I
went and wrote my own verify for the first generation of my
automation)
On Apr 20, 4:07 pm, Bret Pettichord b...@pettichord.com wrote:
To clarify, Tiffany is talking about the verify method that is part of
the Watir
bump.. never got a response from TPTB (The Powers That Be)
On Mar 10, 12:53 pm, Chuck vdL sqa...@gmail.com wrote:
I've been playing with the CLReport examplehtmlreportingclass, I've
added the concept of a 'blocked' test (e.g. if you were going to check
the URL of a link, but the link
I asked over a month ago about what the preference was to putting an
updated example into the wiki but never got a response. I bumped that
message..
In the meantime, in the middle of the class there was some 'if' logic
that took care of the formatting of the result, I replaced it with
this (no
I believe onfocus works just as well:
browser.link(:id, thisisalink).fire_event(onfocus)
On Apr 20, 2:43 pm, Chuck van der Linden sqa...@gmail.com wrote:
search the group for the phrase 'onmouseover' and you'll find
threads about firing that event, which is likely what is driving the
This may or may not work:
browser.link(:id, thisisalink).fire_event(onfocus)
On Apr 20, 2:43 pm, Chuck van der Linden sqa...@gmail.com wrote:
search the group for the phrase 'onmouseover' and you'll find
threads about firing that event, which is likely what is driving the
code.. (which
On Apr 20, 2:58 pm, George george.sand...@gmail.com wrote:
I actually kind of liked the way WET produced their HTML report. For
the life of me, I don't know how to attach a file to this message, so
I posted Authentication.html in the Files section of this group. Hope
that was OK...feel free
might work.
given what he described I'm not betting on it since I THINK that
focus only happens if you are using tab to move stuff with a defined
taborder (e.g. entry fields) or you actually click on something.
in this case it sounds like it's happening (if I read him right) when
the mouse
Yeah, you're right. I tried this on one of my favorite websites:
First, open your browser to http://icanhascheezburger.com, then follow
this:
==
require 'watir'
ie = Watir::IE.attach(:title, /Lolcats/)
# I'm now going to mouse over the third star associated with the first
http://groups.google.com/group/watir-general/browse_thread/thread/df7eca6a7a591e05
http://wtr.rubyforge.org/rdoc/classes/Watir/Assertions.html
Chuck van der Linden wrote:
where is that documented? I didn't even know we had that method (I
went and wrote my own verify for the first
30 matches
Mail list logo