[wtr-general] Test if frame exists to avoid locate error (source code)

2010-08-20 Thread pierrelebai...@gmail.com
Hi, I write a little procedure to test if a frame exists before access a object and have an error by locate method if the frames doesn't exist. before having an exists? methode in the next watir version ? def existsFrame(myIe,frameName=) begin if frameName != myFrame =

Re: [wtr-general] Test if frame exists to avoid locate error (source code)

2010-08-20 Thread Ethan
how is this any different than ie.frame(:name, mainFrame).exists? On Fri, Aug 20, 2010 at 04:43, pierrelebai...@gmail.com pierrelebai...@gmail.com wrote: Hi, I write a little procedure to test if a frame exists before access a object and have an error by locate method if the frames