Thanks a lot man ! your solution worked and resolved a major hiccup of mine thanks once again. Regards Inder Pal
On Tue, Dec 21, 2010 at 4:11 PM, Željko Filipin < [email protected]> wrote: > On Tue, Dec 21, 2010 at 11:28 AM, IP <[email protected]> wrote: > > However I am facing one issue where all the > > functions from Autoit are working fine however Autoit's inbuilt > > function "FileExists" don't work with Watir. > > Watir uses Autoit distributable that has only subset of Autoit > functionality, so maybe FileExists is not supported. > > I would suggest that you check if file exists directly from Ruby, there is > no need for Autoit. > > File.exist?(file_name) => true or false > Return true if the named file exists. > > http://ruby-doc.org/core/classes/File.html#M002556 > > Željko > -- > watir.com - community manager > watirpodcast.com - host > testingpodcast.com - audio podcasts on software testing. all of them > > > > -- > 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]<watir-general%[email protected]> > -- 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]
