I running test cases under Windows Environment, using ruby, watir 1.5.1.1100.
I have the following code:
require 'watir' # the watir controller
require 'watir/winClicker.rb'
require 'watir\contrib\enabled_popup'
test = C:\\aa.htm
ie=Watir::IE.start(test)
def startClicker( button,ie,waitTime =
I am using the following code:
require 'net/http'
# read the page data
http = Net::HTTP.new('kvcrpf.org', 80)
resp, page = http.get('/achievements.htm', nil )
# BEGIN processing HTML
def parse_html(data,tag)
return data.scan(%r{#{tag}\s*.*?(.*?)/#{tag}}im).flatten
end
output = []
table_data =
On 12/20/06, Bret Pettichord [EMAIL PROTECTED] wrote:
Željko Filipin wrote:
while true
break unless ie.text.include?(loading)
sleep 1
end
This is a more concise way of doing the same thing:
while (ie.text.include? 'loading') {sleep 1}
I knew that there had to be a way to do it in
For
span style=color: Red; visibility: visible;
id=MainLogin_PasswordRequired*/span
you can use
irb(main):015:0 ie.span(:id, MainLogin_Password).html
= SPAN id=MainLogin_PasswordRequired title=\Password is required.\
style=\VISIBILITY: visible; COLOR: red\*/SPAN
irb(main):016:0 ie.span(:id,
Hi,
I am pretty new to WET and Watir. I have extensive automation experience in
QTP and WinRunner where I created frameworks to make automation experience
more maintainable and less time consuming
I have created couple of automation scripts using WET (which is of course
quick along with
Hello Navneesh,
would You be nice if You could start a new topic for each new
discussion! Please don´t just answer to an old mail an change the topic!
If a mail-program shows the discussion as threads Your behaviour isn´t
very nice. Your mail is then shown as answer to Re: [Wtr-general] Wait
Hi Naveen,
Watir is a Powerful lib you an almost do everything.
WET sits on top of Watir and WET supports all most all
the features you have asked for.
1. External Object Repository = Use XRM Repository
manager to create object repo in xml / use WET-UI to
create objects.
2. Use External
Thank you, Zeljko, for your crystal-clear answer, using which the issue got
resolved. Using the similar answer you have given to a different thread, I was
unable to resolve the issue using that (because I was continually trying with
the '.enabled' option and ignored the '.exists' options
Hi,
I am pretty new to WET and Watir. I have extensive automation experience in
QTP and WinRunner where I created frameworks to make automation experience
more maintainable and less time consuming
I have created couple of automation scripts using WET (which is of course
quick along with other
Thank you, Zeljko, for your crystal-clear answer, using which the issue got
resolved. Using the similar answer you have given to a different thread, I was
unable to resolve the issue using that (because I was continually trying with
the '.enabled' option and ignored the '.exists' options
On 12/21/06, vijay [EMAIL PROTECTED] wrote:
1. How you came to know that there is a word called cell, which can be
used to check the contents of a table cell. Is that documented
somewhere? If so, can you point me to the link where all these different
types of objects, which can be referred
Hello,
Can someone tell me how to handle exceptions
(Watir::Exception::UnknownObjectException: Unable to locate object) in Watir
such that Watir would write the exception message somewhere and continue with
the script?
Thanks, in Advance,
Vijay
Navneesh Garg wrote:
Hi,
I am pretty new to WET and Watir. I have extensive automation experience in
QTP and WinRunner where I created frameworks to make automation experience
more maintainable and less time consuming
I have created couple of automation scripts using WET (which is of
I'm cross posting this one from Ruby Forum as I'm at a loss here...
I have a harness I'm using for testing with Watir. It has become
apparent that the iterator is loading the tests defined based on the
order they appear in the directory as opposed to the order in the
testlist.
Agreed: http://jira.openqa.org/browse/WTR-121.
On 12/20/06, Charley Baker [EMAIL PROTECTED] wrote:
Ah, you're adding it to the IE class, which in Watir 1.4.1 was a super of
Frame. In 1.5.1, Frame doesn't inherit from IE, but does include Container
and PageContainer as mixins. You'll want to
link = ie.div(:text, 'Pragmatic Version
Control').after.link(:class,
addtocard')
I think this is less intuitive and it would be
somewhat harder to
implement. That's why i came up with the other
proposal, above.
Thats actually the first way I thought of it too.
A second, slightly
I've been bending my brain round that Javascript thing for a while and
should a glimmer of intelligence shine into the murk of my brain, I'll
certainly contribute any code I create towards a standard method for
dealing with these things...
Max Russell
Test Analyst.
INPS
Tel: 01382 223900
On 12/19/06, Bret Pettichord [EMAIL PROTECTED] wrote:
Can you manually install AutoIt and then successfully run minmax_test.rb
as a limited user?
ruby 1.8.5 (2006-08-25) [i386-mswin32], ie7, watir-1.5.1.1127
minmax_test.rb works when runned as a limited user without AutoIt installed
(and
Google is your friend, searching for watir javascript dialog, this is the
first link:
http://www.hanselman.com/blog/ClickingAJavaScriptDialogUsingWatir.aspx
-Charley
On 12/20/06, liucongying [EMAIL PROTECTED] wrote:
I use ruby185-21 and watir-1.5.1.1127.gem, I want a solution fo js pop the
didnt some one post a is_visible? ( or visible?) method to the list?
I think it walked up the dom tree looking to see if parent elements were
visible, as the approach here wont work if the element that encloses the span (
if there is one ) is also hidden.
Paul
- Original Message -
There's a user contribution on the Wiki:
http://wiki.openqa.org/pages/viewpage.action?pageId=1119that extends
element to walk the DOM tree and check for disabled or non-visible elements.
-Charley
On 12/21/06, Paul Rogers [EMAIL PROTECTED] wrote:
didnt some one post a is_visible? ( or
I have read numerous posts about problems with Watir and accessing data that is
computed elsewhere (i.e. in a separate .js file) but unfortunately none of the
posts have pointed me in the right direction. I am testing a simple html page
that has no frames but does call javascript functions in
Željko Filipin wrote:
Can you manually install AutoIt and then successfully run
minmax_test.rb
as a limited user?
ruby 1.8.5 (2006-08-25) [i386-mswin32], ie7, watir-1.5.1.1127
minmax_test.rb works when runned as a limited user without AutoIt
installed (and even when limited
Hi All,
Here is the popup manager I wrote. (im just about to
head off on holiday but I'll be back in Jan)
download here: http://www.mindflowsolutions.com/software/popup.zip
I would be grateful if people could try this out and give me feedback on
if it is working for them. Any improvements and
http://facets.rubyforge.org/
Looks like some interesting things, I just wondered if anyone here has
experience with it/them?
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Vince,
I tried this:
puts Button 1: #{ie.buttons[1].name}
puts Button 2: #{ie.buttons[2].name}
puts Button 3: #{ie.buttons[3].name}
Got this output:
Button 1: search
Button 2: sfwq
E
The first button is a search function on the page.
The 2nd is the submit
Hi,
Croczilla site is up again. Following is Alex Fritze reply to the mail:
The server zope instance shut itself down and I didn't notice until today,
since I'm away on holiday in Mexico at the moment :-)
It's fixed now.
Regards,
Angrez
On 12/19/06, Dave Hoover [EMAIL PROTECTED] wrote:
I running test cases under Windows Environment, using ruby, watir 1.5.1.1100.
I have the following code:
require 'watir' # the watir controller
require 'watir/winClicker.rb'
require 'watir\contrib\enabled_popup'
test = C:\\aa.htm
ie=Watir::IE.start(test)
def startClicker(
28 matches
Mail list logo