[Wtr-general] How to send yes to the security certificate

2007-05-22 Thread Koteswara Annavarapu
Hi Ian , This is the common certificate error , when you open a secured site whose certificate is issued by a non trusted certifying authority. When I open any https site like this ie.goto('https://www.securedsite.net/') the OS will popup a modal dialog asking for accepting the certificate and

Re: [Wtr-general] How to select option on Menu button with multiple levels of the option list

2007-05-22 Thread Željko Filipin
Hi Kui, This does not work? ie.span(:id, Claim:ClaimMenuActions:ClaimMenuActions_NewDocument).click Zeljko -- ZeljkoFilipin.com ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to send yes to the security certificate

2007-05-22 Thread aidy lewis
On 22/05/07, Koteswara Annavarapu [EMAIL PROTECTED] wrote: but the ie.goto is not stepping further until you clear the certificate. You need to use threads. I will put it on the faqs. code class Browser def initialize $ie = Watir::IE.new end def goto(url) @url = url t =

[Wtr-general] how click on save button and save to a paticular folder

2007-05-22 Thread atul srivastava
how click on save button and after select paticualr drive and folder to sva e the file. i m using some coad but not working.. require 'win32ole' autoit = WIN32OLE.new(AutoItX3.Control) autoit.WinWait(File Download, Do you want to open or save, 3)

[Wtr-general] How to click variable link

2007-05-22 Thread SHALINI GUPTA
Hi all, In my project i have some links that is user dependent.i.e. depend on user input.(text is not fixed).How can i click this. I dont want to click this with text as text is not fixed.what are the other properties that should be fixed for this type of links. I tried to this with href but its

Re: [Wtr-general] How to click variable link

2007-05-22 Thread Željko Filipin
On 5/22/07, SHALINI GUPTA [EMAIL PROTECTED] wrote: I tried to this with href but its not working. Hi Shalini, What error message do you get when you use href? Can you post your Watir and Ruby code? There is lot of ways you can click a link. I recommend id. Jeff has made page at Watir wiki

[Wtr-general] Identification of null value from a particular object

2007-05-22 Thread zaheer
I have a text box. I want to verify that a particulat text field has null value.If so how to identify the null value? ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Identification of null value from a particular object

2007-05-22 Thread Željko Filipin
On 5/22/07, zaheer [EMAIL PROTECTED] wrote: I have a text box. I want to verify that a particulat text field has null value.If so how to identify the null value? Hi Zaheer, what do you mean by null value? That text field is empty, or has text null? Try this: ie.text_field(:index, 1).text

Re: [Wtr-general] Identification of null value from a particular object

2007-05-22 Thread zaheer
I meant to say that the text field does not have any value. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Identification of null value from a particular object

2007-05-22 Thread Željko Filipin
On 5/22/07, zaheer [EMAIL PROTECTED] wrote: I meant to say that the text field does not have any value. And this does not help you? ie.text_field(:index, 1).text ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Identification of null value from a particular object

2007-05-22 Thread zaheer
No. The condition here is : If the text field has any value, i will continue with the next page. If it has null value i need to enter the data there. ___ Wtr-general mailing list Wtr-general@rubyforge.org

Re: [Wtr-general] Identification of null value from a particular object

2007-05-22 Thread Jeff Fry
zaheer wrote: No. The condition here is : If the text field has any value, i will continue with the next page. If it has null value i need to enter the data there. Hi Zaheer, what does your script look like so far? What Zeljko gave you should generally work to identify a field that doesn't

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

2007-05-22 Thread Jeff Fry
Bret Pettichord wrote: *Questions: *changes.rb and license.rb * What do I need to do so that these will be listed in the rdoc (as they are for rspec and rails)? When I rolled my own rdoc, I don't see these under Files. This is controlled by the rdoc task definition in the

[Wtr-general] Long, strange field name issue

2007-05-22 Thread Tiffany Fodor
Hi all! I'm using the new Excel interface class to retrieve data from a spreadsheet for testing our web app. One field on our website is giving me fits. I've verified with IE Developer that the field is Business Income/Extra Expense/Rental Value_0 The line in my script (#126) that writes

Re: [Wtr-general] Long, strange field name issue

2007-05-22 Thread Paul Carvalho
Did you try it with single-quotes instead of double-quotes? On 22/05/07, Tiffany Fodor [EMAIL PROTECTED] wrote: The line in my script (#126) that writes data to this field looks like this: ie.text_field(:name, Business Income/Extra Expense/Rental Value_0).set(account[bldgBI])

Re: [Wtr-general] Long, strange field name issue

2007-05-22 Thread Tiffany Fodor
Thanks so much for the suggestion and quick resonse, but I tried single quotes and got the same error. I've also tried finding the object using :class (not great since I may have multiple fields with the same class) and :title. When I used :class, I got the same error as before. When I

Re: [Wtr-general] Long, strange field name issue

2007-05-22 Thread Paul Rogers
the exception is caused by the value you are trying to set account[bldgBI] being nil you can test is by doing this first puts oh no - its nil if account[bldgBI].nil? - Original Message - From: Tiffany Fodor [EMAIL PROTECTED] Date: Tuesday, May 22, 2007 11:04 am Subject: [Wtr-general]

Re: [Wtr-general] Long, strange field name issue

2007-05-22 Thread Tiffany Fodor
D'Oh! I was so focused on that field name that I didn't notice I forgot to update my script with the new name of that row in my spreadsheet. I was trying to enter a value that didn't exist in my hash. It works fine now. Thanks so much for your help and quick responses! -Tiffany

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

2007-05-22 Thread Bret Pettichord
Jeff Fry wrote: I tried commenting out the empty class in changes.rb as an experiment. I still see changes.rb in Files (as I'd hoped) and no longer see it under Classes (as I'd also hoped). Is there something I'm missing here, or is it alright for me to remove the empty class from

Re: [Wtr-general] How to clear cache from within watir script?

2007-05-22 Thread Ruben
Since no one is replying I'll update my status on the current issue. So for some reason the cookie/cache watir functions were not working properly for me but when I tried the same thing on my other computer with Watir 1.5.1.1166 they started to work, somewhat. For cookies, it works 100%

Re: [Wtr-general] How to select option on Menu button with multiple levels of the option list

2007-05-22 Thread Kui Zhang
Hi Zeljko, Yes. it works. I did not specify the correct frame that caused me a trouble. Works fine now. Thanks! Kui ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] How to clear cache from within watir script?

2007-05-22 Thread Bret Pettichord
Ruben wrote: Since no one is replying I'll update my status on the current issue. So for some reason the cookie/cache watir functions were not working properly for me but when I tried the same thing on my other computer with Watir 1.5.1.1166 they started to work, somewhat. For cookies, it

[Wtr-general] Why it is always failed?

2007-05-22 Thread Kui Zhang
Hello, I need to assert the text is displayed in the frame. Using the following assert statement, I always get failed result. When I use selectFrame(inet-menu-tree-frame) in selenium, it works. Not sure why it is not working in Watir? Attached html code. Please help.