D
D
Dmitry Afonchenko2018-08-24 17:34:35
Automation
Dmitry Afonchenko, 2018-08-24 17:34:35

How to use C# to close tabs in an open user's browser?

Good afternoon, comrades! I want to make a small time control application in C#. And immediately fell into a stupor, you need to find a tab with a specific site and close it, but something is not clear how to do this. There is an option through selenium, but this is not suitable, since in fact it is a debug browser. Is there anyway to do this in C#? Or do you need to write an extension in JS in the end?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Pogrebnyak, 2018-08-25
@Indermove

As an option - a script for the TamperMonkey extension (or equivalent). There you can create scripts for different pages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question