How can we use win_exist in winrunner

Showing Answers 1 - 4 of 4 Answers

manfred

  • Jun 30th, 2006
 

for example like this (see below) - to find out whether you are currently at a web-site (within your workflow) called "win_WebappMain" (this one has to be defined within your GuiMap off course)... if (win_exists("win_WebappMain") == E_OK) { # yes - i'm within site "win_WebappMain" } else { # doh - i'm "somewhere else" }

  Was this answer useful?  Yes

BSREDDY

  • Aug 1st, 2006
 

Generally in WR win_exist is used to know wether that paritcular window exists or not in the application.Thus we can validate that the particular window is existing in the application.

  Was this answer useful?  Yes

anand00p

  • Aug 4th, 2006
 

for example : In the case of Flight Application,after filling the user name,password in the flight login form,it will navigates to Flight Reservation window.To check this window is coming or not we can use the win_exists function.

Win_activate("Login");

set_window("Login",5);

edit_set("user name","abcdef");

password_edit_set("password","mercury");

button_press("ok");

wait(10);

if(win_exists("Flight Reservation",5)==E_OK)

report_msg("Login is pass");

else

report_msg("Login is fail");

 

  Was this answer useful?  Yes

K.Ramesh

  • Oct 13th, 2006
 

hi,

    It is used to know that praticular window it existed or not.

Syntax:Win_Exist(logical name of window)

example:

           if(Win_Exist("Fight Reservation")==E_OK)

           ****preform some opertions****

           Else

           Invoke_application(File,Command options,working Dir,Show)

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions