[wtr-general] Embed tag - watir
Hi All, 1. One OBJECT is available. 2. The source code for the OBJECT is div id=uploaderapi_swf_placeholder embed id=uploaderapi_swf height=1 width=1 flashvars=apiId=uploaderapi_swfapiInit=uploaderapi_Ready style=left: 553.5px; top: 159px; width: 98px; height: 23px; allowscriptaccess=always wmode=transparent quality=high name=uploaderapi_swf src=http://s.ytimg.com/yt/swf/uploaderapi-vfl81865.swf; type=application/x-shockwave-flash/ /div 3. I need to click the OBJECT. I have tried: $ie.element_by_xpath(//emb...@id='uploaderapi_swf']) == main.rb:18: undefined method `click' for nil:NilClass (NoMethodError) *THE FULL CODE* is : require 'rubygems' require 'watir' $ie=Watir::IE.new #$ie.maximize() $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(2) #Here i am struggling to click the object upload video $ie.element_by_xpath(//emb...@id='uploaderapi_swf']) #== NEED HELP HERE Please help to do this -- 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Embed tag - watir
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... --~--~-~--~~~---~--~~ 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: asset_enabled error to click a button
Hi Venki, Any luck ? I am also facing the same issue. Please reply to me about this issue... Awaiting your reply.. On Sat, May 30, 2009 at 1:02 PM, Venkat venkateshla...@gmail.com wrote: I wrote a code to click on button ie.button(:id, action_button).click But I am getting following errors: C:\Documents and Settings\\Desktopruby two-minute.rb C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in `assert_e abled': object id and action_button is disabled (Watir::Exception::ObjectDisabl dException) from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:22 :in `click!' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:21 :in `click' from two-minute.rb:18 HTML Source code of the button div id=mid_row/div div id=bot_row button type=button class=button id=action_button/ button /div My guess is my syntax is right but still its not clicking on button. I am not sure why? -- 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 -~--~~~~--~~--~--~---
[wtr-general] Re: Embed tag - watir
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-instructionsPress 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.orgwrote: 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 -~--~~~~--~~--~--~---
[wtr-general] Re: asset_enabled error to click a button
Hi Raveendran, I think there could be a hidden button existed on the page with same properties of the button you are trying to click. Try to use index property along with the current button value property. Ex: ie.button(:id=/action_button/,:index=2).click try to verify index value with 1,2,3. I hope this will help you! Regards Siva Phaneendra Krapa On Jul 18, 2:16 pm, Raveendran P raveend...@railsfactory.org wrote: Hi Venki, Any luck ? I am also facing the same issue. Please reply to me about this issue... Awaiting your reply.. On Sat, May 30, 2009 at 1:02 PM, Venkat venkateshla...@gmail.com wrote: I wrote a code to click on button ie.button(:id, action_button).click But I am getting following errors: C:\Documents and Settings\\Desktopruby two-minute.rb C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:57:in `assert_e abled': object id and action_button is disabled (Watir::Exception::ObjectDisabl dException) from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:22 :in `click!' from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ element.rb:21 :in `click' from two-minute.rb:18 HTML Source code of the button div id=mid_row/div div id=bot_row button type=button class=button id=action_button/ button /div My guess is my syntax is right but still its not clicking on button. I am not sure why? -- Regards, P.Raveendran- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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] Does firewatir supports :slow, :fast, :zippy properties for control execution speed?
HI , Does firewatir support speed controls like in IE :fast,:zippy?. If not how can i control the execution speed of my test? Thanks in advance Regards Siva --~--~-~--~~~---~--~~ 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] Output of text method in both Watir fireWatir is different
HI, Output of .text method is different in both Watir and firewatir. In firewatir some JavaScript code is displayed along with browser text. Some Unicode characters like   are also displayed in the resulted text. Is it a defect in firewatir or do we have an other alternative for getting a proper text in firewatir? Thanks in advance Regards Siva. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---