Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Željko Filipin
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

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Željko Filipin
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"

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-18 Thread Željko Filipin
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

Re: [Wtr-general] New Watir User Guide (beta)

2007-05-17 Thread Željko Filipin
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. _

[Wtr-general] New Watir User Guide (beta)

2007-05-17 Thread Željko Filipin
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-

Re: [Wtr-general] How To Click On The 2nd Link With The Same Img Source.....

2007-05-17 Thread Željko Filipin
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

Re: [Wtr-general] How To Click On The 2nd Link With The Same Img Source....

2007-05-17 Thread Željko Filipin
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

Re: [Wtr-general] :beforeText and :afterText

2007-05-17 Thread Željko Filipin
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

Re: [Wtr-general] Common functions

2007-05-15 Thread Željko Filipin
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 _

Re: [Wtr-general] xpath question (not Watir related)

2007-05-15 Thread Željko Filipin
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-

Re: [Wtr-general] RDOC - Help determining what needs documentation

2007-05-12 Thread Željko Filipin
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

[Wtr-general] New Version of Internet Explorer Developer Toolbar

2007-05-11 Thread Željko Filipin
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 ___

Re: [Wtr-general] How to handle pop menu clicking on right mouse button?

2007-05-11 Thread Željko Filipin
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

Re: [Wtr-general] Problem retrieving data from an Ajax page

2007-05-09 Thread Željko Filipin
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

Re: [Wtr-general] how to include external script (.rb) in Watir?

2007-05-09 Thread Željko Filipin
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

Re: [Wtr-general] Community involvement with Watir

2007-05-09 Thread Željko Filipin
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

Re: [Wtr-general] How to contribute to WATIR User Guide and other documentation

2007-05-08 Thread Željko Filipin
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

Re: [Wtr-general] How to selecting Menu item in Watir

2007-05-08 Thread Željko Filipin
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

Re: [Wtr-general] Using an ie.table.each do |row| loop when thepage in the ie window refreshes itself

2007-05-07 Thread Željko Filipin
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

Re: [Wtr-general] Community involvement with Watir

2007-05-05 Thread Željko Filipin
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

Re: [Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Željko Filipin
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

Re: [Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Željko Filipin
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

Re: [Wtr-general] how to include external script (.rb) in Watir?

2007-05-04 Thread Željko Filipin
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

Re: [Wtr-general] Field length validation

2007-05-02 Thread Željko Filipin
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

Re: [Wtr-general] Why ie.span(:name,"..").click no use?

2007-04-30 Thread Željko Filipin
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,

Re: [Wtr-general] how to click on a image with this HTML code

2007-04-30 Thread Željko Filipin
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

Re: [Wtr-general] how click on image with div class & id

2007-04-30 Thread Željko Filipin
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

Re: [Wtr-general] Get text from div

2007-04-27 Thread Željko Filipin
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

Re: [Wtr-general] Get text from div

2007-04-27 Thread Željko Filipin
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

Re: [Wtr-general] Button identification

2007-04-25 Thread Željko Filipin
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

Re: [Wtr-general] Button identification

2007-04-25 Thread Željko Filipin
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 , "//[

Re: [Wtr-general] How to move the mouse to point to an object?

2007-04-25 Thread Željko Filipin
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

Re: [Wtr-general] NoMethodError: undefined method `assert_equal' for #

2007-04-20 Thread Željko Filipin
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

Re: [Wtr-general] Accessing an id element with a table

2007-04-19 Thread Željko Filipin
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

Re: [Wtr-general] How to post a failed message when the assert fails

2007-04-13 Thread Željko Filipin
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]

Re: [Wtr-general] How to verify the values in the tages

2007-04-12 Thread Željko Filipin
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.

Re: [Wtr-general] How to deal with jsp event

2007-04-12 Thread Željko Filipin
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 __

Re: [Wtr-general] How to run all the steps defined in a method even if any of step fails?

2007-04-11 Thread Željko Filipin
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"

Re: [Wtr-general] Everyday Scripting with Ruby (the book)

2007-04-10 Thread Željko Filipin
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

Re: [Wtr-general] Accessing elements between DIV tags

2007-04-10 Thread Željko Filipin
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

Re: [Wtr-general] How To Deal With External CSS Files....ink All

2007-04-10 Thread Željko Filipin
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

Re: [Wtr-general] hi, how to get TOOLTIP

2007-04-10 Thread Željko Filipin
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

Re: [Wtr-general] Everyday Scripting with Ruby (the book)

2007-04-10 Thread Željko Filipin
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

Re: [Wtr-general] How Capture the Text area

2007-04-06 Thread Željko Filipin
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

Re: [Wtr-general] Access all elements in a form

2007-04-06 Thread Željko Filipin
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

Re: [Wtr-general] Read a Focused value in Drop List

2007-04-06 Thread Željko Filipin
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 __

Re: [Wtr-general] Access all elements in a form

2007-04-06 Thread Željko Filipin
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

Re: [Wtr-general] About the execution speed of waitr/ruby

2007-04-04 Thread Željko Filipin
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

Re: [Wtr-general] IDEs for Watir

2007-04-02 Thread Željko Filipin
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

Re: [Wtr-general] problem in identifying the button

2007-03-30 Thread Željko Filipin
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

Re: [Wtr-general] Count checked checkbox

2007-03-30 Thread Željko Filipin
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

Re: [Wtr-general] IDEs for Watir

2007-03-29 Thread Željko Filipin
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

Re: [Wtr-general] run a ruby program from a ruby script

2007-03-29 Thread Željko Filipin
require "r1.rb" -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] hi, how to get TOOLTIP

2007-03-28 Thread Željko Filipin
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

Re: [Wtr-general] Can we use as many variable names without worrying about memory wastage

2007-03-28 Thread Željko Filipin
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

Re: [Wtr-general] Can variables be used as regular expressions?

2007-03-28 Thread Željko Filipin
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

Re: [Wtr-general] How to access ?

2007-03-28 Thread Željko Filipin
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 _

Re: [Wtr-general] How to catch the exception in the Ruby executable window

2007-03-28 Thread Željko Filipin
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

Re: [Wtr-general] hi, how to get TOOLTIP

2007-03-28 Thread Željko Filipin
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

Re: [Wtr-general] clicking on menu

2007-03-26 Thread Željko Filipin
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

Re: [Wtr-general] handling custom HTML attribute

2007-03-26 Thread Željko Filipin
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 ___

Re: [Wtr-general] Unable to select the button from button-menu

2007-03-23 Thread Željko Filipin
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

Re: [Wtr-general] watir faqs

2007-03-21 Thread Željko Filipin
http://wiki.openqa.org/display/WTR/FAQ -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir Recorder

2007-03-21 Thread Željko Filipin
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

Re: [Wtr-general] Watir Recorder

2007-03-21 Thread Željko Filipin
http://www.openqa.org/watir-recorder/ -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How can I click this element-- arghh!

2007-03-21 Thread Željko Filipin
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

Re: [Wtr-general] Accessing an input field from the IE DOM Explorer

2007-03-19 Thread Željko Filipin
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

Re: [Wtr-general] Accessing an input field from the IE DOM Explorer

2007-03-19 Thread Željko Filipin
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

Re: [Wtr-general] Click on button which isn't a button

2007-03-16 Thread Željko Filipin
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

Re: [Wtr-general] Calculating attachment uploading time

2007-03-16 Thread Željko Filipin
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

Re: [Wtr-general] Click on button which isn't a button

2007-03-16 Thread Željko Filipin
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

Re: [Wtr-general] How to read all text fields of a page and store it into an array

2007-03-15 Thread Željko Filipin
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

Re: [Wtr-general] How to call different test cases???

2007-03-15 Thread Željko Filipin
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

Re: [Wtr-general] Help on dropdown menu selection

2007-03-15 Thread Željko Filipin
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

Re: [Wtr-general] Help on dropdown menu selection

2007-03-15 Thread Željko Filipin
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

Re: [Wtr-general] How to call different test cases???

2007-03-14 Thread Željko Filipin
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

Re: [Wtr-general] Unable to load watir/contrib/enabled_popup

2007-03-14 Thread Željko Filipin
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

Re: [Wtr-general] Report on Watir

2007-03-08 Thread Željko Filipin
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

Re: [Wtr-general] Problems mapping to: http://forums.openqa.org/post!default.jspa?forumID=5

2007-03-08 Thread Željko Filipin
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

Re: [Wtr-general] How to make sure that script run in line squence rather than alphabetical sequence when using load

2007-03-07 Thread Željko Filipin
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

[Wtr-general] WTR-103 comment spam

2007-03-07 Thread Željko Filipin
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

Re: [Wtr-general] How to clear the cache of the browser?

2007-03-06 Thread Željko Filipin
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-

Re: [Wtr-general] Converting into LOG

2007-03-05 Thread Željko Filipin
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

Re: [Wtr-general] Calling Definition again!

2007-03-05 Thread Željko Filipin
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 _

Re: [Wtr-general] A small doubt in Ruby

2007-03-03 Thread Željko Filipin
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

Re: [Wtr-general] Selecting an 'accented character' from a list

2007-03-03 Thread Željko Filipin
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

Re: [Wtr-general] How to Pass values from Excel into variables in Watir ?

2007-03-02 Thread Željko Filipin
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

Re: [Wtr-general] A doubt

2007-03-01 Thread Željko Filipin
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, "

Re: [Wtr-general] A small doubt in Ruby

2007-03-01 Thread Željko Filipin
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

Re: [Wtr-general] how to handle the file download window !

2007-02-28 Thread Željko Filipin
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

Re: [Wtr-general] PopUp window problem

2007-02-28 Thread Željko Filipin
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

Re: [Wtr-general] Can Watir be paused & resumed manually whenrunning test cases?

2007-02-28 Thread Željko Filipin
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

Re: [Wtr-general] add all Buttons id which has the same value to array

2007-02-28 Thread Željko Filipin
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

Re: [Wtr-general] Can Watir be paused & resumed manually when running test cases?

2007-02-27 Thread Željko Filipin
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

Re: [Wtr-general] TextField#set and utf-8

2007-02-27 Thread Željko Filipin
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

Re: [Wtr-general] TextField#set and utf-8

2007-02-26 Thread Željko Filipin
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

Re: [Wtr-general] TextField#set and utf-8

2007-02-23 Thread Željko Filipin
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

[Wtr-general] TextField#set and utf-8

2007-02-23 Thread Željko Filipin
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

Re: [Wtr-general] Start test at 6 pm

2007-02-23 Thread Željko Filipin
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

Re: [Wtr-general] Executing all scripts at a time

2007-02-23 Thread Željko Filipin
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

<    1   2   3   4   >