Sample Code: use Win32::IEAutomation; my $url = "http://xyz.com"; my $agent = Win32::IEAutomation->new(visible=>1); $agent->gotoURL($url); my $user ="USER"; my $pwd = "PWD"; $agent->getTextBox('name:','login')->SetValue($user); $agent->getTextBox('name:','password')->SetValue($pwd); $agent->getButton('name:',"Submit")->Click(); $agent->getFrame("name:","topFrame")->getImagee('alt:', "mgmt")->Click; ###the below is the search popup### $url2 = "http://xyz.com/abc.html?from=Search"; ##now there are 2 options for me... ##One is to continue with the $agent that already exists.. ##another is to create a new one.. ## here, i continue with the new agent $agent2 = Win32::IEAutomation->new(visible=>1); $agent2->gotoURL($url2); $agent2->getSelectList('name:','typecombo')->SelectItem('Address'); $agent2->getTextBox('name:',"searchstring)->SetValue("SEARCH_STRING"); $response = $agent->getButton('name:','global_search')->Click(); ####Seems to work till here.. $agent2->getLink('linktext:',"Search_String")->Click(); ####Tries to find the parent window and gets stuck :( ####