Hi,

html CODE:

<div class="flash-initial-state" style="display: none; overflow: hidden;">
<form class="flash-form" style="display: none;">
<input type="hidden" name="uploader_type" value="Web_Flash">
<input type="hidden" name="return_address" value="www.youtube.com">
<input type="hidden" name="json_reply" value="1">

<input type="hidden" name="action_postvideo" value="1">
<input type="hidden" name="ismultiflash" value="1">
<input type="hidden" name="upload_key"
value="2F413ADE7F2472C2-44113B402E1726D1">
</form>
<input type="button" class="flash-upload-button" value="Upload Video"
style="float: right;">
<span class="file-form-instructions">Press "Upload Video" to select and
upload another video file.</span>
</div>


Awaiting reply...

Thanks


On Sat, Jul 18, 2009 at 2:23 PM, Raveendran P
<raveend...@railsfactory.org>wrote:

> Hi All,
>
> require 'rubygems'
> require 'watir'
> $ie=Watir::IE.new
> $ie.goto("http://www.youtube.com/";)
> sleep(2)
> $ie.link(:text, 'Sign In').click
> sleep(2)
> $ie.form(:id, 'gaia_loginform').text_field(:id, 'Email').set('jazzezravi')
> $ie.form(:id, 'gaia_loginform').text_field(:id, 'Passwd').set('jazzez')
> $ie.button(:name, 'signIn').click
> sleep(2)
> $ie.link(:text, 'Upload Video File').click
> sleep(5)
> $ie.button(:value,"Upload Video").click
>
> When i run this code The error says :
>
> c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in
> `assert_enabled': object value and Upload Video is disabled
> (Watir::Exception::ObjectDisabledException)
>     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 main.rb:25
>
> Any idea ? I need to click the button and give the URL for further actions
>
> awaiting reply...
>
> >
>


-- 
Regards,
P.Raveendran

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

Reply via email to