Re: [Wtr-general] ASP.NET and Watir

2006-10-25 Thread Željko Filipin
On 10/24/06, Roger Studner [EMAIL PROTECTED] wrote: Is it well known that it is impossible to test dynamically generated ASP.NET stuff with Watir? (that being said, every execution, every time, yields identical HTML in view source).I use Watir to test asp.net applications, so it can be done. Can

Re: [Wtr-general] How to access link in table cell?

2006-10-25 Thread Željko Filipin
ie.link(:text, text).hrefZeljko-- http://zeljkofilipin.com/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Error selecting links within nested iFrame?

2006-10-26 Thread Željko Filipin
On 10/26/06, Ethan Jewett [EMAIL PROTECTED] wrote: That way, if I'm not mistaken, one could do thingslike ie.element(*).flash.click.click to click an object twice and thenmake it flash.Actually, ie.element(*).flash.click.click would first flash an element and then click it twice. Zeljko--

Re: [Wtr-general] Getting number of IE browsers open

2006-10-31 Thread Željko Filipin
It looks to me that I completely misunderstood the question. :)-- http://zeljkofilipin.com/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Watir tests as how-to documents

2006-11-08 Thread Željko Filipin
You have a bunch of Watir tests, right? With every build of your application under test, you run them all. If a test fails, application should be fixed, or you test should be fixed. Wouldn't it be nice to make how-to documents from that tests? Time for an example.def login_as(username, password)

Re: [Wtr-general] Watir tests as how-to documents

2006-11-08 Thread Željko Filipin
What I want to do is to generate how-to documents for users of application that I test. When user clicks how-to link (or help, or whatever), there should be list:- login- do something- do something else ...- logoutSelect login and you get:- go to 'my.app/login.aspx'- there should be text 'Please

Re: [Wtr-general] Watir tests as how-to documents

2006-11-10 Thread Željko Filipin
Thank you all. I will take a look at tools that you suggested.Zeljko-- http://zeljkofilipin.com/ ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Watir tests as how-to documents

2006-11-13 Thread Željko Filipin
At the end I decided to use Watir only. I took a closer look at application that I test and found out that there are labels for elements.input id=ctl00_subContent_userNameInput type=text label for="" id=ctl00_subContent_Label1Username/labelI added this to the end of Watir::TextField#setwhat =

Re: [Wtr-general] how to access icon's button

2006-11-14 Thread Željko Filipin
On 11/14/06, Nie Guoqiang [EMAIL PROTECTED] wrote: how can i access this icon-button.img src="" /Hi Nie,This will click logout image:ie.image(:src, /logout/).flash If this does not do what you need, let me know.Željko-- http://zeljkofilipin.com/ ___

[Wtr-general] ie.minimize broken in watir-1.5.1.1127

2006-11-22 Thread Željko Filipin
I have just installed watir-1.5.1.1127.gem and it crashes when I use ie.minimize. I do not have autoit installed. Does watir require it now? Should I log this to jira? Steps to reproduce: C:\Documents and Settings\limitedruby -v ruby 1.8.5 (2006-08-25) [i386-mswin32] C:\Documents and

Re: [Wtr-general] Javascript Problem....

2006-11-24 Thread Željko Filipin
On 11/24/06, san [EMAIL PROTECTED] wrote: Hi, This Is Sanju From India, I'm Brand New To Watir. Welcome! :) But Can't Click On [b]Login[/b] Button Login button is actually an image. img src=new_images/button_login.jpg I successfully clicked it with ie.image(:src,

Re: [Wtr-general] Javascript Problem....

2006-11-24 Thread Željko Filipin
On 11/24/06, san [EMAIL PROTECTED] wrote: Is There Any Way To Directly Go To The Page After Logged In... I Don't Want To See The 1st page The Data That Are Entered Will It Save A Little Bit Of Time? You want to change the page that opens after you log in? That can not be done by

Re: [Wtr-general] Javascript Problem....

2006-11-27 Thread Željko Filipin
On 11/25/06, san [EMAIL PROTECTED] wrote: @ Zeljko : Yes, But I Wanted The Whole Process... i.e opening The 1st Page, Entering My Given Data, Then Logging In... In The Background.i.eWhen IE Will Open The Page,I'll Be Already Logged In... Sanju, I do not understand what you want to do. Can

Re: [Wtr-general] activeElement error.

2006-11-27 Thread Željko Filipin
Could you send the code that you use to click that link? Zeljko -- zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] A special `method_missing':

2006-11-27 Thread Željko Filipin
On 11/26/06, Allen Zhou [EMAIL PROTECTED] wrote: So what shall I do? Use 'begin..rescue..end' to ignore this exception? If your script works and that exception just bugs you, rescuing it sounds like a good idea. Zeljko -- zeljkofilipin.com ___

Re: [Wtr-general] Can Watir Download .html Pages...?

2006-11-27 Thread Željko Filipin
On 11/27/06, san [EMAIL PROTECTED] wrote: Is It Possible To Save The Page As .html ie.html will show you html of the page: Or Is It Possible To Get All The Links In That Page ie.links is array of all links at that page Including Its Own url ie.url will give you url of page -- Zeljko

[Wtr-general] Is there a way to make file_field.set faster?

2006-11-27 Thread Željko Filipin
Is there a way to make file_field.set faster? I have noticed that this is the slowest part of my tests. It takes about 10 seconds to set file field. I have read that it can not be set directly because that would be security issue, but I wonder what I could do to make it faster. I upload

Re: [Wtr-general] Parameterization

2006-11-27 Thread Željko Filipin
I do not know how to use Excel, but this is how you could simplify your code (tested). searches = [pickaxe, Ruby, Watir, Watir and Ruby] searches.each do |search| ie.text_field(:name, q).set(search) ie.button(:name, btnG).click end -- Zeljko Filipin zeljkofilipin.com

Re: [Wtr-general] Can Watir Download .html Pages...?

2006-11-27 Thread Željko Filipin
On 11/27/06, san [EMAIL PROTECTED] wrote: Will It Work? webs = ie.links webs.each do |web| puts web end Try it and you will see if it works. :) Can You Tell Me From Where Can I Get All These Watir Functions...? Is There Any Good Quality Tutorial?

Re: [Wtr-general] Can Watir Download .html Pages...?

2006-11-27 Thread Željko Filipin
On 11/27/06, san [EMAIL PROTECTED] wrote: Ya It Worked... But I can't Open The Links Again by webs = ie.links webs.each do |web| ie.goto(web) # This Line Produces Error... I Also Tried web.to_s output.puts(ie.html) # output is a .html file to be opened in w mode end If you

Re: [Wtr-general] Parameterization

2006-11-27 Thread Željko Filipin
On 11/27/06, sikander [EMAIL PROTECTED] wrote: could u expalin me how to do that in detail? -- *From:* [EMAIL PROTECTED]jackei** I suggest that you can use CSV or XML I suggest that you use yaml (http://yaml4r.sourceforge.net/cookbook/). I use it. -- Zeljko

Re: [Wtr-general] activeElement error.

2006-11-28 Thread Željko Filipin
This does not work? $ie.link(:id, ID_OPEN_POPUP1).fire_event(onclick) -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How do I write to simple file instead of screen?

2006-11-28 Thread Željko Filipin
You can redirect output of your script to file really easy. Go to command prompt, and write test.rb test.txt That will execute your test.rb script and write output to test.txt file. A little bit complicated is writing to file from ruby. file = File.open(test.txt, w) file.puts some text

Re: [Wtr-general] ie.minimize broken in watir-1.5.1.1127

2006-11-29 Thread Željko Filipin
On 11/27/06, Charley Baker [EMAIL PROTECTED] wrote: I just ran through the same steps you list below and didn't have a problem. The use of autoit for controlling the window state of ie hasn't changed for quite some time and should be installed as part of your install. Is it working with

Re: [Wtr-general] list of watir commands

2006-11-29 Thread Željko Filipin
On 11/29/06, vijay [EMAIL PROTECTED] wrote: Is there some place where one can find the list of commands that are available in Watir. http://wtr.rubyforge.org/rdoc/index.html But I think it is for 1.4.1. -- Zeljko Filipin zeljkofilipin.com ___

Re: [Wtr-general] Is there a way to make file_field.set faster?

2006-11-29 Thread Željko Filipin
Mark, Thanks a lot. startClicker works double faster than file_field.set. Paul, I will try autoit tomorrow, and see if it is even faster. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Is there a way to make file_field.set faster?

2006-11-30 Thread Željko Filipin
On 11/29/06, Željko Filipin [EMAIL PROTECTED] wrote: startClicker works double faster than file_field.set. Iit is now even faster (for three seconds) after I removed line with sleep 3 (when I noticed that comment says that it can be removed). file_field.set needed approximately 10,6 seconds

Re: [Wtr-general] How can i upload an image when i click browse button(input type=File)

2006-12-01 Thread Željko Filipin
On 12/1/06, Dhamodharan [EMAIL PROTECTED] wrote: i'm getting this error The above file is in valid ie.fileField(:name, avatar).set(damu) Hi Damu, File is invalid because windows can not find it. Make sure that you provide full path to file, something like this: ie.fileField(:name,

Re: [Wtr-general] how to get dato for a signup module using Class and methods.....

2006-12-02 Thread Željko Filipin
Take a look at WATIR User Guide ( http://www.openqa.org/watir/watir_user_guide.html). -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] I want to use Watir to test Firefox and Safari

2006-12-02 Thread Željko Filipin
On 11/30/06, Nathan [EMAIL PROTECTED] wrote: So I guess I can't test firefox or safari with watir. Please forgive me if it is already mentioned in this thread (I could not find it), but there is also SafariWatir (http://safariwatir.rubyforge.org/). -- Zeljko Filipin zeljkofilipin.com

Re: [Wtr-general] Selecting Links

2006-12-04 Thread Željko Filipin
On 12/4/06, Fletch [EMAIL PROTECTED] wrote: Is it possible to return the index of the link? I have watir 1.5.1.1081 and it is not supported there. irb(main):005:0 ie.link(:text, link).index NoMethodError: undefined method `index' for #Watir::Link:0x2dcc6f0 This looks like interesting

Re: [Wtr-general] Checking whether images inside a table are enabled or disabled

2006-12-04 Thread Željko Filipin
In your case, disabled link is not a link with disabled property (a href= page.htm disabled=disabledlink text/a), it is a table cell (tdcell text/td). This will tell you that Step 1. Details is link, not in table cell. irb(main):025:0 ie.link(:text, Step 1. Details).exists? = true

Re: [Wtr-general] ie.minimize broken in watir-1.5.1.1127

2006-12-04 Thread Željko Filipin
On 11/29/06, Charley Baker [EMAIL PROTECTED] wrote: The errors from core_tests.rb should be fixed now. The latest xpath test was getting in the way causing spurious errors. I've looked over the changes and don't see anything inherently that would cause this problem. I can't reproduce it

Re: [Wtr-general] Problems running any Watir tests

2006-12-04 Thread Željko Filipin
On 12/4/06, Jim Colo [EMAIL PROTECTED] wrote: - Do I need to run gem install watir? - Should I uninstall all and reinstall Ruby first? Yes, reinstall ruby and then type gem install watir in command prompt. -- Zeljko Filipin zeljkofilipin.com ___

Re: [Wtr-general] abnormal program termination error message while playing back a script

2006-12-05 Thread Željko Filipin
On 12/5/06, vijay [EMAIL PROTECTED] wrote: Can you guide me on how to install 1127 gem over Ruby 1.82? Download watir gem to any folder. Open command prompt and go to that folder. Type gem install watir Make sure that gem name is watir-1.5.1.1127.gem (not watir-1[1].5.1.1127.gem). --

Re: [Wtr-general] How to avoid opening two explorer when we tests??????

2006-12-06 Thread Željko Filipin
setup [...] will be called before [...] each test method that is run (from http://www.ruby-doc.org/stdlib/libdoc/test/unit/rdoc/classes/Test/Unit.html) There is @ie=Watir::IE.new in setup method and it is called two times, before test_search and test_login. That causes two browser windows to

Re: [Wtr-general] How does one access a web page element by its css class?

2006-12-08 Thread Željko Filipin
On 12/7/06, Nathan [EMAIL PROTECTED] wrote: ie.images[0].class I get: Watir::Image Try ie.images[0].class_name -- Zeljko Filipin http://zeljkofilipin.com/2006/12/05/tests-and-how-to-documents-2/ ___ Wtr-general mailing list

Re: [Wtr-general] Best practices for structuring GUI models?

2006-12-14 Thread Željko Filipin
On 12/14/06, Bret Pettichord [EMAIL PROTECTED] wrote: Once my test, using this method, is passing, then i start my Crazy OOP stuff (mostly use simple design patterns, actually). Would you also post which simple design patterns are you using? I am very interested to see what others are doing.

Re: [Wtr-general] ie.minimize broken in watir-1.5.1.1127

2006-12-15 Thread Željko Filipin
On 12/13/06, Bret Pettichord [EMAIL PROTECTED] wrote: It's unclear from your report whether this is a general problem, or specific to your environment. In order to properly test this, you need to uninstall (unregister) AutoIt and then verify Watir. There is a unit test (send_keys_test.rb) that

Re: [Wtr-general] ie.minimize broken in watir-1.5.1.1127

2006-12-15 Thread Željko Filipin
On 12/13/06, Bret Pettichord [EMAIL PROTECTED] wrote: Manually installing autoit should not be required. I have found the reason why autoit is not installed. I am usually logged on as limited user, I only switch to administrator when needed (I have listened too much of Security Now!

Re: [Wtr-general] Alternative for getElementsByClassName

2006-12-15 Thread Željko Filipin
If you have link that looks like this a href=page.htm class=myclasslink/a you can click it with this ie.link(:class_name, myclass).click -- Zeljko Filipin http://zeljkofilipin.com/ ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Simulate CNTRL-LEFT CLICK

2006-12-20 Thread Željko Filipin
On 12/20/06, Dave Munns [EMAIL PROTECTED] wrote: The control left click on a specific object will invoke a frame with a list of data. No url's involved... Look at your html source (or send it to us). You probably should do something like fire_event(ControlLeftClick) -- Zeljko Filipin

Re: [Wtr-general] Wait functionality in Watir ..need help

2006-12-20 Thread Željko Filipin
while true break unless ie.text.include?(loading) sleep 1 end You can replace ie.text.include?(loading) with anything that is appropriate, like ie.checkbox(:id, 1).exists? -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list

Re: [Wtr-general] Syntax for relative attributes

2006-12-20 Thread Željko Filipin
On 12/20/06, Bret Pettichord [EMAIL PROTECTED] wrote: link = $ie.link(:class = 'addtocart', :is_after? = headline) This would make sense to me (no question mark) link = $ie.link(:class = 'addtocart', :after = headline) By convention, methods that answer questions (i.e. Array#empty?

Re: [Wtr-general] how to install watir-1[1].5.1.1127.gem

2006-12-20 Thread Željko Filipin
On 12/20/06, liucongying [EMAIL PROTECTED] wrote: I am a new watirer,I want to know how to install watir-1[1].5.1.1127.gem I have already install ruby185-21 and watir-1[1].5.0.945.exe, I want to handle js-popup problem,please help me,thanks You will find 1.5.1.1127 gem and installation

Re: [Wtr-general] how to access an element whose html tag is A

2006-12-20 Thread Željko Filipin
Vijay, I have already replied to your question in another thread. This does not work for you? This will tell you that Step 1. Details is link, not in table cell. irb(main):025:0 ie.link(:text, Step 1. Details).exists? = true irb(main):026:0 ie.cell(:text, Step 1. Details).exists? = false This

Re: [Wtr-general] CRITICAL---Clicking Image Button in Application

2006-12-20 Thread Željko Filipin
Hi Balaji, Try this ie.image(:src,/btn_save_continue/).click -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Wait functionality in Watir ..need help

2006-12-21 Thread Željko Filipin
On 12/20/06, Bret Pettichord [EMAIL PROTECTED] wrote: Željko Filipin wrote: while true break unless ie.text.include?(loading) sleep 1 end This is a more concise way of doing the same thing: while (ie.text.include? 'loading') {sleep 1} I knew that there had to be a way to do

Re: [Wtr-general] How to verify if SPAN is visible

2006-12-21 Thread Željko Filipin
For span style=color: Red; visibility: visible; id=MainLogin_PasswordRequired*/span you can use irb(main):015:0 ie.span(:id, MainLogin_Password).html = SPAN id=MainLogin_PasswordRequired title=\Password is required.\ style=\VISIBILITY: visible; COLOR: red\*/SPAN irb(main):016:0 ie.span(:id,

Re: [Wtr-general] how to access an element whose html tag is A

2006-12-21 Thread Željko Filipin
On 12/21/06, vijay [EMAIL PROTECTED] wrote: 1. How you came to know that there is a word called cell, which can be used to check the contents of a table cell. Is that documented somewhere? If so, can you point me to the link where all these different types of objects, which can be referred

Re: [Wtr-general] ie.minimize broken in watir-1.5.1.1127

2006-12-21 Thread Željko Filipin
On 12/19/06, Bret Pettichord [EMAIL PROTECTED] wrote: Can you manually install AutoIt and then successfully run minmax_test.rb as a limited user? ruby 1.8.5 (2006-08-25) [i386-mswin32], ie7, watir-1.5.1.1127 minmax_test.rb works when runned as a limited user without AutoIt installed (and

Re: [Wtr-general] Iterator in harness

2006-12-27 Thread Željko Filipin
Maybe this would 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

Re: [Wtr-general] Image Uploading Problem....

2006-12-29 Thread Željko Filipin
This works for me ie.file_field(:id, onetidIOFile).set('c:\abc.gif') ie.file_field(:name, urn:schemas-microsoft-com:office:office#FileLeafRef).set('c:\abc.gif') I guess that your problem is that c:\abc.gif is in double qoutes (c:\abc.gif). Use single quotes and it should work just fine

Re: [Wtr-general] assertion on the color of the row of a table

2007-01-02 Thread Željko Filipin
Is colour defined in html or css? -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] assertion on the color of the row of a table

2007-01-04 Thread Željko Filipin
Try ie.table(:id, 'IDNAME' )[1][5].style.cssText == COLOR: #cc0033; BACKGROUND-COLOR: #33ffcc Of course, change [1][5] to match your cell. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] opening a link in new window

2007-01-09 Thread Željko Filipin
Please post html of that link. In the meantime, see http://wiki.openqa.org/display/WTR/FAQ# FAQ-TriggeringJavaScriptevents -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] stange problem!!!

2007-01-09 Thread Željko Filipin
On 1/9/07, liucongying [EMAIL PROTECTED] wrote: When does the next version release? You can make one for yourself today. See http://wiki.openqa.org/display/WTR/FAQ#FAQ-devgem -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list

Re: [Wtr-general] hi , few quries with WATIR

2007-01-09 Thread Željko Filipin
On 1/9/07, Maloy kanti debnath [EMAIL PROTECTED] wrote: 1) how to use assert_equal and for what purpose is it used with a simple example? From this list ( http://www.mail-archive.com/wtr-general@rubyforge.org/msg04291.html): require 'test/unit' class Foo Test::Unit::TestCase def

[Wtr-general] installing watir from trunk

2007-01-11 Thread Željko Filipin
I checked out Watir with TortoiseSVN and build a gem from revision 1142. But when I built the gem, it had name watir-1.5.1.1141.gem (revision number is not the same as the number in the gem name). Is that OK, or am I doing something wrong? I installed and executed tests while logged in as

Re: [Wtr-general] modal_dialog not working in 1.5.1.1136, ruby 1.8.4

2007-01-15 Thread Željko Filipin
On 1/15/07, John Lolis [EMAIL PROTECTED] wrote: I seem to be having some issues attaching to modal_dialogs. I tried to register my win32ole but it didn't seem to help. (the dialog popped up and said it didn't appear to be a valid dll) Make sure you are logged in as administrator while

Re: [Wtr-general] Change in email id for mailing list

2007-01-16 Thread Željko Filipin
On 1/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Could you please send me these mails on [EMAIL PROTECTED], as this current id i.e. [EMAIL PROTECTED] is no longer going to be used by me. Hi Manjiri, You will have to change it yourself at

Re: [Wtr-general] Handling verification codes (shown as img), used to prevent automation

2007-01-16 Thread Željko Filipin
On 1/16/07, sarita [EMAIL PROTECTED] wrote: In most web applications during user registration, verification codes shown as images, are asked to enter. And this is done exactly to prevent machines from entering verification code. :) There is still no way for a computer to recognize what code

Re: [Wtr-general] storing values of table cell

2007-01-16 Thread Željko Filipin
On 1/16/07, VIKASH KUMAR [EMAIL PROTECTED] wrote: Is there is a way to store all the values in some variable, like day=01/16/2007, month=Jan/2007, year=2007, status=13, value=open. Hi Vikash, You already have stored that values to variable, you have named it row. This is snippet from my irb

Re: [Wtr-general] Is there a way to make file_field.set faster?

2007-01-17 Thread Željko Filipin
On 1/17/07, Bret Pettichord [EMAIL PROTECTED] wrote: I also know that this was broken in 1.5 until recently, so you must have been referring to 1.4.1. Correct? No. I was referring to development gem 1.5.1.1081, the last gem that I could make FileField#set to work. I am curious whether the

Re: [Wtr-general] how to catpure image

2007-01-18 Thread Željko Filipin
On 1/18/07, Maloy kanti debnath [EMAIL PROTECTED] wrote: The AutoIt dll must be correctly registered for this feature to work properly AutoIt is not correctly registered at your machine. It happens to me every time I install watir. Open a command line, go to folder where AutoItX3.dll is

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Željko Filipin
On 1/18/07, Jason He [EMAIL PROTECTED] wrote: I tried to use the following method, but it seems does work, these cases will run almost concurrently. What do you mean by almost concurrently? -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-18 Thread Željko Filipin
Let's simplify a bit. I will put a list of files in array. irb(main):017:0 list = [first.rb, second.rb, third.rb] = [first.rb, second.rb, third.rb] I want them printed in the order they are in array (first.rb, second.rb, third.rb) irb(main):018:0 list.each { |x| puts x } first.rb second.rb

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Željko Filipin
On 1/19/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote: input id=app_feedback_title name=app_feedback[title] size=30 type=text / Both of this worked for me. ie.text_field(:name, app_feedback[title]).set(harish) ie.text_field(:id, app_feedback_title).set(harish) You said to watir that

Re: [Wtr-general] same text for different urls.

2007-01-19 Thread Željko Filipin
On 1/19/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote: so how could i code using selenium This is watir list. There is selenium forum at http://forums.openqa.org/forum.jspa?forumID=3 -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing

Re: [Wtr-general] Watir with Ajax

2007-01-19 Thread Željko Filipin
On 1/19/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote: input id=contract_my_document_title name=contract_my_document[title] size=30 type=text / Your code ie.text_field(:name, contract_my_document[title]).set(harish) works for me for this html. Maybe it's parent tag is hidden or

Re: [Wtr-general] same text for different urls.

2007-01-19 Thread Željko Filipin
On 1/19/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote: Hey sorry, I want in watir.. sorry for the mistake.. After I replied I noticed that you have already corrected yourself in another thread. :) -- Zeljko Filipin zeljkofilipin.com ___

Re: [Wtr-general] same text for different urls.

2007-01-19 Thread Željko Filipin
If you have html like this a href=atext/a a href=btext/a you can click link with href=b with any of this ie.link(:href, /b/).click ie.link(:url, /b/).click -- Zeljko Filipin zeljkofilipin.com Testing is not only what I do for a living. It is also what I do for fun.

Re: [Wtr-general] How to click on image associated with link

2007-01-22 Thread Željko Filipin
On 1/19/07, minal [EMAIL PROTECTED] wrote: For some strange resons ie.cell(:id, 10TD37).click doesn't work on my application. I think you need to have watir 1.5 for that. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list

Re: [Wtr-general] key codes are always zero

2007-01-22 Thread Željko Filipin
On 1/21/07, David Appledore [EMAIL PROTECTED] wrote: the text entered into text boxes does not fire key events properly in the IE DOM Take a look at FAQ, section Triggering JavaScript events http://wiki.openqa.org/display/WTR/FAQ#FAQ-TriggeringJavaScriptevents -- Zeljko Filipin

Re: [Wtr-general] How to run test cases in sequence rather than atthe same time?

2007-01-22 Thread Željko Filipin
On 1/22/07, Jason He [EMAIL PROTECTED] wrote: However, it seems that test unit encapsulate some methods could handle error You can also handle errors in ruby without test unit. Take a look at Exceptions, Catch, and Throw section of Programming Ruby (

Re: [Wtr-general] How to run test cases in sequence rather than at the same time?

2007-01-23 Thread Željko Filipin
On 1/23/07, Jason He [EMAIL PROTECTED] wrote: Do these test cases are compatible both running in IE and firefox? How about it to the test cases with/without using test unit? Should each test cases need to be changed, or just change the browser name at the control list. I do not understand

Re: [Wtr-general] error happened when calling verify_match() ...

2007-01-23 Thread Željko Filipin
On 1/23/07, Jason He [EMAIL PROTECTED] wrote: I found that these methods are defined in watir/assertions.rb. Did I miss anything when use those methods? Try adding this at the beginning of the script. require 'watir/assertions' -- Zeljko Filipin zeljkofilipin.com

Re: [Wtr-general] Inserting date from a Date picker handled thru javascript

2007-01-23 Thread Željko Filipin
On 1/23/07, sarita [EMAIL PROTECTED] wrote: There is a read-only text box where date is inserted from a Date picker thru java script. How to automate this? What? Selecting date? How do you do it manually? -- Zeljko Filipin zeljkofilipin.com ___

Re: [Wtr-general] How to retrieve TH in table

2007-01-23 Thread Željko Filipin
Can you post table html? -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] undefined method `[]' for nil:NilClass (NoMethodError) error at the end of array???

2007-01-23 Thread Željko Filipin
On 1/24/07, Bret Pettichord [EMAIL PROTECTED] wrote: We'd now like to make Watir consistent and start with 0 everywhere (like everything else in Ruby) but this would raise compatibility issues. We welcome your thoughts in this area. I vote for start with 0 everywhere. -- Zeljko Filipin

Re: [Wtr-general] Inserting date from a Date picker handled thru javascript

2007-01-24 Thread Željko Filipin
On 1/24/07, sarita [EMAIL PROTECTED] wrote: An image link is there. when it's clicked, the Date picker appears where date, month, year are there. When u click on a date, that date is inserted in the text box immediately the Date picker disappears. And, where is the problem? What can you do,

Re: [Wtr-general] error with running a testsuite

2007-01-25 Thread Željko Filipin
Change your method name from default_test to test_default. test/unit thinks method is a test only when method name starts with test_. No tests were specified. error means that you do not have any method which name starts with test_. -- Zeljko Filipin zeljkofilipin.com

Re: [Wtr-general] BUG: Using XPath

2007-01-25 Thread Željko Filipin
On 1/25/07, Bret Pettichord [EMAIL PROTECTED] wrote: Please submit a patch. And here is explanation how to make a patch: Patching Code is Easy in Ruby by Bret Pettichord http://www.io.com/~wazmo/blog/archives/2006_09.html#000241 -- Zeljko Filipin zeljkofilipin.com

Re: [Wtr-general] Why does Watir sometimes not open an IE window, yet continues to run tests?

2007-01-26 Thread Željko Filipin
On 1/26/07, Nathan [EMAIL PROTECTED] wrote: Why does Watir sometimes not open an Internet Explorer window, yet continues to run tests just fine? The same tests sometimes run with IE visible, and sometimes IE is hidden? IE will be hidden if you run your test with -b command line option

Re: [Wtr-general] Getting the current system date through a Watir command

2007-01-29 Thread Željko Filipin
On 1/29/07, vijay [EMAIL PROTECTED] wrote: I do not know what command to use to make Watir output the current system date and to convert it into the desired format, dd-mon- (22-Jan-2007). Watir can not do it, but Ruby can. Time.now.strftime(%d-%b-%Y) = 29-Jan-2007 For more information,

Re: [Wtr-general] custom attributes

2007-01-29 Thread Željko Filipin
On 1/29/07, Prema Arya [EMAIL PROTECTED] wrote: ie.text_field(:xpath , //[EMAIL PROTECTED]'paul']/) This is so cool. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] installing watir from trunk

2007-01-31 Thread Željko Filipin
On 1/31/07, Bret Pettichord [EMAIL PROTECTED] wrote: Thank you very much for the reports. I love to report bugs. :) -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] url for link

2007-02-01 Thread Željko Filipin
On 1/31/07, Bret Pettichord [EMAIL PROTECTED] wrote: ie.link(:html, /contract_id=227/).click Once more, this is so cool. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] url for link

2007-02-01 Thread Željko Filipin
On 1/30/07, Naga Harish Kanegolla [EMAIL PROTECTED] wrote: a href=# onclick=new Ajax.Request('/data_entry/ajax_add_term/131?contract_id=227', {asynchronous:true, evalScripts:true}); return false;add a term/a Can regular expressions be used with xpath? This does not work. ie.link(:xpath,

Re: [Wtr-general] url for link

2007-02-02 Thread Željko Filipin
On 2/2/07, Prema Arya [EMAIL PROTECTED] wrote: You can't use regular expression in xpath with XPATH 1.0, you can use it in XPATH 2.0 and rexml supports only xpath 1.0. You can use string operations like substring, string before, string after though.

[Wtr-general] how ie.div(:name = 'foo', :index = 2).click works?

2007-02-08 Thread Željko Filipin
How this works? ie.div(:name = 'foo', :index = 2).click I tried to find in Watir source how it is done, but I could not find it. Could somebody please point me to the right method? It would make sense to me if the argument was a hash. ie.div({:name = 'foo', :index = 2}).click I would like to

Re: [Wtr-general] url for link

2007-02-08 Thread Željko Filipin
ie.link(:html, /133/).click or ie.link(:html, /ajax_add_term\/133/).click -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] url for link

2007-02-08 Thread Željko Filipin
This does not work? ie.link(:html, /133/).click -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] url for link

2007-02-08 Thread Željko Filipin
On 2/8/07, John Lolis [EMAIL PROTECTED] wrote: you missed typed it, type it exactly ie.link(:html, /ajax_add_term\/133/).click I think the \ / is allowing the forward slash to be used as a string and not as a special regex character. Exactly. -- Zeljko Filipin zeljkofilipin.com

Re: [Wtr-general] how ie.div(:name = 'foo', :index = 2).click works?

2007-02-08 Thread Željko Filipin
Hi Nathan, Thanks, but now I see I was not clear enough. I did not want how click method works (but, once more, thanks for your time). I wanted to know how are this method arguments handled: (:name = 'foo', :index = 2) It would make sense to me if it is a hash ({:name = 'foo', :index = 2})

Re: [Wtr-general] how ie.div(:name = 'foo', :index = 2).click works?

2007-02-09 Thread Željko Filipin
Charley and Bret, Thank you. If I took a better look at Pickaxe I would save some of your time. I was trying this (and of course it did not work). If I posted this in my original post, maybe my mistake would be clearer to you. div(:name = 'foo', :index = 2) def div(first, second) hash =

Re: [Wtr-general] how ie.div(:name = 'foo', :index = 2).click works?

2007-02-09 Thread Željko Filipin
I was browsing true Watir General forum at OpenQA Forums and I wonder how to mark Charley's answer as correct. I am logged in (I can edit my posts). I thought I would see something like mark as correct somewhere, but I can not find it. Or is it something that forum administrator does? -- Zeljko

Re: [Wtr-general] Errors installing Watir 1.5.0.934.exe (1-click installer)

2007-02-09 Thread Željko Filipin
Log in as administrator. That could help. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] how ie.div(:name = 'foo',

2007-02-09 Thread Željko Filipin
On 2/9/07, John Lolis [EMAIL PROTECTED] wrote: Think its too late now though :) It is. I tried to edit my original post, but there is no option to make it a message. Thanks for info. -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list

Re: [Wtr-general] getting commnad line arguements

2007-02-12 Thread Željko Filipin
http://www.rubycentral.com/book/rubyworld.html -- Zeljko Filipin zeljkofilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

  1   2   3   >