I do not see how this is related to Watir.
Also, Watir list moved to http://groups.google.com/group/watir-general/
Željko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 7/23/07, vipin [EMAIL PROTECTED] wrote:
I downloaded watir-1.5.1.1081.gem and it is installed with no problem.
Do I now have to download the watir-bonus-1.5.1.1192 to get latest?
No. You should download and install watir-1.5.1.1192.gem.
Also, how to install it?
gem install watir
On 7/23/07, vipin [EMAIL PROTECTED] wrote:
i tried to find the watir-1.5.1.1192.gem but didnt find it.
Oh, why did not you tell that earlier?! :)
Go to http://wiki.openqa.org/display/WTR/Development+Builds
There is a table with Watir gems. The first row, the first column (titled
Version)
On 7/20/07, vipin [EMAIL PROTECTED] wrote:
I then downloaded watir-bonus-1.5.1.1192.zip
Hi Vipin,
You should have downloaded watir gem, not bonus zip.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 7/19/07, murali [EMAIL PROTECTED] wrote:
Is WATIR can support desktop applications like 'calculator'.
Hi Murali,
No, Watir can only drive Internet Explorer. Maybe AutoIt can help you. Check
out http://www.autoitscript.com/autoit3/ (unfortunately, that site is down
for the moment).
Put file called file.txt to C: (root of drive) and try this:
ie.file_field(:name,name).set('C:\file.txt')
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 7/19/07, renuka [EMAIL PROTECTED] wrote:
i m working on linux so can u say me how can i do that?? and i m using
firewatir
Post your question at FireWatir Google group (
http://groups.google.com/group/firewatir)?
Zeljko
___
Wtr-general mailing
On 7/18/07, rvishnubhotla [EMAIL PROTECTED] wrote:
option
value=16nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;Catalyst
6500/option
Hi Radha,
There is ten spaces before Catalyst 6500, that is why ie.select_list(:name,
productId).select(Catalyst 6500) did not work.
I thought this would
Hi Radha,
Comments are inline.
On 7/18/07, rvishnubhotla [EMAIL PROTECTED] wrote:
Thanks very much.
I am glad I could help. :)
I actually tried a slight variation of the above before posting which didn't
work:
= $ie.select_list(:name, productId).select('/Catalyst 6500/')
'/Catalyst
On 7/17/07, Dinesh [EMAIL PROTECTED] wrote:
i wld like to know if i could fetch data from a text file and populate it
on the application field for data parameterization...
Hi Dinae,
Take a look at this links.
http://www.rubycentral.com/pickaxe/tut_io.html
On 7/13/07, jhe [EMAIL PROTECTED] wrote:
Now, it seems that the difference is that your $ie.text will return
\251, but my $ie.text only return ?, is it caused by ruby version?
This is out of my league. Sorry. Maybe somebody else will have an answer.
Zeljko
Hi Jason,
Try
ie.text.include?(\251)
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Strange, it works for me.
Ok, let's see where the problem is. Navigate to page that has only copy; as
it's text.
ie.text returns \251
ie.text
= \251
ie.text.include?(\251) returns true
ie.text.include?(\251)
= true
Am I missing something?
I have Ruby 1.8.6, Watir 1.5.1.1192 and IE 6.
On 7/10/07, Paul Rogers [EMAIL PROTECTED] wrote:
ie.status
I did not know this exists. This is so wiki page material.
http://wiki.openqa.org/display/WTR/How+To
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Hi Aidy,
There is a wiki page called Alternative Tools For Web Testing.
http://wiki.openqa.org/display/WTR/Alternative+Tools+For+Web+Testing
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Hi Claudiu,
If pop up window is new Internet Explorer window, you can attach to it with
eiher of this.
ie = Watir::IE.attach(:title, title)
ie = Watir::IE.attach(:url, url)
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Hi Murali,
Try
ie.text.include? file successfully added
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Murali,
Try this
b.link(:text, Images).exist?
= true
or this
b.link(:text, Images).exists?
= true
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 7/9/07, murali [EMAIL PROTECTED] wrote:
If u have any docs related to WATIR
Take a look at WATIR User Guide at
http://wtr.rubyforge.org/watir_user_guide.html.
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 7/9/07, mihai [EMAIL PROTECTED] wrote:
i have this html code: input type=hidden
how can i find out with watir if it is hidden or not?
Hi Mihai,
Well, it's type is hidden. How could it be not hidden?
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general
Hi Nathan,
There is FAQ section about this, have you read it?
http://wiki.openqa.org/display/WTR/FAQ#FAQ-Accessdeniedwhentryingtoaccessaframe
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Hi Jarodzz,
Comments are inline (again).
On 7/6/07, salamond [EMAIL PROTECTED] wrote:
A new popup window is blocked.
Disable all pop-up blockers that you have installed.
Is Watir reading the html/view/source to generate the show_all_objects?
I do not use show_all_objects. As far as I
Thanks Bret. I added your code to Watir module and now I can click h4
headlines.
module Watir
class H4 NonControlElement
TAG = 'H4'
end
module Container
def h4(how, what)
return H4.new(self, how, what)
end
end
end
Zeljko
___
On 7/3/07, Lavanya Lakshman [EMAIL PROTECTED] wrote:
am using latest version of Watir 1.4.1
You need Watir 1.5. Get it here:
http://wiki.openqa.org/display/WTR/Development+Builds
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Angrez,
Thanks a lot. It works.
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Vijay,
It would help if you posted html of that tab.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 6/28/07, Jason [EMAIL PROTECTED] wrote:
Can I actually do this???
Hi Jasnon,
I think you can not do that. What do you want to do with that? Maybe there
is another way.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
On 6/26/07, Chris McMahon [EMAIL PROTECTED] wrote:
Far better to have a test tool that actually works, with some non-core
tests pointing the way to make it better. :-)
So true. :)
(But confusing to new users.)
Zeljko
___
Wtr-general mailing list
On 6/27/07, Denys Zakhzohyy [EMAIL PROTECTED] wrote:
Apparently it works. Before I tried ie.frame(:index, 0) and got error
saying smth about wrong name of the frame.
Denys,
Watir starts counting at 1 (not 0), so maybe that caused the error you saw.
Zeljko
--
ZeljkoFilipin.com
Hi Denys,
Comments are inline.
On 6/27/07, Denys Zakhzohyy [EMAIL PROTECTED] wrote:
1. How should I specify the path?
I use something like this
file_folder = 'C:\DOCUME~1\limited\Desktop\tests_trunk\misc\\'
file_folder = 'Z:\misc\\'
2. Is it possible to set up Watir not to start search
Hi Lennart,
all_tests.rb are broken. You should be fine if core_tests.rb run fine.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 6/26/07, Lennart Borgman (gmail) [EMAIL PROTECTED] wrote:
That is good to know, but surprising.
Bret has opened a Jira ticket for it, but until now, only I have voted for
it to be fixed. So, I guess it does not bother other Watir users. If you
want it to be fixed, vote for it.
On 6/26/07, Lennart Borgman (gmail) [EMAIL PROTECTED] wrote:
of course test suits must be valid. I have just voted for it.
Isn't it strange to have a test tool that has broken unit tests? :)
Zeljko
___
Wtr-general mailing list
Hi Russ,
I am writing the new and improved user guide (
http://wiki.openqa.org/display/WTR/User+Guide). I am writing it from
scratch, I am not changing the old one, so it will remain as it is until
(and if) the Watir community concludes that the new one is better.
Zeljko
--
ZeljkoFilipin.com
Hi Murali,
Take a look at WATIR User Guide
http://wtr.rubyforge.org/watir_user_guide.html
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
I have just made a few changes to user guide. I have separated it to
Installation and Quick Start. Next I plan to add more pages. Plese take a
look and let me know if there are any mistakes, typos... Of course, you can
also change it yourself. It is a wiki page, after all.
Since I am not a
Sapna,
puts displays text, not images. Do you need to display image properties?
Something like this should work.
puts ie.image(:how, what).src
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Hi Sapna,
Try
ie.image(:src, /mailclosed/).click
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
From WATIR User Guide (http://wtr.rubyforge.org/watir_user_guide.html),
section New Windows.
ie = Watir::IE.attach(:url, 'http://mytestsite')
ie = Watir::IE.attach(:title, 'Test New Window')
ie = Watir::IE.attach(:title, /Test New/)
Zeljko
--
ZeljkoFilipin.com
On 6/15/07, Bface [EMAIL PROTECTED] wrote:
No one is contributing?
I guess they are sleeping now. Maybe you should post this question at wet
forum?
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 6/13/07, Bret Pettichord [EMAIL PROTECTED] wrote:
What happens if you don't use the --include-dependencies option?
It politely asks if I want to install dependencies. :)
Works fine that way. Thanks Bret.
Zeljko
___
Wtr-general mailing list
On 6/12/07, Jeff Fry [EMAIL PROTECTED] wrote:
@ie.button(:class ='Button Menu', :index = 2).click
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1166/./watir.rb:1098:in `send':
{:class=Button Menu, :index=2} is not a symbol (TypeError)
Hi Jeff,
I guess that button is one of those elements that
Hi Sapna,
If you have variable called var, you can display its value inside string
like this.
puts var = #{var}
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 6/8/07, Bret Pettichord [EMAIL PROTECTED] wrote:
However, if you are using the Watir::IE#modal_dialog method, you must
use Ruby 1.8.2-14 and not a more recent version.
I just installed ruby182-14.exe on clean xp pro machine. Components: only
RubyGems Package Manager. Then I tried to
Hi Sapna,
You should really read something about Regular Expressions. You can start
here.
http://www.rubycentral.com/book/tut_stdtypes.html
There is chapter named Regular Expressions.
For now, try this (Bret left it in comment at my blog).
(ie.link(:text, RE: Check Copy Request).href =~
Hi Sapna,
This is how you can find out if mail box is open or closed. Let me know if
you do not know how to use this code.
irb ie.image(:index, 1).src =~ /mailclosed/
= 46
irb ie.image(:index, 1).src =~ /mailopen/
= nil
Zeljko
___
Wtr-general
On 6/11/07, sapna [EMAIL PROTECTED] wrote:
a
href=/AppsUIWeb/SelfService/MessageDetail.aspx?id=1303messageToUser=TrueRE:
Check Copy Request/a
Sapna,
To find id of that link you have to know some other attribute of that link.
I will assume that you know text RE: Check Copy Request
This is
On 6/7/07, Bret Pettichord [EMAIL PROTECTED] wrote:
I have been considering migrating watir-general to google groups.
+1
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Sapna,
Sometimes I would like to be able to read mind of other people, but
unfortunately, I can not do that. Good news is that I do not have to read
you mind to be able to help you. You just need to post HTML of that image
when it is opened and closed. :)
Zeljko
--
ZeljkoFilipin.com
Some html would help.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 6/5/07, chitta [EMAIL PROTECTED] wrote:
I really need more then 50 active email addresses for my testing purpose
I use my gmail account for testing also. You do not need 50 accounts. Gmail
allows you to add +some_text after you user name and before @gmail.com.
Like this.
[EMAIL
On 6/5/07, Harmeet [EMAIL PROTECTED] wrote:
How can I post the HTML code here in this message
Just paste it, it usually works.
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Harmeet,
Does this work?
ie.table(:index, 2).link(:text, Save PDS).click
Do you get an error message after this?
ie.link(:text, Save PDS).click
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Hi Sapna,
Can you post relevant html snippet?
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 6/4/07, sapna [EMAIL PROTECTED] wrote:
a
href=/AppsUIWeb/SelfService/MessageDetail.aspx?id=1274messageToUser=FalseBill
Payment Inquiry/a
Sapna,
What do you need to do? Click this link? This does not do it?
ie.link(:text, Bill Payment Inquiry).click
ie.link(:href, /id=1274/).click
On 5/31/07, Ravi [EMAIL PROTECTED] wrote:
ie.table(:index,1).links.length
I knew that there must be a simpler solution. :)
Thanks Ravi.
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
This does not work?
ie.link(:text, Save PDS).click
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Shalini,
Try this.
links_in_table = 0
= 0
ie.table(:index, 1).links.each { links_in_table += 1 }
= 0
links_in_table
= 2
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
Aidy,
What is number of indexes?
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Sapna,
This is how to get date formated like you need.
Time.now.strftime(%m/%d/%Y)
= 05/30/2007
You can get yesterdays date by subtracting seconds from current time.
t = Time.now-(60*60*24)
= Tue May 29 12:21:02 Central European Standard Time 2007
t.strftime(%m/%d/%Y)
= 05/29/2007
Zeljko
Hi Sapna,
Can you post html snippet with text you want checked?
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
If I understood you correctly, you want to know if Your Account Preferences
have been updated. text appears at page. You can do it like this.
ie.text.include?(Your Account Preferences have been updated.)
= true
Let me know if I misunderstood you.
Zeljko
On 5/29/07, sapna [EMAIL PROTECTED] wrote:
Please let me know how to store in a variable the content of the list box
and use that variable to compaire with the default value.
Sapna,
It would help if you post relevant html snippet when posting question. For
example, I do not know what do you
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 Compose Mail link. I am really interested to know
the answer. Another workaround would be to switch to basic HTML view, I
On 5/28/07, Manish Sapariya [EMAIL PROTECTED] wrote:
P.S. : Firebug on firefox was an excellent help to understand the
events? Is there
any equivalent for IE?
Hi Manish,
Take a look at Internet Explorer Developer Toolbar (
On 5/24/07, Bret Pettichord [EMAIL PROTECTED] wrote:
My mistake. Try this instead.
ie.link(:after?, ie.image(:id, 'foo')).click
It works now. This is so cool.
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
ie.url returns url. What do want to do with it?
irb ie.url
= http://www.google.com/;
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 5/23/07, Kui Zhang [EMAIL PROTECTED] wrote:
Got it. Thanks Zeljko!
You are welcome. But, actually Paul answered your question. :)
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 5/24/07, Norm [EMAIL PROTECTED] wrote:
What is the trunk version of watir?
Hi Norm,
Take a look at this.
http://openqa.org/watir/cvs.action
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote:
Watir::Exception::MissingWayOfFindingObjectException: :href is an unknown
way of finding a link
Which Watir version are you using? It should work with 1.5.1.1166. You can
get it here.
http://wiki.openqa.org/display/WTR/Development+Builds
On 5/23/07, Kui Zhang [EMAIL PROTECTED] wrote:
Using the following assert statement, I always get failed result.
This works for me (no exception raised).
irb(main):007:0 assert(ie.contains_text(Welcome manager!))
= nil
Maybe you are not identifying frame correctly. It would help if you
On 5/23/07, SHALINI GUPTA [EMAIL PROTECTED] wrote:
im using watir 1.4.1
but also installed this watir-1.5.1.1127.gem
Paste this into command prompt.
ruby -e 'require watir; puts Watir::IE::VERSION'
What do you get? In any case, you should uninstall both versions of watir
and install
I do not mean to be rude, but don't you think you will get a faster and
better reply if you posted you question at AutoIt forum? I would like to
help, but I have never used AutoIt (I know Watir uses it somewhere, but it
is hidden from me).
Zeljko
___
This does not work?
ie.link(:href,
http://localhost:8080/CASTAD/?treeobject=2object=2frame=FRAME_PORTAL_TOP_LEVEL_DETAILSsnapshot=3
).click
What happens? Do you get any error message?
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 5/23/07, Jungwhan Kim [EMAIL PROTECTED] wrote:
any resource that I can look up?
IE6 and IE7 Running on a Single Machine
http://blogs.msdn.com/ie/archive/2006/11/30/ie6-and-ie7-running-on-a-single-machine.aspx
Zeljko
___
Wtr-general mailing list
Hi Kui,
This does not work?
ie.span(:id, Claim:ClaimMenuActions:ClaimMenuActions_NewDocument).click
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 5/22/07, SHALINI GUPTA [EMAIL PROTECTED] wrote:
I tried to this with href but its not working.
Hi Shalini,
What error message do you get when you use href? Can you post your Watir and
Ruby code?
There is lot of ways you can click a link. I recommend id.
Jeff has made page at Watir wiki
On 5/22/07, zaheer [EMAIL PROTECTED] wrote:
I have a text box. I want to verify that a particulat text field has null
value.If so how to identify the null value?
Hi Zaheer,
what do you mean by null value? That text field is empty, or has text
null?
Try this:
ie.text_field(:index, 1).text
On 5/22/07, zaheer [EMAIL PROTECTED] wrote:
I meant to say that the text field does not have any value.
And this does not help you?
ie.text_field(:index, 1).text
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 5/21/07, Ajitesh Srinetra [EMAIL PROTECTED] wrote:
Now can i assert on the contents of this PDF file through watir
Can the same be done with excel and text files
Hi Ajitesh,
Watir is just a Ruby library for driving Internet Exporer. You can not test
pdf and Excel files with Watir, but I
On 5/18/07, Chris McMahon [EMAIL PROTECTED] wrote:
include Watir (it's magic anyway, it won't hurt)
ie = IE.new (let people see a blank browser)
I have just checked my test suite, and I have only one
ie = Watir::IE.new
After that i just use ie variable. I guess that others may have
Chris,
Thanks for your suggestions. Comments are inline.
On 5/18/07, Chris McMahon [EMAIL PROTECTED] wrote:
Clearly this is going to be iterative :)
You don't drink the whole beer at once, right? You iterate until it is done.
:)
If it were me, I would have done
require 'watir'
include
And we have the first user contribution! Christopher Rasch added anchors for
installation instructions for platforms and browsers other than Windows/IE.
It is something that I do not want there, but I guess it has to be
somewhere.
Christopher,
you can put Certified Watir user guide contributor
On 5/18/07, Željko Filipin [EMAIL PROTECTED] wrote:
http://wiki.openqa.org/display/WTR/New+Watir+User+Guide+%28beta%29
I just can not look at ugly urls. I had to change it.
http://wiki.openqa.org/display/WTR/User+Guide
Zeljko
___
Wtr-general
On 5/18/07, Željko Filipin [EMAIL PROTECTED] wrote:
Christopher Rasch added anchors for installation instructions for
platforms and browsers other than Windows/IE.
Christopher,
I have moved your contribution to
http://wiki.openqa.org/display/WTR/Install+instructions and linked to it
from
Why is Project Home child of FAQ at Watir wiki? Is this a bug?
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
I have been browsing Watir Wiki and
http://wiki.openqa.org/display/WTR/Watir+Committers has error message Error
formatting macro: userlister: java.lang.NullPointerException.
Zeljko
___
Wtr-general mailing list
Wtr-general@rubyforge.org
On 5/18/07, Chris McMahon [EMAIL PROTECTED] wrote:
include Watir (it's magic anyway, it won't hurt)
ie = IE.new (let people see a blank browser)
I still do not think this easier to understand than
ie = Watir::IE.new
I do not know how to explain what it does in few words, except start IE,
Chris, Walter,
I separated steps for starting IE and navigating to Google, as you have
suggested. That means that you have become contributor of Watir user guide.
Now you can put Certified Watir user guide contributor! text at your site
(with link to user guide, if possible). :)
Zeljko
On 5/18/07, Walter Kruse [EMAIL PROTECTED] wrote:
I don't know what it does, except that you need it to load watir when
using irb :-)
I guess that you are referring to
include Watir
Actually, you do not have to type it when using Watir in irb (as my user
guide shows).
Zeljko
On 5/18/07, Chris McMahon [EMAIL PROTECTED] wrote:
I meant to the new user, all of this looks like magic, so we might as
well break down the Watir setup commands in as granular a fashion as
possible
I did not think to learn them Ruby. There are good books about it. When they
see how easy it
On 5/16/07, Jeff Fry [EMAIL PROTECTED] wrote:
Any input from folks who either use or have tried unsuccessfully to use
these two?
I have tried to use it, but it did not work for me. As far as I am
concerned, it can be removed.
Zeljko
--
ZeljkoFilipin.com
Hi San,
Try this:
ie.image(:src = /pdf_small/i, :index = 1).click
ie.image(:src = /pdf_small/i, :index = 2).click
...
I guess that you know how to create a loop. If not, see
http://www.rubycentral.com/book/tut_expressions.html
There is section called Loops.
Zeljko
--
ZeljkoFilipin.com
On 5/17/07, san [EMAIL PROTECTED] wrote:
for $i in 1 .. 3
ie.image(:src = /pdf_small/i, :index = #{$i}).click
sleep 10
etc.. etc...
ie.back
end
There is no need for global variable in
for $i in 1 .. 3
I suggest that you change it to
for i in 1 .. 3
Also, :index expects integer,
Don't you just love all those betas? There is another one! New Watir User
Guide (beta). Check it out and let me know what you think about it. It is
just a first draft. Please, be polite. It is just a few minutes old.
Zeljko
--
ZeljkoFilipin.com
___
Can you tell that it is past 1 am here? I forgot the link. Here it is.
http://wiki.openqa.org/display/WTR/New+Watir+User+Guide+%28beta%29
You can also find a link to it at Watir wiki home page (
http://wiki.openqa.org/display/WTR/Project+Home) under Learning Watir
headline.
Angrez,
Thanks a lot! It works.
irb(main):021:0 e[/tokens/ShortUrl[starts-with(@url, 'resetpassword.aspx
?m=7fb83717-9606-4022-bd4e-67b6f6582adacode=')]].attributes[hash]
= BF8E8F60E722E92C7ED8303916591AB4
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general
Hi Ken,
Extract a method that you need in multiple files in a separate file
(my_script.rb for example), and then at the top of every file that needs
that script write
require my_script
For now just make sure that all files are in the same folder.
Zeljko
--
ZeljkoFilipin.com
On 5/8/07, Bret Pettichord [EMAIL PROTECTED] wrote:
I think one question Zeljko needs to address is what form he wants it to
be. I think he said something about breaking it into separate files,
which is fine. Another option is to migrate it to the wiki, which would
make eat easier to get
On 5/5/07, Alien Ruby [EMAIL PROTECTED] wrote:
How are you guys so helpful ?
We get a lot of chunky bacon for every correct answer. :)
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
1 - 100 of 276 matches
Mail list logo