Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Absent Member.
Absent Member.
1354 views

handling pop-up window in CITRIX,ICA environment

Dear All,

 

Hw shud I handle this popup in CITRIX, ICA protocol. Pls find the screenshot attached.

Here I login thru a CITRIX ICA file & then browse my url for the application.

 

 

Regards,

Saurabh Bhati

0 Likes
5 Replies
Absent Member.. Absent Member..
Absent Member..

Here is an example code snippet if this can be of any help. This code should get you past the logon window to the Homepage of the application.

 

 ctrx_set_connect_opt(ICAFILE, "{ICA_FILE}");
 lr_start_transaction("Connect");
 if (!ctrx_win_exist("Legal*", 60))
 {
        ctrx_key("ENTER_KEY", 0);
 }
 //waits for Logon Event to occur
 ctrx_wait_for_event("LOGON");

 //checks for logon window
 if (ctrx_win_exist("Logon", 60))
 {
        strcpy(c_err, "Login");
       
  lr_end_transaction("Connect", LR_FAIL);
  
 }
 else
 {
  
        lr_end_transaction("Connect", LR_AUTO);
 }

 ctrx_type("{User}");
 sleep(200);
 ctrx_key("TAB_KEY", 0);
 sleep(200);
 ctrx_type("{Password}");
 sleep(200);
 ctrx_key("ENTER_KEY", 0);//login
 sleep(200);

 

 

0 Likes
Absent Member.. Absent Member..
Absent Member..

Hi 

 

you are getting pop up on login page but after some time tht is your page is idle so just check is there any wait or sleep inbetween login page and user name enrty action.

 

If that is not a case then you have to write a code in which first you have to check whether that pop up is raised or not using if condition and if yes then use enter tab as per citrix scripting method.

 

Cheers....

0 Likes
Absent Member.
Absent Member.

HI D John,

 

But the issue here is the pop up window is not active to handle it,

 

How shud I activate the pop-up window.

 

 

Regards,

Sam

0 Likes
Absent Member.
Absent Member.

HI Parag,

 

But the issue here is the pop up window is not active to handle it,

 

Is there a specific method within the API list to activate the pop-up window.

 

 

Regards,

Sam

0 Likes
Absent Member.. Absent Member..
Absent Member..

Hi,

 

in citrix like ctrx_win_exist command is to find whether window is there or not there is command to activate the pop up window... try that one..

 

Cheers....

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.