Could anyone suggest how to implement that my automation should open multiple tabs in single web browser and should close sub-sequent tabs that opened (not the main automation web tab), Thanks in advance.
***Edited by Moderator Marissa to move from Pega Academy to Pega Support Community; update platform capability tags***
***Edited by Moderator Marissa to update Product***
There's no good way to do this. Internet Explorer re-uses the first IExplore.exe process to host the window. When you dot not have any IExplore.exe processes running, the first process started will create the window and then load a page in a single tab. If you were to click a link to a web page on your desktop (for example), it would launch in a new tab in that window.
The Web Adapter uses the --noframemerging argument when starting IE to cause it to launch within a new window. If you interrogated all of your controls within a single adapter, you could technically use a Windows Adapter to launch IE and give it the arguments to launch all of the pages in tabs in addition to the --noframemerging argument to make it look like you want. The problem is that you'll have a single giant adapter which could slow the operations and matching down to a noticeable level.
You might look at using a Windows Form UI and the TabbedReparentContainer control. With this, you can create a single UI to house each adapter in its own tab.