[wtr-general] OLE error code:80004005 in htmlfile

2010-11-22 Thread Kingson Zhou
Hi all,
There are a login module, i want use watir realize auto login, but it always
failed.
I need help for error as below, thanks.
*
*
1.My HTML code:

div id=member
form action=/j_spring_security_check method=post 
id=form_header
input type=hidden id=redirectURL 
name=redirectURL/  
div class=login_barinput type=text class=txt lfloat
name=j_username value=email: onFocus=focusUsername(this);
onBlur=blurUsername(this); maxlength=100//div
div class=login_barinput type=text class=pword 
lfloat
name=j_password value=password: onFocus=focusPwd(this);
onBlur=blurPwd(this); maxlength=30//div
input name=_spring_security_remember_me id=ckb 
class=lfloat
cb type=checkbox /
label class=lfloat for=ckbremeber me/label

input type=submit  class=login lfloat png 
value=click
diva href=/account/register
view-source:http://172.16.214.23/account/register class=reg lfloat
pngsing up/a/div
/form
/div

2.watir code:

require 'watir'   # the watir controller

 ie = Watir::IE.start(http://172.16.214.23;)
ie.text_field(:name, j_username).set(xiaomayi0...@gmail.com)
ie.text_field(:name, j_password).set(123456)
ie.button(:value, click).click
if  ie.contains_text(Programming Ruby)
  puts Test Passed. Found the test string: 'Programming Ruby'.
Actual Results match Expected Results.
  else
  puts Test Failed! Could not find: 'Programming Ruby'
end

3.After executed, output results:
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/input_elements.rb:375:in
`method_missing': fireEvent (WIN32OLERuntimeError)

OLE error code:80004005 in htmlfile

  Unspecified error。

HRESULT error code:0x80020009

  accidents。 from
C:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.7/lib/watir/input_elements.rb:375:in
`set'

from E:/ruby/RubyApplication1/lib/main.rb:4

-- 
-
工作的层次(依靠谱程度从低到高)=有做->做完->做对->做好->帮助他人做好
My Blog:http://xiaomayi0323.byethost7.com/

-- 
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] OLE error code 0x80020009

2010-11-21 Thread sivam
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 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


Re: [wtr-general] OLE error code 0x80020009

2010-11-21 Thread Hrishikesh Bose
it happens sometimes when frames are used. try to visit the following url
http://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 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.comhttp://groups.google.com/group/watir-general%0awatir-general+unsubscr...@googlegroups.com


-- 
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] OLE error code:80070005

2010-10-22 Thread Hrishikesh Bose
my script was working properly before. today i am getting the following
error
C:/Ruby186/lib/ruby/gems/1.8/gems/watir-1.6.6/lib/watir/frame.rb:52:in
`method_m
issing': document (WIN32OLERuntimeError)
OLE error code:80070005 in Unknown
  Access is denied

what can be th reason.

 my ole corrupted or i am using old ruby and watir

-- 
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] OLE

2009-03-26 Thread Vikas Tulashyam

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
-~--~~~~--~~--~--~---