Validate not exist failed although the checked element in ranorex spy it not exist

Experiences, small talk, and other automation gossip.
ngocRose
Posts: 4
Joined: Thu Jun 24, 2021 9:24 am

Validate not exist failed although the checked element in ranorex spy it not exist

Post by ngocRose » Mon Oct 04, 2021 4:29 am

Hi everyone,
Recently i face with a issue as following:
I have an action that validates a file in a directory that doesn't exist after being deleted. Even though I checked the element with ranorex spy, the element doesn't exist but when I execute the script, the element exists, so the script fails
Info about environment:
OS: win 11
Ranorex version: 10.1.1.0
Follows
1. create a file by cmd in a folder
2. validate it exist (pass)
3. delete the created file by cmd
4. validate it not exist (failed)
Please help me, many thanks

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Validate not exist failed although the checked element in ranorex spy it not exist

Post by odklizec » Mon Oct 04, 2021 7:03 am

Hi,

Could you please elaborate how exactly do you check for the file existence? Ideally, please post a sample Ranorex solution. Thanks.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration