[wtr-general] Re: Watir Examples...Need Help

2009-11-23 Thread Željko Filipin
On Fri, Nov 20, 2009 at 6:00 PM, Tiffany Fodor tcfo...@comcast.net wrote: Zeljko has put up some great information in the tutorial section of the wiki: http://wiki.openqa.org/display/WTR/RSpec I wrote an earlier version, Aidy wrote this version. :) Željko -- watir.com - community manager

[wtr-general] Accessing a overlay popup

2009-11-23 Thread Soori
All, I would like to add a product on cart through search option. clicking Add link on the page will open an overlay popup where we can search a product and click Add button from the search result. I couldn't access the search button and the search text box on the overlay pop up. please help me

[wtr-general] Re: Accessing a overlay popup

2009-11-23 Thread Angrez Singh
Hi Soori, Think if somebody has posted the same question, will you be able to help him without knowing what he had tried, what ruby code he's using, whats the HTML of the page, whats the HTML of the pop up? This will be information that you'll require to help some one else. So everybody on the

[wtr-general] Re: Accessing a overlay popup

2009-11-23 Thread Soori
Hi Angrez, We are using the DHTML Window Widget- By Dynamic Drive, available at: http://www.dynamicdrive.com; for overlay popup. Please find below the htm of the popup and let me know if you need more info, tbodytr td style=padding:

[wtr-general] Re: Accessing a overlay popup

2009-11-23 Thread Ethan
Please include the ruby code that you are trying to use, the error that you are getting, what version of watir you are using. Before posting, please read http://wiki.openqa.org/display/WTR/Supportparticularly General Posting Guidelines. -Ethan On Mon, Nov 23, 2009 at 06:43, Soori

[wtr-general] Error attempting to install watir via command line

2009-11-23 Thread bsmith
I am getting the following error when attempting to install watir on my server C:\rubygem install watir ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) No connection could be made because the target machine actively refused it. - connect(2)(Errno::ECONNREFUSED) The OS

[wtr-general] Re: Accessing a overlay popup

2009-11-23 Thread Soori
Hi Ethan, This is the simple ruby script which am trying, $ie=Watir::IE.new $ie.goto(http://localhost/myurl;) i=1 $ie.select_list(:name, tx#local#Xssproduct#Source#category).select(HA) $ie.text_field(:name, addNewProductInput).set(product+i.to_s) $ie.image(:src,

[wtr-general] Re: Accessing a overlay popup

2009-11-23 Thread Ethan
It would appear that watir can't find a window with a title that matches /Select Products/. your html snippet has no mention of any title, so I don't know if such a window exists. If that is the title of an html overlay popup, it is not a real IE window and watir won't be able to find a real IE

[wtr-general] Re: Accessing a overlay popup

2009-11-23 Thread George
Have you tried to use the IE Developer Toolbar to figure out what the element IDs are? Keep the overlay window open and click around to determine how to access what you need. On Nov 23, 9:00 am, Ethan notet...@gmail.com wrote: It would appear that watir can't find a window with a title that

[wtr-general] Help with tables

2009-11-23 Thread xguarder
Hello, can anyone give me some quick tips on how to do the following: Say I am searching for the text Something, which is in the first column of the table. Exact row and table index won't be known up front. So I have table.row(:text, Something) thus far What method can I use to retrieve the

[wtr-general] Re: Help with tables

2009-11-23 Thread George
I'm assuming that the text 'Something' is actually in a row's cell, and you're looking for the following cell text, correct? If 'Something' is only going to be listed once in the entire table, then this should work for you: puts @browser.table(:id, 'tableID').cell(:after?, @browser.cell(:text,

[wtr-general] Re: Help with tables

2009-11-23 Thread George
I'm assuming that the text 'Something' is actually in a row's cell, and you're looking for the following cell text, correct? If 'Something' is only going to be listed once in the entire table, then this should work for you: puts @browser.table(:id, 'tableID').cell(:after?, @browser.cell(:text,

[wtr-general] Watir Opening Unwanted Multiple Tabs

2009-11-23 Thread Jeff Savin
Hi, I've been using Watir for a while now with great success. Recently, I built a web-automation script for a client that visits some variation of the same URL multiple times. Its actually the same base URL but has different parameters each visit. On my machines, running both XP and Vista, it

[wtr-general] Re: Help with tables

2009-11-23 Thread Tiffany Fodor
Hi George! I couldn't get the .text method to work without looping through the rows in a table, here's how I did it: my_table = browser.table(:id, 'table_id') my_table.rows.each do |row| if row.text.include?('Something') my_text = row[3].text end end You'll need to figure out which

[wtr-general] issue in entering value in text field

2009-11-23 Thread mohe
I need to fill the 2 fields in my application(“Requester ID”,”Policy Number”). The issue is. these 2 fields are not recognize by watir and it throws error like “ c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/frame.rb:40:in `locate': Unable to locate a frame with name Main

[wtr-general] workaround for WTR-343 (element_by_xpath issue)

2009-11-23 Thread chhsiung
Hi I am trying to use element_by_xpath to retrieve objects to interact with. However, because of WTR-343, element_by_xpath is returning WIN32OLE objects so I don't have access to Element methods (like append, clear, set, etc). I want to use element_by_xpath because I may have elements that are

[wtr-general] select_item_in_select_list no longer working as expected

2009-11-23 Thread James
My computer crashed and I had to reinstall ruby and watir. I used to be able to use a command like this: browser.select_list(:id, 'mydropdownbox').select_item_in_select_list (:index, 3) Now, if I do this, every item in the select box gets highlighted, and I get the error:

[wtr-general] Re: select_item_in_select_list no longer working as expected

2009-11-23 Thread James
Perhaps this is related, or I'm just interpretting it wrong, but if I do: gem -v watir it returns: 1.3.5 Isn't the newest watir at version 1.6.5? If I try to update watir, it tells me there's nothing to update. Thanks, James On Nov 23, 3:52 pm, James jgcpal...@gmail.com wrote: My

[wtr-general] Re: select_item_in_select_list no longer working as expected

2009-11-23 Thread James
Never mind that last post, it wasn't returning what I thought I was returning. It looks like I'm running watir 1.6.5. On Nov 23, 4:39 pm, James jgcpal...@gmail.com wrote: Perhaps this is related, or I'm just interpretting it wrong, but if I do: gem -v watir it returns: 1.3.5 Isn't the