[Wtr-general] (no subject)
Hi,We are trying to use Watir for testing our application and there are two majarissues we are facing at present. First one is in catching the navigation exception or other system exception. Second is while accessing the the contents of iframe which changes dynamically.Please, if anyone hasany idea aboutthis then please reply.Thanks, Asmita Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] (no subject)
What do you mean by catching the navigation exception or other system exception. On 12/28/05, Asmita Srivastava [EMAIL PROTECTED] wrote: Hi, We are trying to use Watir for testing our application and there are two majar issues we are facing at present. First one is in catching the navigation exception or other system exception. Second is while accessing the the contents of iframe which changes dynamically. Please, if anyone has any idea about this then please reply. Thanks, Asmita Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
[Wtr-general] Accessing div attributes
Title: Accessing div attributes I can find that div using xpath or by id but I do not seem to be able to get to the visibility attribute div style=position: absolute; visibility: visible; top: 0pt; left: 0pt; id=xxx /div Is this doable? Thanks. Pat. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Accessing div attributes
I would grab the outerHtml attribute of the div object and then use a regular expression to dig out whatever attribute you are after ... ... I believe that you can use :html as a how parameter now. ( yes/no, can anybody confirm deny ) j. On 12/28/05, Pat Cappelaere [EMAIL PROTECTED] wrote: I can find that div using xpath or by id but I do not seem to be able to get to the visibility attribute div style=position: absolute; visibility: visible; top: 0pt; left: 0pt; id=xxx /div Is this doable? Thanks. Pat. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general -- Remember. Understand. Believe. Yield! - http://ruby-lang.org; Jeff Wood ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Accessing div attributes
On 12/28/05, Pat Cappelaere [EMAIL PROTECTED] wrote: I can find that div using xpath or by id but I do not seem to be able to get to the visibility attribute div style=position: absolute; visibility: visible; top: 0pt; left: 0pt; id=xxx /div Is this doable? ie.div(:id, xxx).ole_element.style.visibility ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
Re: [Wtr-general] Accessing div attributes
It was called ole_object in 1.4.1, and has been renamed in 1.5 to ole_element.On 12/28/05, Pat Cappelaere [EMAIL PROTECTED] wrote: This would be doable but ole_element is an undefined method in watir 1.4.1 I will try against the head version. Thanks again. Pat. ___ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general