Control Chrome programmatically

前端 未结 4 506
再見小時候
再見小時候 2020-12-16 19:42

Is it possible to control and instantiate a Chrome browser from C#? Things like opening a new window, changing the URL, reloading the tabs, etc.

I\'ve had a look for

相关标签:
4条回答
  • 2020-12-16 20:16

    Anyone who has tried Puppeteer? Article about it here. (not C# specific)

    0 讨论(0)
  • 2020-12-16 20:27

    Doing a quick Google search for "chrome C# api" turned up some results I think you may like to consider

    I thought the following were particularly promising, if you're willing to accept the concession of using Chrome's developer tools:

    • Automating Chrome Browser from C#
    • ChromeDevTools; a C# Library to interact with Chrome's Developer Tools
    • Chrome Debugging API
    0 讨论(0)
  • 2020-12-16 20:33

    There is an API available for that. It's called 'Selenium', and has a Chrome-specific third party extension.

    http://www.seleniumhq.org/

    Check that link.

    0 讨论(0)
  • 2020-12-16 20:37

    Are you looking for something like CEF Sharp?

    It's an open source project that allows you to embed Chrome into your .NET application. So you can have those C# controls interact with the browser.

    0 讨论(0)
提交回复
热议问题