I'm a bit stumped on why you are using 'enable?' as your method.. I'd think you'd be wanting to use exists? instead.
have you changed the text you are trying to match to force a failure, and verified that your test reports fail? On Dec 29 2010, 11:49 pm, Irfan Ahmed <[email protected]> wrote: > Oh at last I solved that problem. Actually when the steps come to match the > case I made a mistake in the last step so the light box wasn't appeared in > that step and watir could not find the text. > > > > > > > > > > On Thu, Dec 30, 2010 at 12:01 PM, Dave McNulla <[email protected]> wrote: > > Like Sharma and Željko said, we want to know what Watir sees. Even > > though your eyes see the text, Watir doesn't have human eyes. It > > parses html. We should be able to examine that html either by you > > posting it or providing a link. To post html, navigate until the > > lightbox appears, right click and select Show Source (or something > > similar), then copy the html, especially that part with the text you > > saw visually. > > > Thanks > > > Dave > > > On Dec 29, 12:54 am, Irfan Ahmed <[email protected]> wrote:t > > > browser.text.enable?("text").should == true. > > > It is not working. :( > > > as the text was from java script..:( > > > > On Wed, Dec 29, 2010 at 2:34 PM, Željko Filipin < > > > > [email protected]> wrote: > > > > On Tue, Dec 28, 2010 at 8:15 PM, Irfan Ahmed <[email protected]> > > wrote: > > > > > browser.text.enable?("text").should == true. > > > > > Please provide relevant HTML or link to the page (or similar one). > > > > > Željko > > > > -- > > > > watir.com - community manager > > > > watirpodcast.com - host > > > > testingpodcast.com - audio podcasts on software testing. all of them > > > > > -- > > > > Before posting, please readhttp://watir.com/support. In short: search > > > > before you ask, be nice. > > > > > [email protected] > > > >http://groups.google.com/group/watir-general > > > > [email protected]<watir-general%2Bunsubscribe@goog > > > > legroups.com> > > <watir-general%2Bunsubscribe@goog legroups.com> > > > > -- > > > Thanks, > > > Irfan Ahmed Rizvi (Sagar) > > > > cell Numbers: > > > +880 1676 246 991 > > > +880 1723 712 888 > > > >http://www.welltreat.ushttp:// > > restaurant.welltreat.us/http://isp.welltreat.us/ > > > -- > > Before posting, please readhttp://watir.com/support. In short: search > > before you ask, be nice. > > > [email protected] > >http://groups.google.com/group/watir-general > > [email protected] > > -- > Thanks, > Irfan Ahmed Rizvi (Sagar) > > cell Numbers: > +880 1676 246 991 > +880 1723 712 888 > > http://www.welltreat.ushttp://restaurant.welltreat.us/http://isp.welltreat.us/ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
