[wtr-general] Need help on table dropdowns(iteration)

2011-05-19 Thread Ashok Tulachan
Hello everyone, I am trying to do 'For' loop for the table but i am having a hard time as it involves iteration. *Scenario description:* I have a table where there are 'n' number of rows but fixed number(5) of columns as shown below. I need to select the dropdown in column 5 if the text

[wtr-general] How to utilize resulting array from browser.links.find_all { |x| x stuff } command

2011-05-19 Thread Abe Heward
I need to get the href value of links on a page that match a regex. So, I run this code: product_links = browser.links.find_all { | link | link.class_name =~ /(Product|Detail)/i } I get back an array of matching links. This is great. However, the contents of the array include more than just

[wtr-general] Re: How to utilize resulting array from browser.links.find_all { |x| x stuff } command

2011-05-19 Thread Abe Heward
Figured out the answer myself. After the fact it's obvious: product_links[0].href -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general

[wtr-general] Re: What is the solution for modal_dialog to work in ruby 1.8.7?

2011-05-19 Thread Steven Coleman
Chaand, Can you use the Internet Explorer developer toolbar, or some other tool that can spy on the window, to get the id or name for the text field? When I'm working with a modal window (using Ruby 1.8.7), I'm able to do the following: @browser = Watir::IE.new @browser.modal_dialog(:title,

Re: [wtr-general] Re: What is the solution for modal_dialog to work in ruby 1.8.7?

2011-05-19 Thread Ashok Tulachan
Hi steve, don't want to disrupt you but can you help me out with this? I am trying to do 'For' loop for the table but i am having a hard time as it involves iteration. Scenario description: I have a table where there are 'n' number of rows but fixed number(5) of columns as shown below. I need

Re: [wtr-general] Re: Clicking OK on Pop Up with Watir

2011-05-19 Thread ranjith kumar
Hello Team, I have gone through one of the watir forums i found the code with auto it to click the pop ups. The code is working well with firefox browser but not with IE. Is there anything need to be changed in the below code to work with IE for pop up. *require 'win32ole' # already included