Re: [wtr-general] No method works for Frame
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 kiranyajaman...@gmail.com wrote: 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 things I tryed and nothing is working 1. puts ie.frame(edit_body).exists?() gives error saying exists?() is not a valid method for frame 2. puts ie.frame(edit_body).image(:title, TestPic.jpeg).exists?() gives error saying exists?() is not a valid method for frame Tried all combination's but no luck. Is handling frames a drawback for Watir itself? Is there soemthign that i should ask my developers to enable ? Will be great if some one who is also facing this problems let us know solution if at all if any Thanks, Kiran Y -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com
Re: [wtr-general] No method works for Frame
Hi Wesley, By default for frame attribute is name so when we use ie.frame(name) will work. When I use index eg: ie.frame(name attribute of frame).image(:index, 1).click() its working but when I use other attributes to identify it throws error unable to identify. Thanks, Kiran On Fri, Apr 16, 2010 at 11:59 AM, Wesley Chen cjq@gmail.com wrote: 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 kiranyajaman...@gmail.com wrote: 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 things I tryed and nothing is working 1. puts ie.frame(edit_body).exists?() gives error saying exists?() is not a valid method for frame 2. puts ie.frame(edit_body).image(:title, TestPic.jpeg).exists?() gives error saying exists?() is not a valid method for frame Tried all combination's but no luck. Is handling frames a drawback for Watir itself? Is there soemthign that i should ask my developers to enable ? Will be great if some one who is also facing this problems let us know solution if at all if any Thanks, Kiran Y -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com
[wtr-general] Installation of Watir 1.6.5
I'm trying to install watir 1..6.5 on a sytem without internet connectivity, I'm getting the below error. If anyone is aware of the problem please help. C:\rubygem install D:\watir-1.6.5.gem ERROR: While executing gem ... (RuntimeError) Error instaling D:\watir-1.6.5.gem: watir requires win32-process = 0.5.5 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com
Re: [wtr-general] Installation of Watir 1.6.5
did you run 'gem update' command? what does 'gem -v' command return to u? Is it greater than 1.3.5? If not, then your update was not successful. you are still in the older version. You will need to install rubygem1.3.6 first Then again run 'gem install watir'. On Fri, Apr 16, 2010 at 3:11 PM, deepak deepak.jh...@gmail.com wrote: I'm trying to install watir 1..6.5 on a sytem without internet connectivity, I'm getting the below error. If anyone is aware of the problem please help. C:\rubygem install D:\watir-1.6.5.gem ERROR: While executing gem ... (RuntimeError) Error instaling D:\watir-1.6.5.gem: watir requires win32-process = 0.5.5 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com
[wtr-general] Re: how ruby interacts with already opened powerpoint
try this ppt = WIN32OLE.connect('PowerPoint.Application') -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com
[wtr-general] Re: how ruby interacts with already opened powerpoint
Thanks everyone. Its done . I found the solution in the microsoft site. No need to spend time on this. Regards Arihan On Thu, Apr 15, 2010 at 2:59 PM, arihan sinha arihan.si...@googlemail.comwrote: 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 from that file download prompt) and opening the same ppt as ppt = WIN32OLE.new('PowerPoint.Application') ppt.Visible = true * **doc = ppt.Presentations.Open('C:\Documents and Settings\sinhaa\My Documents\JHEPAT_2010_VOL51_PG845.ppt')* slidecount = doc.Slides.Count puts slidecount but the problem happend that when the remote system ( build server) is locked or minimised then it stuck in the file download prompt because it was not sending the key stroke. So after setting changed the ppt already opened so i should be able to directly count the slides on that ppt by focusing or activating the same ppt. i tried with below code but it seems not working. any thoughts??? $ie.goto( http://www.thelancet.com/journals/lancet/article/PIIS0140-6736%2810%2960523-5/fulltext ) $ie.link(:text, Download to PowerPoint).click ###The ppt gets opened automatically as a separate ppt file without file download prompt because settings changed. ppt = WIN32OLE.new('PowerPoint.Application') ppt.Visible = true slidecount = * ppt.Presentations*.Slides.Count puts slidecount Regards Arihan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com