Hello. What is necessary for correct operation of webbrowser in C #? The whole problem is that I cannot complete authorization on the film4smart.net website. It works fine on win7 and does not want to win 10, so I thought that something might be missing somewhere ... If anything, authorization is done hands, I don’t know how to programmatically tie the cookies to the web browser.
- 2Work with control or console? Compare versions of .NET framework and browsers on win10 and win7. This is basically all the key differences that may affect the work. - Sleeeper
- A webbrowser in C # is a shell for a COM module, a stub from IE or EDGE, depending on the version of Win. It is very inconvenient to work with him and the cockroaches are full. IMHO, if you want a fully-featured browser built into the application - look for a third-party library and do not suffer. - rdorn
- I work with control. - Andrey Fedorov
- So after all, in win 10 there are both IE and EDGE ... Maybe some kind of conflict arises because of this or something else? - Andrey Fedorov
- maybe a conflict and something else, I say, there are a lot of cockroaches, of different colors and sizes. From the first that comes to mind - look for the difference in the default settings of the control and in the system settings of the browser. - rdorn
|
1 answer
If anything, authorization is done by hand, I don’t know how to programmatically attach the cookies to the web browser.
There are several options:
- Create a profile of the desired browser manually and use this profile. Cookies will be stored in it.
- Save cookies to the desired data format manually and load them when needed. Here is an example of saving to XML: How to save and then reuse cookies in javascript + selenium? But it's better to use serialization. Simpler.
The whole problem is that I cannot complete authorization on the film4smart.net site. It works fine on win7, but does not want to win 10, so I thought that somewhere there might not be enough ...
Compare versions of the browser and generally sensibly otdebazhsha. Check whether you have the latest driver for the desired browser. The problem is not in OSi exactly.
|