Solved

if window does not exist not working

  • 3 December 2022
  • 5 replies
  • 67 views

Badge +4

Hi Folks,

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

 

 

icon

Best answer by Tamil Arasu10 5 December 2022, 12:13

View original

5 replies

Userlevel 3
Badge +7

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!

Badge +4

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

Userlevel 3
Badge +7

please change the package version and give it try.

Userlevel 3
Badge +7

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

Badge +3

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:

 

 

Reply