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<http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to