I can imagine why you want to separate the test data from the test
script, but mixing it with the object data makes it confusing in my
opinion.
It would be better to separate both the test data and the object data
to start with.
Cheers,
John
On Apr 28, 2:45 am, Wesley Chen cjq@gmail.com
Hi, guys,
If I have two modules, there is one method in each of it:
module Test1
def self.hello1
end
end
module Test2
def self.hello2
end
end
Can I make the method *hello1 *as a method of module Test2?
So that, I can use *Test2.hello1* ?
Any suggestion would be quite appreciated.
On Sat, Apr 25, 2009 at 14:30, SANTOSH SOLAPURKAR sansolapur...@gmail.com
wrote:
I had posted this topic but did not receive any response earlier, so here
i go again.
Maybe it is only my ignorance, but is this at all related to Watir? You are
aware this is Watir group?
Maybe that is the reason
On Tue, Apr 28, 2009 at 04:02, George george.sand...@gmail.com wrote:
Ooo, a spammer! Does this mean we're a legitimate mailing list now?
We actually get a lot of spam, but moderators of the group delete it. Looks
like this one had some luck. :)
Željko
On Tue, Apr 28, 2009 at 07:55, Wesley Chen cjq@gmail.com wrote:
How to use the select list methods on page:
http://wiki.openqa.org/display/WTR/Selection+Boxes
Any limitations to use the great methods?
I did not understand this.
Željko
--
http://watirpodcast.com/
http://www.ruby-doc.org/core/classes/Module.html
Instance methods appear as methods in a class when the module is included,
module methods do not.
module A
def self.m1
puts m1
end
end
A.m1
= m1
module B
A.m1
end
= m1
What are you trying to do?
Željko
For some reason options method is not there anymore and docs aren't
updated.
There is method getAllContents, but I didn't like this camelCase
method name, so I patched it:
class Watir::SelectList
alias :options :getAllContents
end
On Apr 28, 12:21 pm, Wesley Chen cjq@gmail.com wrote:
On Tue, Apr 28, 2009 at 12:54, Wesley Chen cjq@gmail.com wrote:
So, do you understand what I am saying?
Not a word. :)
Why are you doing
module A
def self.hello1
end
end
instead of
module A
def hello1
end
end
Željko
--~--~-~--~~~---~--~~
You
Thank you, Jarmo,
I have the same thought as you. After all, spelling 'options' is much easier
than 'getAllContents'
For now, I think I have to stil use the old select_list methods, :),
Thanks.
Wesley Chen.
On Tue, Apr 28, 2009 at 6:26 PM, Jarmo Pertman jarm...@gmail.com wrote:
For some
Hi, Zeljko,
I know this kind of select_list use.
But please turn to the address
http://wtr.rubyforge.org/rdoc/classes/Watir/SelectList.html
Then use the methods like *options* on the page.
When I use
put $ie.select_list(:name,//).*options*
I get undefined method error messages.
So, do you know
On Tue, Apr 28, 2009 at 09:17, Wesley Chen cjq@gmail.com wrote:
Can I make the method hello1 as a method of module Test2?
Try this:
module Test2
include Test1
end
Željko
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
After reading more docs online I was able to learn about regular
expressions in Watir. I'm happily attaching to my browser even though
the a portion of the URL is constantly changing. Thanks to all for
you help!
Thanks,
Bobby
On Apr 24, 2:56 pm, Bret Pettichord b...@pettichord.com wrote:
Hi, Zeljko,
I would like to use the style: *module_name.method_name *(rather than *include
module_name*, then use *method_name* directly)
Suppose I have two modules.
First is
module A
def self.hello1
end
def self.hello2
end
...
def self.hello100
end
end
Second is
module B
Hi All,
Even i am finding the same error. i tried to setup my environment many
times but still i am facing this issue.
Any help will be appreciated
Regards,
Kiran Y
On Apr 28, 10:37 am, emz452 emz...@gmail.com wrote:
Just an update -
I didn't end up working from home today, so didn't get a
which OS firefox version are you using?
- Angrez
On Tue, Apr 28, 2009 at 6:24 PM, Kinnu kiranyajaman...@gmail.com wrote:
Hi All,
Even i am finding the same error. i tried to setup my environment many
times but still i am facing this issue.
Any help will be appreciated
Regards,
Kiran
I am using XPSP2 anf Firefox 3.0.8 version
-Kiran Y
On Tue, Apr 28, 2009 at 6:50 PM, Angrez Singh ang...@gmail.com wrote:
which OS firefox version are you using?
- Angrez
On Tue, Apr 28, 2009 at 6:24 PM, Kinnu kiranyajaman...@gmail.com wrote:
Hi All,
Even i am finding the same
Hello,
I have recently installed Ruby 1.8.6-26 and Watir 1.6.2 on a Windows 2000
machine at work and when I tried to run a simple script that attaches to an
existing window, but I faced the same problem from 2 years ago:
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie-class.rb:241:in
On Apr 28, 12:13 am, JArkelen johnvanarke...@gmail.com wrote:
I can imagine why you want to separate the test data from the test
script, but mixing it with the object data makes it confusing in my
opinion.
It would be better to separate both the test data and the object data
to start with.
No, I have my own framework/directory structure for my tests and I'm
perfectly happy with it.
On Apr 28, 4:36 pm, Chris McMahon christopher.mcma...@gmail.com
wrote:
On Apr 28, 12:13 am, JArkelen johnvanarke...@gmail.com wrote:
I can imagine why you want to separate the test data from the
I use windows xpsp2 and it works fine. Which JSSH XPI are you using? and are
you installing it with admin rights?
- Angrez
On Tue, Apr 28, 2009 at 6:57 PM, kiran yajamanyam kiranyajaman...@gmail.com
wrote:
I am using XPSP2 anf Firefox 3.0.8 version
-Kiran Y
On Tue, Apr 28, 2009 at 6:50
The actual resolution is (drum-roll, please):
rescue
some code
self.exit
end
Thanks to all who helped!
On Apr 27, 3:27 pm, «°¤§ømåtïçCðrp§ë¤°» john.bai...@unisys.com
wrote:
You hit the nail on the head, thanks, Adam!
I tried using 'break', but the ruby syntax didn't like seeing the
I'm a no0b, when it comes to things like this, but if the tabs exist
in frames, then you can use the id to drill down to the section you
want.
i.e.: browser.frame(:id, tabs).button(:id, tab1).click
Using this method, you don't need to explicity call out the onClick
or onFire methods.
Given that
I'm still, pretty much a no0b, but could these examples help!?
@browser.frame(:id, 'detail').text.should include(something here)
@browser.frame(:id, '/adsonar_serve/').contains(some constant)
For the constantly changing frames, the only suggestion I can give, is
to include rescues for frames
Can I nest rescues, like one can (normally) nest if statements?
For example:
#Validates text that should exist on the page.
@browser.text.should include?(COMPANY INFORMATION)
#Rescues text not found, by refreshing the page
rescue Watir::Exception::NoMatchingTextFoundException
I suppose you could, but the smarter thing would be to wait until a certain
element exists, using Watir's wait_until.
http://wiki.openqa.org/display/WTR/FAQ#FAQ-HowdoIdealwithtimingissuesandnotusesleep%3F
wait_until should by default poll for a given condition every .2 seconds up
until 60
Thanks!
I wanted to ensure, though, that if the element didn't exist, that I
caught the exception, refreshed the page and the caused the script to
exit, if the element still did not produce. (i.e.: if the web-server
is down, neither the rescue nor wait until will work).
On Apr 28, 12:59 pm,
Hmmm, well sure, if the web server is down you don't want to run the suite
at all. I'd check for that first thing. Otherwise you can still catch the
time out exception from wait_until and handle it, if there's a way to
recover and move on.
hth,
Charley Baker
blog: http://blog.charleybaker.org/
Hi!
I haven't done this, but you might find the answer here:
http://rubyonwindows.blogspot.com/search/label/excel
Hope this helps!
-Tiffany
On Apr 28, 12:43 pm, AR reed.a...@gmail.com wrote:
I've checked all the usual suspects (rubygarden article, searching
here, etc), but I haven't found
Thanks Tiffany - that site has been very useful as far as getting deep
into Excel, but I was not able to find the worksheet renaming there
earlier today...
On Apr 28, 1:47 pm, Tiffany Fodor tcfo...@comcast.net wrote:
Hi!
I haven't done this, but you might find the answer here:
Could you please open up new ticket for this issue (in Jira)? Also could
you provide instructions on how to reproduce your problem? I understand
your workaround, but It is unclear to me what you are trying to do when
you see this error and it is unclear to me whether this is something
that
On Apr 28, 8:56 am, JArkelen johnvanarke...@gmail.com wrote:
No, I have my own framework/directory structure for my tests and I'm
perfectly happy with it.
It seems hardly sporting to issue such a broad criticism and then
leave without an example. :-)
I wrote this to illustrate some
Hello, Bret.
I wrote that comment two days after you resolved the issue, two years ago :)
Basically, the workaround iterates the open windows through the ShellWindows
object instead of Shell.Application
After some initial research, I found this
32 matches
Mail list logo