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-g
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"
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
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.
_
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
___
Wtr-
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
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/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 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
_
Angrez,
Thanks a lot! It works.
irb(main):021:0> e["/tokens/ShortUrl[starts-with(@url, 'resetpassword.aspx
?m=7fb83717-9606-4022-bd4e-67b6f6582ada&code=')]"].attributes["hash"]
=> "BF8E8F60E722E92C7ED8303916591AB4"
Zeljko
--
ZeljkoFilipin.com
___
Wtr-
On 5/12/07, Jeff Fry <[EMAIL PROTECTED]> wrote:
Zeljko, do you know where the new User Guide will live?
Somewhere in the wiki. I will have some time at Tuesday.
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyfor
Read more:
http://blogs.msdn.com/ie/archive/2007/05/10/Internet-Explorer-Developer-Toolbar-_2D00_-Get-It-Now_2100_.aspx
Get it:
http://www.microsoft.com/downloads/details.aspx?FamilyId=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en
Zeljko
--
ZeljkoFilipin.com
___
Hi Edwin,
Please send part of HTML that causes popup menu to appear.
Željko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Try Internet Explorer Developer Toolbar (
http://www.microsoft.com/downloads/details.aspx?FamilyID=e59c3964-672d-4511-bb3e-2d5e1db91038&displaylang=en).
It should show actual content of the page, not source. I have tried it, but
I have not used it a lot, but I have heard that it can help with ajax
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
http://rubyforge.org/mailman
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 contr
On 5/8/07, Dhrubojyoti Biswas <[EMAIL PROTECTED]> wrote:
Can somebody gimme some pointers in where to start with the Doc
Contributions?
Hi Dhruv,
Jeff Fry is focusing on Rdoc I will update user guide. This list is good
place for suggestions. What would you like to work on?
Zeljko
--
ZeljkoF
Hi Vipul,
I did not understand what you want to do. Click div tag with "Data
Administration" text?
That can be done with one of these
ie.div(:id, "DataAdmin").click
ie.div(:text, "Data Administration").click
Maybe you will have to click his parent span tag.
ie.span(:id, "Sessions").click
ie.s
On 5/7/07, Ian Webb <[EMAIL PROTECTED]> wrote:
I'm wondering if maybe there's a way to store the indices of the buttons
it's going to click on within the array, rather than the rows
themselves. I tried buttons_to_click << row[5].link(:index,1), but that
doesn't work.
Hi Ian,
I am not sure I
On 5/5/07, Bret Pettichord <[EMAIL PROTECTED]> wrote:
I think i convinced Zeljko today to take the lead in updating the users
guide.
You certainly did. Last night I had a dream how I bribed cartoon foxes from
why's (poignant) guide to ruby to switch to Watir user guide. :) (Bret
encouraged me
You should read this book http://www.rubycentral.com/book/
Look for chapters about methods and classes.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 5/4/07, Alien Ruby <[EMAIL PROTECTED]> wrote:
thanks for the quick respond.
You are welcome. :)
that was easy, huh..
It is Ruby, (almost) everything is easy here.
I just thought too much on that one. beginner...:(
It happens. That is why this mailing list exists.
Zeljko
--
ZeljkoF
Hi,
Put
require 'extra'
near the top of main.rb. For now keep them both (extra.rb and main.rb)
located in the same folder.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-ge
Hi Tunde,
Text you enter at text field is not included in ie.contains_text. To see
what is entered in text field you can use this.
ie.text_field(:name,/tb_FirstName/).value
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge
On 4/29/07, shqy <[EMAIL PROTECTED]> wrote:
Concatenate and print out the contents of all emails in your inbox.
Hi shqy,
When you log in, use this code to get some information about messages in
inbox
ie.frame(:name, "main").frame(:id, "v1").table(:id, "tb")[1][3].text # from
ie.frame(:name,
On 4/30/07, SHALINI GUPTA <[EMAIL PROTECTED]> wrote:
Hi Shalini,
You can not click that tag with ie.image because it is a div, not an image.
Try this instead.
ie.div(:id,"research").click
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Please post HTML of the image.
In the meantime, try this.
ie.image(:id, "research").click
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
John,
If page is valid XHTML then it is also valid XML, right? In that case you
could use REXML.
But, I guess that is rarely the case. Try extracting XML data to string (or
file) from HTML with regular expression and then access that XML with REXML.
Once more, let me know if you need more detai
Hi John,
You can use REXML (http://www.germane-software.com/software/rexml/) to read
xml. Let me know if you need more details.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr
It looks to me that the problem is in internetApply.rb. Can you post it? Or
just the part where button is clicked?
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Tunde,
In watir 1.5 I think you can use any attribute of a tag (like class), but I
am not sure about that.
ie.button(:class, "my_class").click
you can also use index
ie.button(:index, 1).click
or html
ie.button(:html, /fancy_attribute='something'/).click
or xpath
ie.button(:xpath , "//[
Hi Joe,
Please post html of that object (and a few lines before and after) so we
could take a look.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Vamsi,
Adding
require 'test/unit/assertions'
include Test::Unit::Assertions
to the top of your script should help.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Russ,
Try
ie.cell(:id,'idinfo').click
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Vamsi,
Try this:
irb(main):006:0> a = 1
=> 1
irb(main):007:0> b = 2
=> 2
irb(main):008:0> puts "expected #{a}, but it was #{b}" unless a == b
expected 1, but it was 2
=> nil
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
[EMAIL PROTECTED]
On 4/12/07, vamsi <[EMAIL PROTECTED]> wrote:
can you pleae explain what does it mean by '\r'
Hi Vamsi,
\r is substitution in string. It represents Return.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
[EMAIL PROTECTED]
http://rubyforge.
Maybe the problem is that there are no links in the code that you sent.
You can fire onclick event of table tag with this (from
http://wiki.openqa.org/display/WTR/FAQ#FAQ-TriggeringJavaScriptevents)
ie.table(:index, 1).fire_event("onclick")
Zeljko
--
ZeljkoFilipin.com
__
On 4/11/07, watir-user watir-user <[EMAIL PROTECTED]> wrote:
Is there any other way which executes all the steps defined in the method
even any of the step fails and also should show the message why it has
failed?
Of course. Read "Exceptions, Catch, and Throw" chapter from "Programming
Ruby"
On 4/10/07, Walter Kruse <[EMAIL PROTECTED]> wrote:
I was also a reviewer, but I purchased my copy myself.
I was thinking of buying it, but they said I would receive one for free, so
I am waiting and waiting... :)
--
ZeljkoFilipin.com
___
Wtr-genera
Hi Daniel,
This is how you can flash each link from the second div.
ie.div(:class, "bottom_menu").links.each {|link| link.flash}
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/w
On 4/9/07, san <[EMAIL PROTECTED]> wrote:
As I Can See Just 2 Of Them In HTML Code, But In Firefox I Can See At
Least 6 Or 7 Of Them
This is because some frames contain another frames.
First, you find root frames.
irb(main):007:0> ie.show_frames
there are 2 frames
frame index: 1 name: TR_M
On 4/7/07, Maloy kanti debnath <[EMAIL PROTECTED]> wrote:
how can I make sure that the tooltip, no matter whether it is present in
the title of the enclosing 'span' or not, gets displayed on the screen, when
the mouse is hovered over the link.
Hi Maloy,
The answer is very simple. If span tag
I was reviewer, and over two months ago I received an e-mail from Daniel
Steinberg (Pragmatic Programmers) saying that if I send them my mailing
address they would send me a free copy. I replied with my mailing address,
but the book did not arrive.
I even sent him a reminder two weeks ago. No rep
Hi Vamsi,
If you have this html
some text
you can do it like this
irb(main):009:0> "some text" == ie.text_field(:index, 1).text
=> true
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/l
Hi Sayali,
I got lost. I did not understand what do you want to do. You can not set one
radio button?
Regarding your original post, this is how you can flash all radio buttons in
a form.
ie.form(:index, 1).radios.each { |radio| radio.flash }
Zeljko
--
ZeljkoFilipin.com
Hi Vamsi,
If you have this html
one
two
this is how you can find what it selected (this is irb session).
irb(main):008:0> selected = ie.select_list(:index, 1).getSelectedItems
=> ["one"]
irb(main):010:0> selected[0]
=> "one"
Zeljko
--
ZeljkoFilipin.com
__
Hi Sayali,
Can you post html of that form, your watir code, and error message?
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Jason,
Try
ie.set_slow_speed
ie.set_fast_speed
If you want more control (faster, slower) you can modify that methods.
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-gene
On 4/1/07, aidy lewis <[EMAIL PROTECTED]> wrote:
Could you please tell me what version of the ruby interpreter
you are using with Arachno Ruby to allow the debug to run?
ruby 1.8.2 (2004-12-25) [i386-mswin32]
--
ZeljkoFilipin.com
___
Wtr-general mai
Try this.
ie.image(:src, /some%20path/).flash
ie.link(:href, /some%20path/).flash
Zeljko
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Hi Fabien,
If you have this html
you can get number of checked chechboxes with this (this is irb session)
irb> checked = 0
=> 0
irb> ie.form(:index, 1).checkboxes.each {|checkbox| checked = checked +1 if
checkbox.checked?}
=> 0
irb> checked
=> 2
Let me know if you do not understand the c
I am using Arachno Ruby for two years (I guess) and I am very satisfied with
it.
http://www.ruby-ide.com/ruby/ruby_ide_and_ruby_editor.php
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/w
require "r1.rb"
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Can you post just html for that image (and maybe a few tags before and after
it)?
You probably need something like this:
ie.image(:index, 1).fire_event("onMouseOver")
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://ru
Ruby takes care of that, as far as I know. You do not have to worry about
memory, unless you have extremely low memory situation.
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-genera
Put variable inside #{}, like this:
ie.link(:href,/#{variable_for_holding_text}/).exists?
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Which one? And what do you want to do with it?
For example this span
User Group
you can flash with any of this
ie.span(:text, "User Group").flash
ie.span(:index, 1).flash
ie.span(:class, "smallFont").flash
I tried it with watir 1.5.1.1158
--
ZeljkoFilipin.com
_
Do not execute rb files by double clicking. Instead, open command prompt, go
to folder where your rb files are located and then call them. In that case
command prompt window will stay open even if exception occur.
--
ZeljkoFilipin.com
___
Wtr-general mai
Please post html snippet or link to your application.
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Vikash,
I could not find OnMouseOver anywhere in html that you sent.
In any case you can fire that event with this slightly modified code from
FAQ page (
http://wiki.openqa.org/display/WTR/FAQ#FAQ-TriggeringJavaScriptevents)
ie.text_field(:name, "my_field").fire_event("OnMouseOver")
--
ZeljkoFi
On 3/24/07, x y <[EMAIL PROTECTED]> wrote:
Done
All of this worked for me (watir 1.5.1.1158).
ie.cell(:html, /iwname/).flash
ie.cell(:html, /ModalPageWrapper:okClicked/).flash
ie.cell(:html, /iwname="ModalPageWrapper:okClicked"/).flash
--
ZeljkoFilipin.com
___
I think element_by_xpath is only in watir 1.5, hence the error message (you
have watir 1.4).
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
http://wiki.openqa.org/display/WTR/FAQ
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
Try posting a question at watir recorder forum (
http://forums.openqa.org/forum.jspa?forumID=37). As far as I know, watir
recorder is not supported at this list.
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge
http://www.openqa.org/watir-recorder/
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 3/21/07, Brian Mintun <[EMAIL PROTECTED]> wrote:
but the click never happens
What happens? What did you expect to happen? Any error messages?
Thre are two div tags and one img tag in html that you sent. Does any of
this do what you want?
ie.div(:id, "newMessageButton").click # click the
On 3/19/07, Luis Regueira <[EMAIL PROTECTED]> wrote:
I tried that and I get this error message: "Unable to locate object,
using id and ct100_ch_cd_bl1_B3_oma_writeControl
(Watir::Exception::UnknownObjectException)". This IS the object id so that
is NOT the problem. Any other suggestions?
Make
ie.text_field(:id, "ct100_ch_cd_bl1_B3_oma_writeControl").set("text")
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
If language changes I would recommend that you ask your developer to add an
id attribute to div tag. Then you would not have to rely on text. If that is
not the option, you can try this.
ie.cell(:html, /registration/).click
or
ie.cell(:html, /registration/).div(:text, //).click
--
ZeljkoFilipin
Capture Timings section at http://en.wikipedia.org/wiki/Watir
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
This worked for me (watir 1.5.1.1158).
ie.div(:text, "Register now").click
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
If you have
you can see names of text fields
irb(main):016:0> ie.text_fields.each {|text_field| puts text_field.name}
one
three
=> 0
you can put names in array
irb(main):017:0> text_fields_names = []
=> []
irb(main):018:0> ie.text_fields.each {|text_field| text_fields_names <<
text_field.n
On 3/15/07, Jet Aquino <[EMAIL PROTECTED]> wrote:
are there other great ebooks
Start here (from Watir wiki):
http://wiki.openqa.org/display/WTR/Learning+Ruby
http://wiki.openqa.org/display/WTR/Articles
--
ZeljkoFilipin.com
___
Wtr-general mailing l
On 3/15/07, swarna latha <[EMAIL PROTECTED]> wrote:
Watir::Exception::UnknownObjectException: Unable to locate object, using
name and top_read_unread
So this works.
ie.button(:name, "top_bpress_topmark").click
But this does not work?
ie.select_list(:name,"top_read_unread").select("Mark as
On 3/15/07, swarna latha <[EMAIL PROTECTED]> wrote:
$ie.select_list(:name,"top_read_unread").select("Mark as Unread") results
in undefined object method..
I tried your watir code with your html and got
Watir::Exception::NoValueFoundException: No option with text of Mark as
Unread in this se
On 3/14/07, Jet Aquino <[EMAIL PROTECTED]> wrote:
Main.rb contains the codes that will call other scripts like login.rb,
compute.rb, logout.rb.
Put this in Main.rb
require "login"
require "compute"
require "logout"
--
ZeljkoFilipin.com
___
Wtr-gene
Do you have watir 1.5 or 1.4?
--
ZeljkoFilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 3/8/07, quick reply <[EMAIL PROTECTED]> wrote:
Can anybody give me a pointer for comparing this tool with other opensouce
tool like Samie,Pamie,Selenium etc...
Comparisons between Watir and SilkTest
http://wiki.openqa.org/display/WTR/Comparison+of+Watir+with+Silk+Test
what are the limitat
On 3/7/07, Lauren <[EMAIL PROTECTED]> wrote:
Anyone know how to pass on this information to the forum "managers" of
this site??
See http://openqa.org/contacting.action
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@ruby
Maybe this will help.
http://wiki.openqa.org/display/WTR/Test-Unit+Patch
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
I was browsing Watir Jira tickets, and WTR-103 has a lot of comment spam.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
On 3/6/07, swarna latha <[EMAIL PROTECTED]> wrote:
Can we do a keyword based search on the Wtr general archive list?
There is answer in FAQ.
http://wiki.openqa.org/display/WTR/FAQ#FAQ-Searchingthemailarchives
There is search form at
http://wtr.rubyforge.org/
http://www.mail-archive.com/wtr-
On 3/5/07, Naga Harish Kanegolla <[EMAIL PROTECTED]> wrote:
But is there a way in watir to send a mail as an attachment of that log
file ?
There are several Ruby libraries for sending e-mail. I tried the first two,
but the other two could also be useful.
http://www.ruby-doc.org/stdlib/libdo
I do not know why others did not reply, but I do know why I did not reply.
Simply, I do not understand what do you want to do, and I do not understand
what your code does. Try explaining your problem in more detail and try
posting simpler code.
--
Zeljko Filipin
zeljkofilipin.com
_
Brian Marick wrote interesting article about variables and objects.
"The key to avoiding misunderstanding is remembering that variables and
objects are *different kinds of things*. The name of a thing is not the
thing itself. This is best illustrated by pictures. I just drew some
pictures that ex
I recently had a similar problem. I wanted to enter accented character to
text field. Paul suggested that I put text with accented character to Excel
file, then in Ruby script get that text from Excel file and put it in
variable and use it in my script. And it worked. I do not have Excel at this
m
Take a look at http://wiki.rubygarden.org/ruby/page/show/ScriptingExcel
That page seems to be off line, but there is Google cache page
http://www.google.com/search?q=cache:tEaxL9sKYdQJ:wiki.rubygarden.org/ruby/page/show/ScriptingExcel+ScriptingExcel&hl=en&client=firefox-a&strip=1
--
Zeljko Filipi
You can do it using regular expressions. ie.text will get all text in
browser. I guess there is a space after "Time" and before "milisec" and that
there is some text before and after it.
ie.text
=> "text Time 1234 millisec text"
Put "Time 1234 millisec" in variable ms. "." means any character, "
I think this happens because both a and b point to string "maloy". You
expected that a and b will each have it's own string.
Use
b = a.dup
instead of
b = a
and it should work.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-gene
I also want to download a file.
I combined Mark's code and code from
http://en.wikipedia.org/wiki/Watir(Handling pop-ups)
require "watir"
require 'watir\contrib\enabled_popup'
ie = Watir::IE.start("http://zeljkofilipin.com/file/";)
ie.link(:index, 1).click_no_wait
hwnd = ie.enabled_popup(5)
if
On 2/28/07, Simba <[EMAIL PROTECTED]> wrote:
$ie1=$ie.attach( :title, /Log On error /i )
Try replacing this with
IE.attach( :title, /Log On error /i )
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
ht
On 2/28/07, Jason He <[EMAIL PROTECTED]> wrote:
I want to pause the testing process at moment and at random time length,
and resume it latterly.
What do you want do to while script is paused? You can pause for random
number of seconds with "sleep".
--
Zeljko Filipin
zeljkofilipin.com
This will collect all buttons with value "Book" in array called
buttons_with_the_same_value.
buttons_with_the_same_value = []
ie.buttons.each {|button| buttons_with_the_same_value << button if
button.value == "Book"}
--
Zeljko Filipin
zeljkofilipin.com
If you need to pause for fixed time, try
sleep 1 # 1 second pause
For more functionality, see ruby-breakpoint (
http://rubyforge.org/projects/ruby-breakpoint/) or ruby-debug (
http://rubyforge.org/projects/ruby-debug/). I have not used them, but I have
read at this list that ruby-breakpoint can
On 2/27/07, Bret Pettichord <[EMAIL PROTECTED]> wrote:
See http://jira.openqa.org/browse/WTR-71 for comments on how to support
Chinese.
Thanks Bret, I will take a look.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rub
Paul,
I just wanted to say thanks. I tried reading special characters (also
accented European characters) from Excel and setting text fields with that
and it works! (And, it was really simple.)
In case anybody is interested in details, visit my blog (zeljkofilipin.com).
If anybody has another s
Thanks Paul, I will try it.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
I want to set text field to "željko".
ie.text_field(:index, 1).set("željko")
But, Watir sets it to "§eljko", "Ĺľeljko" or just "eljko" or some other
string (depending if I try from irb, or file that is saved in different
encodings).
I have saved file as utf-8 and this to the top added
require
I am not sure if you should use Watir for load testing, but take a look at
all_tests_concurrent.rb in watir unit tests, threads are used to run
concurrent tests.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
h
On 2/23/07, Naga Harish Kanegolla <[EMAIL PROTECTED]> wrote:
Is there a way to execute all the scripts at a time?
If you mean sequentially, you can do it like this.
If you have files called test1.rb and test1.rb, make file all_tests.rb in
folder where those files are located and put this in
101 - 200 of 325 matches
Mail list logo