
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
handling pop-up window in CITRIX,ICA environment


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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);


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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....