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/JournalResult">Previous</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
-~----------~----~----~----~------~----~------~--~---

Reply via email to