Forum Discussion

kavithamsse's avatar
kavithamsse
Copper Contributor
Apr 12, 2022

How to close Specific tab on Edge Browser programmatically?

Hi All,

 

We were previously using Internet Explorer and now planning to support Microsoft Edge.

 

We have .NET 4.8 based desktop application that launches Internet explorer and closes it by process Id. But we are not able to achieve the same flow using Microsoft Edge.

We understand that the architecture is different for Internet explorer and Edge. Edge uses a multi-processor architecture and killing the browser/tab instance doesn't work by killing the processId of the window/tab.

 

We need to close a specific tab programmatically (c#). 

Kindly suggest an approach to close specific tab on Edge Browser programmatically.

 

Thanks & Regards, 

Kavitha

 

  • We do expose tab management functionality through various APIs like Web Driver and extensions, so adding that for your application to call may be one way of achieving that.
    • kavithamsse's avatar
      kavithamsse
      Copper Contributor
      Hi josh_bodner,
      Thanks for your reply.
      Can you please suggest specific web driver/extension that can be used to achieve the functionality for closing a specific tab/window on edge brower programmatically?
      Thanks & Regards,
      Kavitha
      • josh_bodner's avatar
        josh_bodner
        Icon for Microsoft rankMicrosoft
        In order to interact with your existing application, this is something that would have to be custom written for your environment.
  • al_s26's avatar
    al_s26
    Copper Contributor

    Hi bro

    So i have a problem that When i sigh in to Microsoft teams they want to write my phone number so send me a code but I don’t receive the code massage on my phone number i tried everything but it’s not work 

Resources