V
V
Vyacheslav Shabunin2020-09-25 12:30:54
C++ / C#
Vyacheslav Shabunin, 2020-09-25 12:30:54

C# is it possible to use selenium together with HttpClient or WebBrowser API?

Hello everyone, is it possible to work with selenium along with httpclient . For example, navigation with selenium, and all the rest of the logic on httpclient , for example, writing cookies and reading them, downloading files, etc. I know that what I have listed can be done on the same selenium, but still. The selenium driver uses its own browser, I need to somehow synchronize these frames, for example: selenium went to a certain link, and httpclient, in turn, executed the necessary logic. I repeat that I know that it is possible to do all this on one frame, but this is how it should be.

Roughly speaking, now my task is as follows: to make authorization on cookies, after which selenium does its job further.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Daniil Demidko, 2020-09-25
@Chronicler

> is it possible to work with selenium together with httpclient. For example, navigation with selenium, and the rest of the logic on httpclient Is it
possible, what's stopping you? In the same vein, one might ask if it is possible to use one function and another too. For you, it's just a non-overlapping api

V
Vladimir Korotenko, 2020-09-25
@firedragon

That is, you need to poke at the function of accessing selenium cookies
and transferring them to httpclient ?
Is that what you want and don't know how?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question