Finding dynamic Div tag using its innertext

Hi all,

I am using watir , in that have a scenario where they change a innertext
of div tag using javascript.Some thing like
Onclick of button they change innertext of div tag. I want to find that
dynamic div tag using the innertext (Inner text will be known & it’s
expected result),please some body tell how to solve this problem.

Note : Dynamic Div tag means they are generating div tag using
javascript at runtime.

thanks
Vinod

browser.div(:text, ‘dynamic text’).

On Thu, Apr 22, 2010 at 5:18 AM, Simbolla S.
[email protected]wrote:

thanks
Vinod

Posted via http://www.ruby-forum.com/.


Bret P.
Lead Developer, Watir, www.watir.com

Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Bret P. wrote:

browser.div(:text, ‘dynamic text’).

On Thu, Apr 22, 2010 at 5:18 AM, Simbolla S.
[email protected]wrote:

thanks
Vinod

Posted via http://www.ruby-forum.com/.


Bret P.
Lead Developer, Watir, www.watir.com

Blog, www.io.com/~wazmo/blog
Twitter, www.twitter.com/bpettichord

Thanks Bret for the fast response. i used another way to solve it

ie.text.include? str

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs