you dont need this line:
ie = Watir::IE.attach(:url, https///FaqPage.aspx'/FaqPage.aspx')
or if its a new window, use a different name, it will help understanding
Which is line 10?
I dont think frames have titles - where would you see it?
try just
ie.title
to get the title of the
Must be a cleaner way?
Yes - an array - you'll figure it out ;-)
- Original Message -
From: Jason [EMAIL PROTECTED]
Date: Wednesday, July 11, 2007 9:37 am
Subject: Re: [Wtr-general] Concurrent Threads and different variables in
each thread
To: wtr-general@rubyforge.org
yes, modal dialogs are only supported using that particular version
- Original Message -
From: Matt Berney [EMAIL PROTECTED]
Date: Wednesday, July 11, 2007 11:09 am
Subject: Re: [Wtr-general] Selecting controls in a dialog box
To: wtr-general@rubyforge.org
It seems like I am having
have you looked at the modal_dialog stuff in watir? Ive never used it so cant
help you much, but its there.
- Original Message -
From: Matt Berney [EMAIL PROTECTED]
Date: Tuesday, July 10, 2007 12:10 pm
Subject: Re: [Wtr-general] Selecting controls in a dialog box
To:
ie.status
- Original Message -
From: marty [EMAIL PROTECTED]
Date: Tuesday, July 10, 2007 2:08 pm
Subject: [Wtr-general] How to access the window.status pane
To: wtr-general@rubyforge.org
We have some code that on a MouseOver sets the window.status
field. Is there a way to access
---BeginMessage---
this sounds like a modal dialog box
Ive never used them, but there should be unit tests and its been mentioned on
the list many times, so you should be able to search the archives for sample
code
Paul
- Original Message -
From: Matt Berney [EMAIL PROTECTED]
Date:
there is a .hidden? method available in the user contrib section on the wiki I
think. Or the email archives. Some submitted it, so it does exist.
- Original Message -
From: mihai [EMAIL PROTECTED]
Date: Monday, July 9, 2007 2:34 pm
Subject: Re: [Wtr-general] hidden control..
To:
watir doesnt support doing this itself. You could probably write something
to do this using auto-it. But an easier way is to probably test it once
manually, and then save the link details. and instead of clicking the link,
just make sure it hasnt changed from when you manually tested it
Paul
I guess the options in a select list should really be array-like:
ie.select_list(:id, 'whatever').select_first
ie.select_list(:id, 'whatever').select_last
ie.select_list(:id, 'whatever').select[3] # select the 3 or 4th, ( 1 or 0
indexing)
Paul
- Original Message -
From: Tiffany
THis was posted on clr
http://groups.google.ca/group/comp.lang.ruby/browse_thread/thread/2170f6b9401536fc/77f9db176b92b8d0?lnk=raot#77f9db176b92b8d0
Thanks Kevin!
Kev Jackson
View profile
I've never been so impressed with a piece of software so quickly in my life.
This
ha! I never noticed that. It was on a thread of today. I guess someone just
added to this original thread.
- Original Message -
From: Bret Pettichord [EMAIL PROTECTED]
Date: Tuesday, June 19, 2007 12:57 pm
Subject: Re: [Wtr-general] From comp.lang.ruby
Paul Rogers wrote:
From: Kev
all of those are methods ( or properties of IE )
http://msdn2.microsoft.com/en-us/library/aa752043.aspx
and
http://msdn2.microsoft.com/en-us/library/ms534359.aspx
- Original Message -
From: Jeff Fry
To: wtr-general@rubyforge.org
Sent: Tuesday, June 19, 2007 7:38 PM
Subject:
heres why cruise.rb was down---BeginMessage---
Hi, Paul,
It's the server that runs demo instance. For some reason it just powers
itself down every month or so, and prefers to do it on Friday night...
We will be moving it to a somewhat less ad-hoc setup soon.
--
Alex
Paul Rogers [EMAIL
a very quick look suggesrs you need
if $ie.link(:text, $page.link_to_text ).exists?
in place of
if $ie.link(:text, page.link_to_text ).exists?
- Original Message -
From: Jeff Fry
To: wtr-general@rubyforge.org
Sent: Friday, June 15, 2007 6:43 PM
Subject:
looking at the methods provided, it would seem that some are definite
candidates for inclusion the dialog code for example )
some of the others, like the regex methods, dont seem to be particularly
suited watir.
But saying that, thanks for the contributions, they are always welcome, and
give
I just ran your code fro mirb using watir 1.4.1 and it only printed it once
- Original Message -
From: mihai [EMAIL PROTECTED]
Date: Tuesday, June 12, 2007 11:12 am
Subject: [Wtr-general] $ie.text.include? problem
i have this code:
testSite = 'http://www.google.com'
$ie = IE.new
use this instead
@ie.div(:class, 'PopupMenuLabel title').button(:class,'Button Menu').click
Hey gang,
I am updating a script due to a GUI change. There was previously only one
button on the page where class = 'Button Menu'. Now there are two. I'm
trying to identify the button by the div it's in,
http://www.apple.com/safari/
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
the code in that page uses the javascript event object, which we've had
problems with in watir.
I think you will be able to make this work by:
simulate right click
see if the menuitem div is visible
click it based on its text
something like this may be what you need
search the archives for onContextMenu - i posted some code to do right
clicks a few months back
Paul
- Original Message -
From: mihai [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Friday, June 08, 2007 8:54 AM
Subject: [Wtr-general] mouse right click?
can i send to a control
this was removed from 1.5 because for a few people it was annoying.
doing this may fix it
require 'watir/contrib/page_checker'
ie = Watir::IE.start( 'www.page.com')
ie.add_checker(PageCheckers::NAVIGATION_CHECKER)
Paul
- Original Message -
From: Titani [EMAIL PROTECTED]
To:
you may want to look at xml unit - http://xmlunit.sourceforge.net/
- Original Message -
From: Lana [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Tuesday, June 05, 2007 7:13 PM
Subject: Re: [Wtr-general] How would you approach verification of data in
*xml* format with Watir?
why not put your login code into a login class, and have th test class
instantiate that
class Login
def initialize(params)
self.username.set(params[:username])
self.password.set(params[:password])
end
def username;$ie.text_field(:name, 'username');end
def password;$ie.text_field(:name,
there is a parse method on the Date class which allows you to create a ruby
date object from a string
http://www.ruby-doc.org/core/classes/Date.html#M000656
you could do this for each of the dates listed below, and then have ruby sort
them, and format in the same style as they are shown in
I use this method:
def require_files_in_dir( start_dir )
files = Dir[ start_dir]
files.each do |f|
require f
end
end
- Original Message -
From: Fletch [EMAIL PROTECTED]
Date: Wednesday, May 30, 2007 9:16 am
Subject: [Wtr-general] 'Require' Lots
def require_files_in_dir
end
require_files_in_dir( 'c:\')
require_files_in_dir( 'c:\temp')
- Original Message -
From: Fletch [EMAIL PROTECTED]
Date: Wednesday, May 30, 2007 9:39 am
Subject: Re: [Wtr-general] 'Require' Lots Of Files
Thanks for the reply - not to sound silly at
just saw your other question..
doing
def some_method
end
def some_other_method
end
class Foo
end
class Foo2
end
makes the some_method and some_other_method accessable to all - what ruby does
is adds them to class Object, which is the super class of everything - you can
see this by doing
actually it seems you have to use it like this
require_files_in_dir( 'c:\*.rb')
- Original Message -
From: Paul Rogers [EMAIL PROTECTED]
Date: Wednesday, May 30, 2007 9:43 am
Subject: Re: [Wtr-general] 'Require' Lots Of Files
def require_files_in_dir
end
there is a ruby gmailer library, which, if you are just trying to send and
receive email is probably a much better bet
Manish,
Are you working for Google, or are you automating Gmail for some other
reason. I am asking because, if you work for Google, you could ask
developers how to click
Im sure there is code in the set method to limit it to the max size - did it
somehow get broken?
Paul
- Original Message -
From: Bret Pettichord [EMAIL PROTECTED]
Date: Tuesday, May 29, 2007 11:30 am
Subject: Re: [Wtr-general] maxLength Validation
Fletch wrote:
I have been looking
I opened jira 157 and added a patch for the unit test and html
I'll try and take a look at the set method itself later on
- Original Message -
From: Bret Pettichord [EMAIL PROTECTED]
Date: Tuesday, May 29, 2007 11:30 am
Subject: Re: [Wtr-general] maxLength Validation
Fletch wrote:
I
I added the patch for watir.rb to the jira ticket
Paul
- Original Message -
From: Paul Rogers [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Tuesday, May 29, 2007 6:04 PM
Subject: Re: [Wtr-general] maxLength Validation
I opened jira 157 and added a patch for the unit test
this looks really useful - it would work really well with an error checker:
AccessChecker = Proc.new{|ie|
raakttest = Raakt::Test.new(ie.html)
result = raakttest.all
if result.length 0
puts Accessibility problems detected on #{ie.title}, #{ie.url}:
puts result
else
/07, Paul Rogers [EMAIL PROTECTED] wrote:
this now means that every time a page is loaded, the accessability checks
get run
Nice code sample. Didn't know you could do that in Watir. May I use it
as an example in the Raakt wiki?
Regards,
Peter
for images, 1.4 let you use :src which was the url of the image. I cant test it
on the latest as all my gems are broken :-(
- Original Message -
From: Charley Baker
To: wtr-general@rubyforge.org
Sent: Friday, May 25, 2007 1:17 PM
Subject: Re: [Wtr-general] RDOC - Help
you need to 'load up' the assertions libraries
the following shows you how
C:\cygwinirb
irb(main):001:0 require 'test/unit/assertions'
= true
irb(main):002:0 include Test::Unit::Assertions
= Object
irb(main):003:0 assert( true )
= nil
irb(main):004:0 assert(false)
the exception is caused by the value you are trying to set
account[bldgBI] being nil
you can test is by doing this first
puts oh no - its nil if account[bldgBI].nil?
- Original Message -
From: Tiffany Fodor [EMAIL PROTECTED]
Date: Tuesday, May 22, 2007 11:04 am
Subject: [Wtr-general]
which version of watir are you using?
I there a page refresh when the select box is selected?
Paul
- Original Message -
From: Ken [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Thursday, May 17, 2007 1:24 PM
Subject: [Wtr-general] Error message with a dropdown
I am getting the
ie.div(:class , 'wiki').ole_object.invoke('innerText' , hi Chris)
Im not entirely sure how the invoke method works with an argument, but that
looks about right from the docs
Paul
- Original Message -
From: Chris McMahon [EMAIL PROTECTED]
Date: Wednesday, May 16, 2007 11:35 am
Subject:
ah, of course, you only need invoke if there is a collision between an
ole_method name and a ruy method name, like id
- Original Message -
From: Bret Pettichord [EMAIL PROTECTED]
Date: Wednesday, May 16, 2007 12:39 pm
Subject: Re: [Wtr-general] how to manipulate this?
Paul Rogers wrote
I think its important to support both at the moment, as Im sure many people
still havent upgraded.
Id seen these problems, but Im using 1.4 and I cant remember if I did something
to make it work on both ie6 and 7 or just stuck with 6.
Paul
- Original Message -
From: Bret Pettichord
I beleive innerText is an ie only thing ( it might be thinkiig of innerHTML
though)
- Original Message -
From: Chris McMahon [EMAIL PROTECTED]
Date: Wednesday, May 16, 2007 1:58 pm
Subject: [Wtr-general] fireWatir guess. Re: how to manipulate this?
ie.div(:class ,
Message -
From: Bret Pettichord [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Wednesday, May 16, 2007 1:55 PM
Subject: Re: [Wtr-general] Supporting IE 7
Paul Rogers wrote:
I think its important to support both at the moment, as Im sure many
people still havent upgraded.
If you
will you be providing some call back mechanism so I am able to add my own
spinner when the page is loading?
- Original Message -
From: Bret Pettichord
To: wtr-general@rubyforge.org
Sent: Monday, May 14, 2007 3:09 PM
Subject: [Wtr-general] Watir Development Gem 1.5.1.1166
: Bret Pettichord [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Monday, May 14, 2007 5:09 PM
Subject: Re: [Wtr-general] Watir Development Gem 1.5.1.1166 Released
Paul Rogers wrote:
will you be providing some call back mechanism so I am able to add my
own spinner when the page is loading
Id like the winclicker code to disappear and be replaced by a full windows
testing library ( How you getting along with that Chris ? ). Enough people seem
to want it.
Paul
- Original Message -
From: Bret Pettichord [EMAIL PROTECTED]
Date: Wednesday, May 9, 2007 1:40 pm
Subject: Re:
your code doesnt show where you create spreadsheetdate but if you use either
the text or attribute ( i cant remember which, and dont have excel here )
myval = worksheet.range('a2')['value'] # or ['text']
one of these will do the right thing
Paul
- Original Message -
From: Tunde
It seems like we need a seperate 'service' that runs next to watir and deals
with any type of pop up
Psuedo code:
# this line tells the other service to expect a
# Modal dialog
dialog_clicker :expect = 'Windows Modal' , :click = 'ok'
@ie.button(:value , 'Show Modal').click
# the service now
not so much about what needs to go in, but more whats a good example of rdoc -
look at the rails docs - api.rubyonrails.org I think the content is very good.
I'll read through the latest source now, and hopefully I'll send you some more
thoughts later tonight
Paul
- Original Message
In my opionion, the rdocs are really dificult to read right now. I think if I
was picking up watir now and looking at the rdocs for the first time, Id be a
bit disheartened.
I would make sure that only relevant ( to the end user )
methods/classes/modules are in the rdoc
you can switch off rdoc
Ive also been meaning for ages to write up how the error checkers work. I'll
try and do that between now and then end of the week.
Paul
- Original Message -
From: Paul Rogers
To: wtr-general@rubyforge.org
Sent: Tuesday, May 08, 2007 9:47 PM
Subject: Re: [Wtr-general] RDOC
drb might be what you want.
Also search the list here - someone posted a link to a library that might be
more like what you want. I wish I could remember who/what/when to help
narrow your search
- Original Message -
From: Aaron [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent:
Assuming your html uses regular type html
input type - text name='foo' maxLength=3
and you only want to test that the text field only allows 3 chars, why not
use
ie.text_field(:index,1).maxLength
I guess if the maximum length is imposed by a javascript method on the
onKeyPress event, then
seems like we should have some platform independant way of doing this:
watir::winclicker.click_dialog_button()
for windows it can then either use auto it of winclicker
and then for firewatir/linux/mac it can use the appropriate method for that
platform.
This may be a good thing to try and
we cant help at all without seeing the html you are trying to access.
If its truly dynamic html then you wont see it in view source, you will however
see it if you do
ie.html in irb
- Original Message -
From: Anna [EMAIL PROTECTED]
Date: Monday, April 30, 2007 9:14 am
Subject:
not really,
I dont want to have to go through all the stuff on your web site.
I'm happy to try and help, but I need to see the HTML you are trying to access,
the code you are using, and any exceptions that occur
Paul
- Original Message -
From: Anna [EMAIL PROTECTED]
Date: Monday,
assert(my Title , @ie.title)
- Original Message -
From: SHALINI GUPTA
To: wtr-general@rubyforge.org ; [EMAIL PROTECTED]
Sent: Friday, April 27, 2007 4:03 AM
Subject: [Wtr-general] How to verify title of a HTML Page
hi all,
I have a project,In which i have to check that
looking at the html its done using css, not a fire_event
Im no css expert, but I think this will be really difficult for us to do in
watir
- Original Message -
From: Charley Baker
To: wtr-general@rubyforge.org
Sent: Wednesday, April 25, 2007 2:28 PM
Subject: Re: [Wtr-general]
This is something Ive been thinking about for a while.
Canoo ( http://webtest.canoo.com/ ) is a layer above htmlUnit that takes an xml
file and runs it against a web site, clicking buttons, doing assertions etc.
Ive written some code that takes this xml format and converts it to a watir
'. It's always
helpful and demonstrates the point pretty well and if people want to learn or
add on then it gives them a good base. Perhaps it's one other tool than can be
run under the Watir api, the others being watir:ie, firefox, safari, selenium.
-c
On 4/25/07, Paul Rogers [EMAIL
I hope you try the code before making the t-shirts ;-)
- Original Message -
From: Jason [EMAIL PROTECTED]
Date: Monday, April 23, 2007 4:48 pm
Subject: [Wtr-general] Watir T-shirt
I ran this by Bret and he suggested posting it on the Wtr-General
to get some feedback from others. So
isnt Jeffs code kind of over kill for this?
def link_there?
link_text = Click Me
return @ie.link(:text , link_text).exists?
end
while 1 # add something here to stop infinite loop
if link_there?
@ie.link(:text , link_text).click?
else
@ie.link(:text , Next).click
end
end
I think you can do a right click by
ie.button(:id, 'xx').fire_event('onContextMenu')
if that doesnt work, this might be what you need to help get the coordinates
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/getclientrects.asp
instead of explitily asserting the existance of all the elements, Id try and
come up with an easier way, ( this probably wont work, but it might, and may
give you some ideas )
def username;$ie.text_field(:name, 'user_name');end
def password;$ie.text_field(:name, 'password');end
def
There are many ways of making a link 'appear'
Does it get added by ajax?
Is it in a hidden div ?
Does it get created by javascript?
depending upon how it gets created you may have to do a different approach.
Does the value you enter matter, or is it length of string?
the following MAY be waht
I used this code
def x
puts press return
gets
end
class Foo; end
n = 100
x
f= Foo.new
n.times do |i|
f.instance_eval(@a_variable_#{i} = #{i})
end
x
with n=100 ruby used 6.35M ( according to task manager), before and after
creating the variables
when n=1, it used 300M
there was some code posted to comp.lang.ruby in the last few days to do this.
There might be a way to redirect both to console and file, search google for
redirect dos output. I know how to do it in unix, but not sure how to do it
in dos. You might also want to look at ci_reporter (available on
I wasnt really following the thread, but have you prevented people from running
the tests simultaeously?
- Original Message -
From: Adam Reed [EMAIL PROTECTED]
Date: Wednesday, March 28, 2007 3:06 pm
Subject: Re: [Wtr-general] watir execution from webserver
Thanks David, those
here was one of the ideas I tried.
In essence, what it does is create a method called the_search_box that
returns the ie.text_field object.
Im sure there are some better ways of doing it.
Paul
require 'watir'
class WatirNaming
def self.parse_ops( obj_name , opts )
if opts.has_key?
Ive been working on some things that ( at least to my mind) simplify how the
code represents an html page. It also has several other advantages. I'll
probably publish it in a seperate library ( or via the contrib dir )
as for your code, the firsat think i would do is get rid of the global ie.
-general] little framework
paul
could you give us a little taster of your efforts?
aidy
On 27/03/07, Paul Rogers [EMAIL PROTECTED] wrote:
Ive been working on some things that ( at least to my mind)
simplify how the
code represents an html page. It also has several other
advantages
yep. My original motivation was to improve the speed of code development and
also make it clearer what was going on.
I did this and then realised I had almost had an mbt library. With some extra
work I got it to work just fine.
MBT on web apps have some problems, as the 'state' is not just
not related to watir, but I received an email about this today
http://osflash.org/autotestflash
its a way of testing flash apps. I know nothing about it, except the link, so
no questions please ;-)
___
Wtr-general mailing list
Wtr-general@rubyforge.org
: '01000'
sql Server Error: 14
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen
(ParseConnectParams()).
Connection failed:
SQLState: '08001'
sql Server Error: 14
[Microsoft][ODBC SQL Server Driver][DBNETLIB]Invalid connection.
Any suggestions?
Paul
From: Paul Rogers [EMAIL
See below...
- Original Message -
From: aidy lewis [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Tuesday, March 27, 2007 3:20 PM
Subject: Re: [Wtr-general] little framework
Paul Rogers says
the ParentClass would have methods to validate that everything is there,
the title
-general] Watir / Ruby / Mysql
Adam Paul,
Thanks for responding. I was just reading the prerequisites section for
the
Ruby DBI, and it says:
...you'll need to have both the Ruby MySQL module and the C API
installed.
Can you tell me where I can find these packages?
Paul
From: Paul
try searching the list - there was a discussion on custom tags about a month
ago
Paul
- Original Message -
From: x y [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Friday, March 23, 2007 4:07 PM
Subject: [Wtr-general] handling custom HTML attribute
Hi,
I'm new to this tool
the driver, and how do I configure
the
driver to know about the mysql on the machine? I've dug around on the
mysql
site for documents on this, but haven't found anything.
thanks,
Paul Hammer
From: Paul Rogers [EMAIL PROTECTED]
Reply-To: wtr-general@rubyforge.org
To: wtr-general
does the acrobat activeX control provide anything useful, like a .text method?
Interesting, I'm using Watir 1.5.1.1161 and getting a different error. A
Win32OLERuntimeError, bombing out with unknown property or method
'readyState' which makes sense since we're calling readyState on the
document.
The whole image saving thing is ugly.
I have some code ( that some one else helped me with, Im sorry but I forget who
right now )
that gives a much nicer saving mechanism, but only saves as a bmp
Id rather use that, buts its incompatabile with the jpg we currently can asve as
Paul
You'd need
you can also just use odbc - the instructions on the kite bird site will show
you how, but you will also need the mysql odbc driver. google will know where
that is.
Paul
- Original Message -
From: Adam Reed [EMAIL PROTECTED]
Date: Tuesday, March 20, 2007 2:49 pm
Subject: Re:
Firewatir is using an incorrect method for text. I sent the fix on, but I guess
there has been no new release since. I cant rememeber what I had to do, and Im
afraid I dont have it here. I'll try and post it on tonight
Paul
- Original Message -
From: steven [EMAIL PROTECTED]
Date:
this is not really a watir question...
but, its quite easy to do attachemnts to messages. I think there is a ruby
library that does it, and Im sure action-mailer will too
Paul
- Original Message -
From: Jason He
To: wtr-general@rubyforge.org
Sent: Monday, March 19, 2007 7:49
http://msdn.microsoft.com/workshop/browser/webbrowser/reference/methods/refresh2.asp?frame=true
- Original Message -
From: Chris McMahon [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Sunday, March 18, 2007 11:48 AM
Subject: [Wtr-general] idle question: @ie.refresh2(3)?
I have
there is a trick you can use when using stylesheets and id tags ( i forget
exactly what/why) , but there are definitely other ways and probably better
ways to do it.
How much time will it take for him to change the divs to use
class='some_css_clss' and ad ids, compared to you finding a way
what site are you running against?
the access denied is usually becasue of a frame issue
Paul
- Original Message -
From: Bach Le [EMAIL PROTECTED]
Date: Wednesday, March 14, 2007 12:17 pm
Subject: Re: [Wtr-general] http_error_checker on IE7
Charley and Paul, I'm running the latest
there is probably no document available to get the navigator version from :-(
I guess my simple way of doing this was too simple
Paul
- Original Message -
From: Bach Le [EMAIL PROTECTED]
Date: Wednesday, March 14, 2007 1:21 pm
Subject: Re: [Wtr-general] http_error_checker on IE7
i think you can do it by
ie.whatever().fire_event('onContextMenu')
then use autoit to send the key sequence
Paul
- Original Message -
From: Jim Hollcraft [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Wednesday, March 14, 2007 7:44 AM
Subject: [Wtr-general] Simulate Right
Im sure I came across something for this recently, but I cant remeber ( or
find what) now.
The best I came up with is to use the navigator object like this
irb(main):015:0
ie.document.parentWindow.navigator.invoke('browserLanguage')
= en-us
you can see what properties/methods are available
the iterators ( links, buttons etc) mixes in enumerable, so you should be able
to do this ( untested though )
matching_links = ie.links.grep(/google/{|l| l.href }
should put all the link objects whose href matches /google/ into the
matching_links array
Paul
- Original Message -
there is a method ie.show_active
that might do what you need
Paul
- Original Message -
From: Charley Baker
To: wtr-general@rubyforge.org
Sent: Thursday, March 08, 2007 8:53 AM
Subject: Re: [Wtr-general] Identifying the id of the element with focus after
a tab
Hi Mike,
class TC_bla Test::Unit::Testcase
- Original Message -
From: Steven List [EMAIL PROTECTED]
To: wtr-general@rubyforge.org
Sent: Thursday, March 08, 2007 2:13 PM
Subject: [Wtr-general] Assert in helper class in require'd file
At the moment, WATIR is kicking my butt in a small way.
I
I use Open Office. Having the Excel reader is handy, but it obviously doesnt
work for me. I started working on some code that would read open office
spreadhseet files. It would be great if you could make it work on both, with
the same interface, especially as things like firewatir and safari
google advanced search lets you pick the domain you want to search on.
You can just delete the files from the file system. There is also some code in
contrib to remove cookies. You could easily extend that to do all the files.
I always set my browser to 'always get a new page'
goto Tools menu
I dont wish to sound sarcastic, but this took me about 2 minutes to find
From http://forums.openqa.org/thread.jspa?messageID=17202
The modal_dialog code is not supported with Ruby 1.8.4. Or more
specifically, the win32ole changes that we made to support modal dialogs
only work with Ruby
you can also use the gmailer library.
This is often the best thing to use, as you now dont need to know about the
exchange settings, and frequently the IT group will prevent desktop PCs from
relaying off excahnage, as its a bad security hole
Paul
- Original Message -
From: Adam Reed
no problem.
Can you get your sys admin to give you admin priviliges on your machine.
THis will make many things easier for you.
I think the issue with the versions is that the ole library needs to be
recompiled with that version of ruby.
- Original Message -
From: Lauren [EMAIL
you're welcome.
This type of problem can be difficult to deal with. Intertnationalization,
different browser versions and multiple browsers all conspire against us when
we do these types of things.
Paul
- Original Message -
From: John [EMAIL PROTECTED]
Date: Wednesday, February 28,
the exists? method is useful for this.
You can also do something like this
ie.button(:value , 'Click me for ajax').click
until ie.div(:id , 'from_ajax').exists?
sleep 1
# add stuff here so you dont wait for ever
end
I thought that there was also a method like
ie..div(:id ,
to deal with this type of thing in the past, Ive written a seperate thing(
either a thread or procees I forget which) that looks for a javascript
window, and possibly the text and start that BEFORE entering the text
There should be something in winclicker that will do it
Paul
- Original
1 - 100 of 260 matches
Mail list logo