Re: [wtr-general] Re: file download

2010-04-15 Thread arihan sinha
now I've changed the setting so that the powerpoint would be opened without file download prompt. now I need to focus on that already opened powerpoint and do some testing through ruby. earlier i was saving the powerpoint ( clicking the save button from that file download prompt) and opening the

[wtr-general] how ruby interacts with already opened powerpoint

2010-04-15 Thread arihan sinha
Hi, In my application I've changed the setting so that the powerpoint would be opened without file download prompt. Now I need to focus on that already opened powerpoint and do some testing through ruby.( say count the no of slides) earlier i was saving the powerpoint ( clicking the save button

Re: [wtr-general] how ruby interacts with already opened powerpoint

2010-04-15 Thread Ethan
This group is about Watir, not WIN32OLE. I would look for microsoft's documentation on what powerpoint exposes for OLE automation. You will probably have to iterate over open applications to detect the existing powerpoint window. You might look at the source of Watir::IE.each (ie-class.rb, line 236

[wtr-general] Re: watir exit code

2010-04-15 Thread Adam Reed
I can't say if the approach you're using is viable or not because I'm not clear on your intended goal, but if you're trying to get just the number after SystemExit try: $variable = $variable.split("SystemExit")[1] If I knew what test framework you were using, I could probably offer an easier way

[wtr-general] No method works for Frame

2010-04-15 Thread Kinnu
Hi Friends, I am unable to identify elements inside a frame and no method of element class is working(like exists?, click() etc). Following is the current issue i am facing: In my project, compose mail window is developed in frame and when I copy a image inside compose body, folloing are the thi

Re: [wtr-general] No method works for Frame

2010-04-15 Thread Wesley Chen
I think you don't know how to use iframe. It should be ie.frame(:name, "xxx").image(:src, "").click Wesley. For life, the easier, the better. On Fri, Apr 16, 2010 at 1:06 PM, Kinnu wrote: > > Hi Friends, > > I am unable to identify elements inside a frame and no method of > element class is w