How to check whether a java window exists after a click


#1

Hi team ,

could some one help me in how to check whether my expected window exists or not , i tried couple of activities get active window, and element exists its throwing error need some help ,thanks in advance :slight_smile:


#2

@sainath1 what error u getting by using element exists activity?


#3

Hi @sainath1

It is possible that you can use my advice from this post:

This is how I check if my bot is following a defined sequence:

  1. Action to navigate to the window
  2. Find Element activity that selects the window with the javaState property placed in the selector
  3. Action in the window

#4

im not understanding what to provide in output variable


#5

@sainath1 output variable type is boolean type


#6

ok got that


#7

sure ty man ,