[wtr-general] Re: How to click the link in dynamically generated ajax content?
Hi Raveendran, It works.. Thanks a lot.. Regards Durgesh. --- On Thu, 13/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Thursday, 13 August, 2009, 8:40 PM Hi Durgesh, Are asking this code? check=browser.link(:id,PageLinkDisabled).enabled? if check == true It is Enabled. Continue your work else It is Disabled end If yes then just use it otherwise :) Thanks On Thu, Aug 13, 2009 at 6:19 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Raveendran, I want to make sure that Previous link is disabled. So I need to use the second method given by you. But do I need to pass the parameter to it as shown below? assert(browser.link(:id,PageLinkDisabled).exists?) How can use the given method? Thanks Regards Durgesh. --- On Thu, 13/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Thursday, 13 August, 2009, 10:06 AM Hi Durgesh, Way 1 -- use sleep commands until the link was enabled. way 2 -- Still the field disabled then Watir gem code is here ... # File lib/watir/element.rb, line 283 def enabled? assert_exists return ! disabled end Thanks On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Reveendran, Thanks a lot for the given code. But the code which I am getting is as follows: div class=prev_arrow_img a count=0 class=PageLinkDisable href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a /div Currently the 'Previous' link is disabled. But when I use verify statement it does not recognized that link is disabled. Thanks Regards Durgesh. --- On Mon, 10/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Monday, 10 August, 2009, 9:51 AM Hi Durgesh, See the below example. 1. Uploading some imsges 2. In Runtime -- I will get some code in BOLDED Div's. I collected the info from that div and checked it. Still you are not clear then just copy and paste the Source code for that page. I will try more. CODE: def check_status sleep(2) @status=$ie.div(:class,display-states).html @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s @su...@block.include?(Success) @que...@block.include?(Queued) @uploadi...@block.include?(Uploading) @canc...@block.include?(Cancelled) @err...@block.include?(Error) if @succ == true return end if @queue == true sleep(20) check_status end if @uploading== true sleep(10) check_status end if @cancel== true $ie.link(:text,Retry) sleep(20) check_status end if @error== true $ie.link(:text,Retry) sleep(20) check_status end end end Thanks On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On Fri, 7/8/09, Raveendran P raveend...@railsfactory.org wrote: From: Raveendran P raveend...@railsfactory.org Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Friday, 7 August, 2009, 2:58 PM Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh -- Regards, P.Raveendran See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz -- Regards, P.Raveendran http://raveendran.wordpress.com See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz -- Regards, P.Raveendran http://raveendran.wordpress.com Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8 -- Regards, P.Raveendran http://raveendran.wordpress.com Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com --~--~-~--~~~---~--~~ You received this message because you are
[wtr-general] Re: How to click the link in dynamically generated ajax content?
Hi Durgesh, Cool ! Let me know which code solved your issue ? On Fri, Aug 14, 2009 at 4:06 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote: Hi Raveendran, It works.. Thanks a lot... Regards Durgesh. --- On *Thu, 13/8/09, Raveendran P jazzezr...@gmail.com* wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Thursday, 13 August, 2009, 8:40 PM Hi Durgesh, Are asking this code? check=browser.link(:id,PageLinkDisabled).enabled? if check == true It is Enabled. Continue your work else It is Disabled end If yes then just use it otherwise :) Thanks On Thu, Aug 13, 2009 at 6:19 PM, Durgesh Nadkarni fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in wrote: Hi Raveendran, I want to make sure that Previous link is disabled. So I need to use the second method given by you. But do I need to pass the parameter to it as shown below? assert(browser.link(:id,PageLinkDisabled).exists?) How can use the given method? Thanks Regards Durgesh. --- On *Thu, 13/8/09, Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com * wrote: From: Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com Date: Thursday, 13 August, 2009, 10:06 AM Hi Durgesh, Way 1 -- use sleep commands until the link was enabled. way 2 -- Still the field disabled then Watir gem code is here ... # File lib/watir/element.rb, line 283 def enabled? assert_exists return ! disabled end Thanks On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in wrote: Hi Reveendran, Thanks a lot for the given code. But the code which I am getting is as follows: div class=prev_arrow_img a count=0 class=PageLinkDisable href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a /div Currently the 'Previous' link is disabled. But when I use verify statement it does not recognized that link is disabled. Thanks Regards Durgesh. --- On *Mon, 10/8/09, Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com * wrote: From: Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail..com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com Date: Monday, 10 August, 2009, 9:51 AM Hi Durgesh, See the below example. 1. Uploading some imsges 2. In Runtime -- I will get some code in BOLDED Div's. I collected the info from that div and checked it. Still you are not clear then just copy and paste the Source code for that page. I will try more. CODE: def check_status sleep(2) * @status=$ie.div(:class,display-states).html @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s * @su...@block.include?(Success) @que...@block.include?(Queued) @uploadi...@block.include?(Uploading) @canc...@block.include?(Cancelled) @err...@block.include?(Error) if @succ == true return end if @queue == true sleep(20) check_status end if @uploading== true sleep(10) check_status end if @cancel== true $ie.link(:text,Retry) sleep(20) check_status end if @error== true $ie.link(:text,Retry) sleep(20) check_status end end end Thanks On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in wrote: Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On *Fri, 7/8/09, Raveendran P raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org * wrote: From: Raveendran P raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com Date: Friday, 7 August, 2009, 2:58 PM Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.comhttp://mc/compose?to=durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh -- Regards, P.Raveendran -- See the Web's breaking stories, chosen by people like
[wtr-general] Re: How to click the link in dynamically generated ajax content?
Hi, The same code which you have given in the previous mail. check=browser.link(:id,PageLinkDisabled).enabled? if check == true It is Enabled. Continue your work else It is Disabled end Regards Durgesh. --- On Fri, 14/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Friday, 14 August, 2009, 4:08 PM Hi Durgesh, Cool ! Let me know which code solved your issue ? On Fri, Aug 14, 2009 at 4:06 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Raveendran, It works.. Thanks a lot... Regards Durgesh. --- On Thu, 13/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Thursday, 13 August, 2009, 8:40 PM Hi Durgesh, Are asking this code? check=browser.link(:id,PageLinkDisabled).enabled? if check == true It is Enabled. Continue your work else It is Disabled end If yes then just use it otherwise :) Thanks On Thu, Aug 13, 2009 at 6:19 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Raveendran, I want to make sure that Previous link is disabled. So I need to use the second method given by you. But do I need to pass the parameter to it as shown below? assert(browser.link(:id,PageLinkDisabled).exists?) How can use the given method? Thanks Regards Durgesh. --- On Thu, 13/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Thursday, 13 August, 2009, 10:06 AM Hi Durgesh, Way 1 -- use sleep commands until the link was enabled. way 2 -- Still the field disabled then Watir gem code is here ... # File lib/watir/element.rb, line 283 def enabled? assert_exists return ! disabled end Thanks On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Reveendran, Thanks a lot for the given code. But the code which I am getting is as follows: div class=prev_arrow_img a count=0 class=PageLinkDisable href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a /div Currently the 'Previous' link is disabled. But when I use verify statement it does not recognized that link is disabled. Thanks Regards Durgesh. --- On Mon, 10/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Monday, 10 August, 2009, 9:51 AM Hi Durgesh, See the below example. 1. Uploading some imsges 2. In Runtime -- I will get some code in BOLDED Div's. I collected the info from that div and checked it. Still you are not clear then just copy and paste the Source code for that page. I will try more. CODE: def check_status sleep(2) @status=$ie.div(:class,display-states).html @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s @su...@block.include?(Success) @que...@block.include?(Queued) @uploadi...@block.include?(Uploading) @canc...@block.include?(Cancelled) @err...@block.include?(Error) if @succ == true return end if @queue == true sleep(20) check_status end if @uploading== true sleep(10) check_status end if @cancel== true $ie.link(:text,Retry) sleep(20) check_status end if @error== true $ie.link(:text,Retry) sleep(20) check_status end end end Thanks On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On Fri, 7/8/09, Raveendran P raveend...@railsfactory.org wrote: From: Raveendran P raveend...@railsfactory.org Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Friday, 7 August, 2009, 2:58 PM Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh -- Regards, P.Raveendran See the Web's breaking stories,
[wtr-general] Re: How to click the link in dynamically generated ajax content?
Fine. On Fri, Aug 14, 2009 at 5:48 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote: Hi, The same code which you have given in the previous mail. check=browser.link(:id,PageLinkDisabled).enabled? if check == true It is Enabled. Continue your work else It is Disabled end Regards Durgesh. --- On *Fri, 14/8/09, Raveendran P jazzezr...@gmail.com* wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Friday, 14 August, 2009, 4:08 PM Hi Durgesh, Cool ! Let me know which code solved your issue ? On Fri, Aug 14, 2009 at 4:06 PM, Durgesh Nadkarni fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in wrote: Hi Raveendran, It works.. Thanks a lot... Regards Durgesh. --- On *Thu, 13/8/09, Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com * wrote: From: Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com Date: Thursday, 13 August, 2009, 8:40 PM Hi Durgesh, Are asking this code? check=browser.link(:id,PageLinkDisabled).enabled? if check == true It is Enabled. Continue your work else It is Disabled end If yes then just use it otherwise :) Thanks On Thu, Aug 13, 2009 at 6:19 PM, Durgesh Nadkarni fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in wrote: Hi Raveendran, I want to make sure that Previous link is disabled. So I need to use the second method given by you. But do I need to pass the parameter to it as shown below? assert(browser.link(:id,PageLinkDisabled).exists?) How can use the given method? Thanks Regards Durgesh. --- On *Thu, 13/8/09, Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com * wrote: From: Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com Date: Thursday, 13 August, 2009, 10:06 AM Hi Durgesh, Way 1 -- use sleep commands until the link was enabled. way 2 -- Still the field disabled then Watir gem code is here ... # File lib/watir/element.rb, line 283 def enabled? assert_exists return ! disabled end Thanks On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni fordurg...@yahoo.co.in http://mc/compose?to=fordurg...@yahoo.co.inwrote: Hi Reveendran, Thanks a lot for the given code. But the code which I am getting is as follows: div class=prev_arrow_img a count=0 class=PageLinkDisable href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a /div Currently the 'Previous' link is disabled. But when I use verify statement it does not recognized that link is disabled. Thanks Regards Durgesh. --- On *Mon, 10/8/09, Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com * wrote: From: Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail..com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com Date: Monday, 10 August, 2009, 9:51 AM Hi Durgesh, See the below example. 1. Uploading some imsges 2. In Runtime -- I will get some code in BOLDED Div's. I collected the info from that div and checked it. Still you are not clear then just copy and paste the Source code for that page. I will try more. CODE: def check_status sleep(2) * @status=$ie.div(:class,display-states).html @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s * @su...@block.include?(Success) @que...@block.include?(Queued) @uploadi...@block.include?(Uploading) @canc...@block.include?(Cancelled) @err...@block.include?(Error) if @succ == true return end if @queue == true sleep(20) check_status end if @uploading== true sleep(10) check_status end if @cancel== true $ie.link(:text,Retry) sleep(20) check_status end if @error== true $ie.link(:text,Retry) sleep(20) check_status end end end Thanks On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.in http://mc/compose?to=fordurg...@yahoo.co.inwrote: Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On *Fri, 7/8/09, Raveendran P raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org * wrote: From: Raveendran P
[wtr-general] Re: How to click the link in dynamically generated ajax content?
Hi Raveendran, I want to make sure that Previous link is disabled. So I need to use the second method given by you. But do I need to pass the parameter to it as shown below? assert(browser.link(:id,PageLinkDisabled).exists?) How can use the given method? Thanks Regards Durgesh. --- On Thu, 13/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Thursday, 13 August, 2009, 10:06 AM Hi Durgesh, Way 1 -- use sleep commands until the link was enabled. way 2 -- Still the field disabled then Watir gem code is here ... # File lib/watir/element.rb, line 283 def enabled? assert_exists return ! disabled end Thanks On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Reveendran, Thanks a lot for the given code. But the code which I am getting is as follows: div class=prev_arrow_img a count=0 class=PageLinkDisable href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a /div Currently the 'Previous' link is disabled. But when I use verify statement it does not recognized that link is disabled. Thanks Regards Durgesh. --- On Mon, 10/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Monday, 10 August, 2009, 9:51 AM Hi Durgesh, See the below example. 1. Uploading some imsges 2. In Runtime -- I will get some code in BOLDED Div's. I collected the info from that div and checked it. Still you are not clear then just copy and paste the Source code for that page. I will try more. CODE: def check_status sleep(2) @status=$ie.div(:class,display-states).html @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s @su...@block.include?(Success) @que...@block.include?(Queued) @uploadi...@block.include?(Uploading) @canc...@block.include?(Cancelled) @err...@block.include?(Error) if @succ == true return end if @queue == true sleep(20) check_status end if @uploading== true sleep(10) check_status end if @cancel== true $ie.link(:text,Retry) sleep(20) check_status end if @error== true $ie.link(:text,Retry) sleep(20) check_status end end end Thanks On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On Fri, 7/8/09, Raveendran P raveend...@railsfactory.org wrote: From: Raveendran P raveend...@railsfactory.org Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Friday, 7 August, 2009, 2:58 PM Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh -- Regards, P.Raveendran See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz -- Regards, P.Raveendran http://raveendran.wordpress.com See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz -- Regards, P.Raveendran http://raveendran.wordpress.com Looking for local information? Find it on Yahoo! Local http://in.local.yahoo.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] Re: How to click the link in dynamically generated ajax content?
Hi Durgesh, Are asking this code? check=browser.link(:id,PageLinkDisabled).enabled? if check == true It is Enabled. Continue your work else It is Disabled end If yes then just use it otherwise :) Thanks On Thu, Aug 13, 2009 at 6:19 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote: Hi Raveendran, I want to make sure that Previous link is disabled. So I need to use the second method given by you. But do I need to pass the parameter to it as shown below? assert(browser.link(:id,PageLinkDisabled).exists?) How can use the given method? Thanks Regards Durgesh. --- On *Thu, 13/8/09, Raveendran P jazzezr...@gmail.com* wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Thursday, 13 August, 2009, 10:06 AM Hi Durgesh, Way 1 -- use sleep commands until the link was enabled. way 2 -- Still the field disabled then Watir gem code is here ... # File lib/watir/element.rb, line 283 def enabled? assert_exists return ! disabled end Thanks On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in wrote: Hi Reveendran, Thanks a lot for the given code. But the code which I am getting is as follows: div class=prev_arrow_img a count=0 class=PageLinkDisable href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a /div Currently the 'Previous' link is disabled. But when I use verify statement it does not recognized that link is disabled. Thanks Regards Durgesh. --- On *Mon, 10/8/09, Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com * wrote: From: Raveendran P jazzezr...@gmail.comhttp://mc/compose?to=jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com Date: Monday, 10 August, 2009, 9:51 AM Hi Durgesh, See the below example. 1. Uploading some imsges 2. In Runtime -- I will get some code in BOLDED Div's. I collected the info from that div and checked it. Still you are not clear then just copy and paste the Source code for that page. I will try more. CODE: def check_status sleep(2) * @status=$ie.div(:class,display-states).html @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s * @su...@block.include?(Success) @que...@block.include?(Queued) @uploadi...@block.include?(Uploading) @canc...@block.include?(Cancelled) @err...@block.include?(Error) if @succ == true return end if @queue == true sleep(20) check_status end if @uploading== true sleep(10) check_status end if @cancel== true $ie.link(:text,Retry) sleep(20) check_status end if @error== true $ie.link(:text,Retry) sleep(20) check_status end end end Thanks On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in wrote: Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On *Fri, 7/8/09, Raveendran P raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org * wrote: From: Raveendran P raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com Date: Friday, 7 August, 2009, 2:58 PM Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.comhttp://mc/compose?to=durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh -- Regards, P.Raveendran -- See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/ -- Regards, P.Raveendran http://raveendran.wordpress.com -- See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/ -- Regards, P.Raveendran http://raveendran.wordpress.com -- Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8http://in.rd.yahoo.com/tagline_ie8_1/*http://downloads.yahoo.com/in/internetexplorer/ -- Regards, P.Raveendran http://raveendran.wordpress.com
[wtr-general] Re: How to click the link in dynamically generated ajax content?
Hi Durgesh, Way 1 -- use sleep commands until the link was enabled. way 2 -- Still the field disabled then Watir gem code is here ... # File lib/watir/element.rb, line 283 def enabled? assert_exists return ! disabled end Thanks On Tue, Aug 11, 2009 at 6:12 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote: Hi Reveendran, Thanks a lot for the given code. But the code which I am getting is as follows: div class=prev_arrow_img a count=0 class=PageLinkDisable href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a /div Currently the 'Previous' link is disabled. But when I use verify statement it does not recognized that link is disabled. Thanks Regards Durgesh. --- On *Mon, 10/8/09, Raveendran P jazzezr...@gmail.com* wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Monday, 10 August, 2009, 9:51 AM Hi Durgesh, See the below example. 1. Uploading some imsges 2. In Runtime -- I will get some code in BOLDED Div's. I collected the info from that div and checked it. Still you are not clear then just copy and paste the Source code for that page. I will try more. CODE: def check_status sleep(2) * @status=$ie.div(:class,display-states).html @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s * @su...@block.include?(Success) @que...@block.include?(Queued) @uploadi...@block.include?(Uploading) @canc...@block.include?(Cancelled) @err...@block.include?(Error) if @succ == true return end if @queue == true sleep(20) check_status end if @uploading== true sleep(10) check_status end if @cancel== true $ie.link(:text,Retry) sleep(20) check_status end if @error== true $ie.link(:text,Retry) sleep(20) check_status end end end Thanks On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.inhttp://mc/compose?to=fordurg...@yahoo.co.in wrote: Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On *Fri, 7/8/09, Raveendran P raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org * wrote: From: Raveendran P raveend...@railsfactory.orghttp://mc/compose?to=raveend...@railsfactory.org Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.comhttp://mc/compose?to=watir-gene...@googlegroups.com Date: Friday, 7 August, 2009, 2:58 PM Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.comhttp://mc/compose?to=durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh -- Regards, P.Raveendran -- See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/ -- Regards, P.Raveendran http://raveendran.wordpress.com -- See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/ -- Regards, P.Raveendran http://raveendran.wordpress.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] Re: How to click the link in dynamically generated ajax content?
Hi Reveendran, Thanks a lot for the given code. But the code which I am getting is as follows: div class=prev_arrow_img a count=0 class=PageLinkDisable href=/RSCpubs.ePlatform.Web/en/Search/JournalResultPrevious/a /div Currently the 'Previous' link is disabled. But when I use verify statement it does not recognized that link is disabled. Thanks Regards Durgesh. --- On Mon, 10/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Monday, 10 August, 2009, 9:51 AM Hi Durgesh, See the below example. 1. Uploading some imsges 2. In Runtime -- I will get some code in BOLDED Div's. I collected the info from that div and checked it. Still you are not clear then just copy and paste the Source code for that page. I will try more. CODE: def check_status sleep(2) @status=$ie.div(:class,display-states).html @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s @su...@block.include?(Success) @que...@block.include?(Queued) @uploadi...@block.include?(Uploading) @canc...@block.include?(Cancelled) @err...@block.include?(Error) if @succ == true return end if @queue == true sleep(20) check_status end if @uploading== true sleep(10) check_status end if @cancel== true $ie.link(:text,Retry) sleep(20) check_status end if @error== true $ie.link(:text,Retry) sleep(20) check_status end end end Thanks On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.in wrote: Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On Fri, 7/8/09, Raveendran P raveend...@railsfactory.org wrote: From: Raveendran P raveend...@railsfactory.org Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Friday, 7 August, 2009, 2:58 PM Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh -- Regards, P.Raveendran See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz -- Regards, P.Raveendran http://raveendran.wordpress.com Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. http://downloads.yahoo.com/in/internetexplorer/ --~--~-~--~~~---~--~~ 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: How to click the link in dynamically generated ajax content?
Hi Durgesh, See the below example. 1. Uploading some imsges 2. In Runtime -- I will get some code in BOLDED Div's. I collected the info from that div and checked it. Still you are not clear then just copy and paste the Source code for that page. I will try more. CODE: def check_status sleep(2) *@status=$ie.div(:class,display-states).html @blo...@status.scan(%r{style=DISPLAY: block(.*?)/div}im).flatten.to_s * @su...@block.include?(Success) @que...@block.include?(Queued) @uploadi...@block.include?(Uploading) @canc...@block.include?(Cancelled) @err...@block.include?(Error) if @succ == true return end if @queue == true sleep(20) check_status end if @uploading== true sleep(10) check_status end if @cancel== true $ie.link(:text,Retry) sleep(20) check_status end if @error== true $ie.link(:text,Retry) sleep(20) check_status end end end Thanks On Fri, Aug 7, 2009 at 6:13 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote: Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On *Fri, 7/8/09, Raveendran P raveend...@railsfactory.org* wrote: From: Raveendran P raveend...@railsfactory.org Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Friday, 7 August, 2009, 2:58 PM Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.comhttp://mc/compose?to=durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh -- Regards, P.Raveendran -- See the Web's breaking stories, chosen by people like you. Check out Yahoo! Buzz http://in.rd.yahoo.com/tagline_buzz_1/*http://in.buzz.yahoo.com/ -- Regards, P.Raveendran http://raveendran.wordpress.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] Re: How to click the link in dynamically generated ajax content?
Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh -- 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: How to click the link in dynamically generated ajax content?
Hi Raveendran, That HTML code is getting during runtime. Thats why we cannot paste the html code for that link. Is there any other method through which we can recognized that link? Thanks Regards Durgesh. --- On Fri, 7/8/09, Raveendran P raveend...@railsfactory.org wrote: From: Raveendran P raveend...@railsfactory.org Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date: Friday, 7 August, 2009, 2:58 PM Hi Durgesh, is it possible to paste the html code for that link here ? Thanks, Raveendran http://raveendran.wordpress.com On Fri, Aug 7, 2009 at 1:44 PM, Durgesh durgeshnadka...@gmail.com wrote: Hi, I want to click one link which is coming from dynamically generated ajax contents.The source could not be found when I do view source. Thanks Regards Durgesh -- Regards, P.Raveendran See the Web#39;s breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.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 -~--~~~~--~~--~--~---