[wtr-general] Re: OLE error code 0x80020009
I have tried all the things upto ie.logger.level = Logger::ERROR. But still i am facing the same issue.. On Nov 22, 12:54 pm, Hrishikesh Bose hrishikesh.b...@gmail.com wrote: it happens sometimes when frames are used. try to visit the following urlhttp://wiki.openqa.org/display/WTR/Frames On Mon, Nov 22, 2010 at 12:45 PM, sivam sivamma...@gmail.com wrote: Hi I am facing this access denied error ole error code:80020009.. I have tried ie.Logger.level = Logger::ERROR. But still getting the same error -- Before posting, please readhttp://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.comhttp://groups.google.com/group/watir-general%0Awatir-general+unsubscr...- Hide quoted text - - Show quoted text - -- 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 watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: OLE
I have tried this code but it gives error for document function. as-- LE.rb:7:in `method_missing': Document (WIN32OLERuntimeError) OLE error code:80004005 in Unknown No Description HRESULT error code:0x80020009 Exception occurred. from OLE.rb:7 Exit code: 1 On Mar 26, 11:35 am, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Guys, I want to create a method by which I can perform any operation on a object by just passing the identifier of that object. In Watir , we need to call specific methods for calling a particular object as-- ie.text_filed(:id, 'Text1').set('Test') So, Can I impelment my method using win32OLE . e.g. -- require 'win32ole' ie = WIN32OLE.new('InternetExplorer.Application') ie.visible = true ie.navigate(http://www.google.com;) ie.document.all[q].value = pickaxe ie.document.all[btnG].click Is this a good way to create a function which performs an operation on all object types by just passing identifier as -- def click(sObjectId) ie.document.all[sObjectId].click end Please reply. I will be thankful for your cooperation. Thanks Vikas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: OLE
ie.document is method of watir and not OLE Object of IE. You need to study more about IE ole object if you want to do that. - Angrez On Thu, Mar 26, 2009 at 12:07 PM, Vikas Tulashyam vtulash...@gmail.comwrote: I have tried this code but it gives error for document function. as-- LE.rb:7:in `method_missing': Document (WIN32OLERuntimeError) OLE error code:80004005 in Unknown No Description HRESULT error code:0x80020009 Exception occurred. from OLE.rb:7 Exit code: 1 On Mar 26, 11:35 am, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Guys, I want to create a method by which I can perform any operation on a object by just passing the identifier of that object. In Watir , we need to call specific methods for calling a particular object as-- ie.text_filed(:id, 'Text1').set('Test') So, Can I impelment my method using win32OLE . e.g. -- require 'win32ole' ie = WIN32OLE.new('InternetExplorer.Application') ie.visible = true ie.navigate(http://www.google.com;) ie.document.all[q].value = pickaxe ie.document.all[btnG].click Is this a good way to create a function which performs an operation on all object types by just passing identifier as -- def click(sObjectId) ie.document.all[sObjectId].click end Please reply. I will be thankful for your cooperation. Thanks Vikas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: OLE
Hi Thanks for the reply. Can you please give me some where I can find the details. Actually I found this code on --http://www.kohl.ca/blog/archives/ 40.html Please guide me. Thanks Vikas On Mar 26, 12:07 pm, Angrez Singh ang...@gmail.com wrote: ie.document is method of watir and not OLE Object of IE. You need to study more about IE ole object if you want to do that. - Angrez On Thu, Mar 26, 2009 at 12:07 PM, Vikas Tulashyam vtulash...@gmail.comwrote: I have tried this code but it gives error for document function. as-- LE.rb:7:in `method_missing': Document (WIN32OLERuntimeError) OLE error code:80004005 in Unknown No Description HRESULT error code:0x80020009 Exception occurred. from OLE.rb:7 Exit code: 1 On Mar 26, 11:35 am, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Guys, I want to create a method by which I can perform any operation on a object by just passing the identifier of that object. In Watir , we need to call specific methods for calling a particular object as-- ie.text_filed(:id, 'Text1').set('Test') So, Can I impelment my method using win32OLE . e.g. -- require 'win32ole' ie = WIN32OLE.new('InternetExplorer.Application') ie.visible = true ie.navigate(http://www.google.com;) ie.document.all[q].value = pickaxe ie.document.all[btnG].click Is this a good way to create a function which performs an operation on all object types by just passing identifier as -- def click(sObjectId) ie.document.all[sObjectId].click end Please reply. I will be thankful for your cooperation. Thanks Vikas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: OLE
If you do google search for Internet Explorer Object you'll find this link http://msdn.microsoft.com/en-us/library/aa752084(VS.85).aspx - Angrez On Thu, Mar 26, 2009 at 1:01 PM, Vikas Tulashyam vtulash...@gmail.comwrote: Hi Thanks for the reply. Can you please give me some where I can find the details. Actually I found this code on --http://www.kohl.ca/blog/archives/ 40.html http://www.kohl.ca/blog/archives/%0A40.html Please guide me. Thanks Vikas On Mar 26, 12:07 pm, Angrez Singh ang...@gmail.com wrote: ie.document is method of watir and not OLE Object of IE. You need to study more about IE ole object if you want to do that. - Angrez On Thu, Mar 26, 2009 at 12:07 PM, Vikas Tulashyam vtulash...@gmail.com wrote: I have tried this code but it gives error for document function. as-- LE.rb:7:in `method_missing': Document (WIN32OLERuntimeError) OLE error code:80004005 in Unknown No Description HRESULT error code:0x80020009 Exception occurred. from OLE.rb:7 Exit code: 1 On Mar 26, 11:35 am, Vikas Tulashyam vtulash...@gmail.com wrote: Hi Guys, I want to create a method by which I can perform any operation on a object by just passing the identifier of that object. In Watir , we need to call specific methods for calling a particular object as-- ie.text_filed(:id, 'Text1').set('Test') So, Can I impelment my method using win32OLE . e.g. -- require 'win32ole' ie = WIN32OLE.new('InternetExplorer.Application') ie.visible = true ie.navigate(http://www.google.com;) ie.document.all[q].value = pickaxe ie.document.all[btnG].click Is this a good way to create a function which performs an operation on all object types by just passing identifier as -- def click(sObjectId) ie.document.all[sObjectId].click end Please reply. I will be thankful for your cooperation. Thanks Vikas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: OLE
On Thu, Mar 26, 2009 at 07:35, Vikas Tulashyam vtulash...@gmail.com wrote: I want to create a method by which I can perform any operation on a object by just passing the identifier of that object. There is already a jira ticket for that, but it is not done yet: http://jira.openqa.org/browse/WTR-103 Vote for it and it will get higher on list of things to do. In the meantime, you can use xpath: http://wiki.openqa.org/display/WTR/XPath Something like: ie.element_by_xpath(//area[contains(@href , 'PieChart.html')]/).click Željko --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---