Skip to main content
Answer

if window does not exist not working

  • December 3, 2022
  • 5 replies
  • 879 views

Forum|alt.badge.img+6

Hi Folks,

i am using window if window does not exist command. even window not exist still inside if block code not getting executed.

 

 

Best answer by Tamil Arasu10

please change the package version and give it try.

5 replies

Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+18
  • Most Valuable Pathfinder
  • December 5, 2022

Hi @RajeshS106234 ,

 

Can you please add the messagebox action inside the If condition to check the task.

I would recommend to change the If conditions like below

If Window Exists

Else

You code will here

Please let me know if this works for you.

Thanks!


Forum|alt.badge.img+6
  • Author
  • Navigator | Tier 3
  • December 5, 2022

i was doing that only but is there any bug with window does not exist command ?


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+18
  • Most Valuable Pathfinder
  • Answer
  • December 5, 2022

please change the package version and give it try.


Ashwin A.K
Forum|alt.badge.img+10
  • Navigator | Tier 3
  • December 5, 2022

Hi @RajeshS106234 ,

Could you try with an If: Object Exists Action instead?
 

It uses both the Window Title as well as any Object that way be present within the window. A bit more robust imo.

If you really want to go for the Window Does Not Exists, then you might want to try lengthening the Timeout and see if that works out for you.

 



Kind Regards,
Ashwin A.K


Zaid Chougle
Navigator | Tier 3
Forum|alt.badge.img+17
  • Navigator | Tier 3
  • December 6, 2022

Hi Folks,

i am using window if window does not exist command. even window not exist still inside if block code not getting executed.

 

 

Hi @RajeshS106234 ,

You can try adding a bit of delay inside the : If window does not exist condition to check whether the condition is working or not as below: