Edge Browser Question

Depuri, Krishna Chaitanya 11 Reputation points
2020-12-09T15:06:22.663+00:00

For IE , we can use the below code to find the browser links. Is there any code which we can get for the Edge browser links in the same way how we are getting for IE in VB or C#.

Dim Sh As Object = CreateObject("Sheel.Application")

For each oWin In sh.Windows

if Typename (oWin.document) = "HTMLDocumentClass"

Next

Using this code we are modifying our browser link easily in IE.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,151 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,307 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,580 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,931 Reputation points
    2022-07-18T01:58:39.453+00:00

    The edge browser being based on webkit, does not support ole automation, so your legacy code will not work.

    selenium webdriver is the most common toolkit to automate chrome or edge

    https://www.selenium.dev/documentation/webdriver/

    0 comments No comments