[wtr-general] Fwd: Donate to Watir

2010-07-01 Thread Željko Filipin
If you like the Watir project, you can make a donation. There is donate button at http://watir.com/. We have raised $595 this year. We will spend it on hosting and stuff like that. You can see list of donors and Bret's thank you note at http://pledgie.com/campaigns/2982 Željko -- Before

[wtr-general] Mouse_click method for firefox browser

2010-07-01 Thread kiran yajamanyam
Hi Friends, I am facing a problem while clicking on few objects (both in IE and Firefox) for IE I am using mouse_click() method which I have taken from grup and is perfectly working fine and I have attached that piece of code in this mail. Did some one tried Mouse_click method for firewatir? I

[wtr-general] Re: Rich calender how to get value

2010-07-01 Thread naresh
Hi, I am using below line to click date in calender ie.cell(:class = rich-calendar-input rich-calendar- button,:text=Monday,:text=March).click; but i am getting exception. c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/element.rb:56:in `assert_ex ists': Unable to locate element,

Re: [wtr-general] Re: Rich calender how to get value

2010-07-01 Thread Željko Filipin
On Thu, Jul 1, 2010 at 12:03 PM, naresh nareshvatsa...@gmail.com wrote: ie.cell(:class = rich-calendar-input rich-calendar- button,:text=Monday,:text=March).click; Several problems: - leading space in rich-calendar... - you are saying that there is cell with exactly text Monday and March - a

[wtr-general] Re: Rich calender how to get value

2010-07-01 Thread naresh
Hi , Can anyone tell me in below script , what is monthLabels,weekDayLabels, are these cell or link in calender. I am trying to select, Monday,March from calender. I used 2 approach ie.cell(:class = rich-calendar-inputrich-calendar-button,:text=/ Monday.*March/).click; ie.table(:id,

Re: [wtr-general] Re: Rich calender how to get value

2010-07-01 Thread Željko Filipin
On Thu, Jul 1, 2010 at 12:44 PM, naresh nareshvatsa...@gmail.com wrote: Can anyone tell me in below script , what is monthLabels,weekDayLabels, are these cell or link in calender. Do you know that javascript can create HTML? Calendar that you want to automate is not visible in page source, it

[wtr-general] Iterate through radio buttons

2010-07-01 Thread Shlomit Gazit
I am trying to iterate through radio buttons in the page, but I dont want to iterate through all the radios in the page, only those with certain id. How can I do that? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message

[wtr-general] Re: Rich calender how to get value

2010-07-01 Thread naresh
Hi, I tried to select date with following ie.table(:id, globalForm:startDateDecorate:startDate).link(:text, 30).click i got exception Unable to locate element, using :text, 30 unknownobjectexcception. In IE dev toolbar HTML code is for rich-calender is like below TABLE

[wtr-general] Re: Iterate through radio buttons

2010-07-01 Thread joedio
Shlomit, This may work for your situation: # Define the element ID to be acted upon myID = your_id # Loop through the radio elements browser.radios.each do | radio | # Separate the matching radios if(browser.radio(:id, myID )) # Do whatever you need to do with it (e.g. set it)

Re: [wtr-general] Re: Rich calender how to get value

2010-07-01 Thread Željko Filipin
Does this work? ie.table(:id, globalForm:startDateDecorate:startDate).cell(:text, 30).click Or this? ie.cell(:text, 30).click If it clicks the date, but nothing happens, you probably have to fire some JS event. Željko -- Before posting, please read http://watir.com/support. In short: search

[wtr-general] Re: Mouse_click method for firefox browser

2010-07-01 Thread joedio
Kiran, You didn't mention what objects it works/fails with. Is it only working for a particular type of object, and failing on another type of object? Is it possible that the reason Watir's click() method does not work for your situation is that the java script for the objects you are trying to

[wtr-general] Save Download Box behaves differently on IE 6 and IE 7

2010-07-01 Thread asheesh misra
Hi All, I am newbie in Ruby/ WATIR and am struggling for the past 4 days with a slightly uncommon problem. The application I am trying to automate has a feature of exporting the data table in .csv format. I use following function to save that exported .csv file: def

[wtr-general] Re: Save Download Box behaves differently on IE 6 and IE 7

2010-07-01 Thread joedio
Asheesh, I see from the code you supplied that when running with IE6 you are passing to AutoIt one title as a variable... window_title = File Download ai.WinWaitActive(window_title,prompt_message,1) have another title hard coded as Save As ai.WinWait(Save As, Save in, 5) and