[wtr-general] Re: How to determine a container type from a variable assignment

2008-10-23 Thread Bret Pettichord
Great. I hope others reading can also understand this solution and realize that it represents a general solution to a common problem that people often ask about. The problem: How do i find a page element that meets a complex set of criteria, possibly including relationships with other objects.

[wtr-general] Re: How to determine a container type from a variable assignment

2008-10-23 Thread niartseoj
Hello Bret, Thanks for taking time to help me. You were able to descripher my example perfectly and your suggestion works great. I learned a great deal from this example, thanks again for your time. On Oct 23, 12:04 pm, Bret Pettichord <[EMAIL PROTECTED]> wrote: > Thanks for sharing your code.

[wtr-general] Re: How to determine a container type from a variable assignment

2008-10-23 Thread Bret Pettichord
Thanks for sharing your code. I *think* i know what you are trying to do, and there is a way to do this in Watir that is elegant and so far, undocumented. I will try to explain it, and if this doesn't work for you, please provide more information about what you want to do (and less about how y

[wtr-general] Re: How to determine a container type from a variable assignment

2008-10-23 Thread niartseoj
I was able to get my script to work using an exists? however i'm still curious as to how to evaluate if an object of if the container type. Been looking through element.rb and contain.rb but my ruby skills are neewbie level 1. Thanks for your time On Oct 23, 10:13 am, niartseoj <[EMAIL PROTECTED

[wtr-general] Re: How to determine a container type from a variable assignment

2008-10-23 Thread niartseoj
Well the exist? did not work as i need to handle situations when the $atag variable is not assigned.. On Oct 23, 10:49 am, niartseoj <[EMAIL PROTECTED]> wrote: > I was able to get my script to work using an exists? however i'm still > curious as to how to evaluate if an object of if the container