Programmatically interact with the IE browser to fill out forms and navigation, etc.

I would like to use C # to interact with IE browser.

I have a feeling that shdocvw.dll will be involved, but there are so many classes that I don’t know where to start, and maybe I don’t even need to use it.

The goal is to interact with the website, visit its pages and β€œwarm up”, unlike as described here , Kenneth Scott . The fact is that javascript starts when you interact with a website, so it would be nice to just register and submit the forms in the same way as on the website itself.

In addition, it would be nice to create a program that records my actions in IE, and then can slightly automate and slightly modify them.

It would also be nice if he could do all this in the background without displaying the web page at all.

I'm not looking for third-party solutions, I want to do it myself (of course, with your advice).

Thanks.

+4
source share
2 answers

You said you were not looking for a third-party solution, but we used WatiN to work with great success for the automated User Interface Testing.

It is open source, so if you want to see how they do it, you can .

+7
source

Things like selenium and watin are a very mature framework for doing exactly what you ask. If you do not need to learn for yourself how to do this, I would use one of them.

Watin is a great way to learn how to do this in C #, as it is an open source C # project.

+2
source

Source: https://habr.com/ru/post/1385436/


All Articles