[wtr-general] Re: Reg-Image(need help urgent)

2009-08-29 Thread Ila

Hi Tony,

The below error message i received

:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
`assert_exists': Unable to locate element, using :value,
submit (Watir::Exception::UnknownObjectException)
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
284:in `enabled?'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
56:in `assert_enabled'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
229:in `click!'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:
215:in `click'
from uploadimage.rb:15

Thanks

iLa

On Aug 28, 6:43 pm, Tony ynot...@gmail.com wrote:
 Hi iLa,

 try this 
 ie.image(:value, submit)

 Thanks,
 Tony
--~--~-~--~~~---~--~~
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: Reg-Image(need help urgent)

2009-08-29 Thread Ila

Hi

IE Developer toolbar (IE8)

while clicking Upload profile image icon the below dialog box will
open (designing Part(FYR))

Upload Image(Label Name)

Upload your Picture

Here one Text boxBrowse... (button)   -- If u r clicking browser
button it should open choose file to upload

Upload Image  Cancel (both is image buttons) -- While clicking Upload
image-- it should shows some error message .

cancel - the box should disappear.

Full coding - FYR

div class=popup-header
Upload Image
img id=status style=display: none; src=/images/progress.gif/
/div
div class=con-div1
div class=pop-content1
div id=errors style=display: none; /div
div style=padding: 10px;
iframe id=a-81449351 style=border: 0px none ; position: absolute;
left: -100px; width: 0px; height: 0px; src=about:blank
name=a-81449351
/iframe
form onsubmit=Element.show('status') target=a-81449351
enctype=multipart/form-data action=/hubs/upload_image/971406980?
iframe_remote=true method=post
p
label for=mugshot Upload Your Picture: /label
input id=hub_image_uploaded_data type=file size=28
name=hub_image[uploaded_data]/
/p
p
/p
br/
div class=submit-button-upload-image
/div
input type=image onclick=document.getElementById
('upload_image').style.display='none';return false; value=cancel
src=../images/upload_Image_cancel.gif/
/form
/div
/div


Thanks

iLa



On Aug 28, 7:22 pm, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Fri, Aug 28, 2009 at 3:08 PM, Ila sony.ilama...@gmail.com wrote:
         input type=image value=submit src=../images/

 upload_Image_new.gif/

  ie.button(:src, /upload_Image_new/).click

 It works for me. Please make sure you are at the right page. Can you find
 the button with tool like IE developer toolbar or Firebug?

 Željko
 --http://watirpodcast.com/
--~--~-~--~~~---~--~~
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] Reg-Image(need help urgent)

2009-08-28 Thread Ila

Hi

HTML Code

div class=submit-button-upload-image
input type=image value=submit src=../images/
upload_Image_new.gif/
  /div

Please any one let me know WATIR code for this.

I tried below code

ie.button(:src, /upload_Image_new/).click

Error Message

C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in
`assert_exists': Unable to locate element, using :src, /
upload_Image_new/ (Watir::Exception::UnknownObjectException)



* I am learning stage.

Regards

iLa
--~--~-~--~~~---~--~~
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] Reg- Iframe

2009-08-24 Thread Ila

Hi ,

HTML structure is like this,

iframe src=http://api.recaptcha.net/noscript?
k=6LcPZAIAAEl5g35rhVca-tkM3jI7CRjbtrtY width=500 height=300
frameborder=0
  /iframe
  br/
  textarea rows=3 name=recaptcha_challenge_field cols=40
  /textarea
  input type=hidden name=recaptcha_response_field
value=manual_challenge/
/noscript

could plz some one help this for watir code

Regards

iLa

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