Interacting with a browser using C #

I want to interact with my browser window, maybe big if it works with Firefox using C #.

I want to create software that can automatically fill out entries in a web form. In the old days there was a gator now roboform, where it can automatically fill in values.

Actually, I have users who are comfortable with working on an old Windows forms application, so I want to make a decision in which they can still enter data in their Windows application and actually fill out the entries in the web form and act as if the request was created from the browser itself.

I know that I can combine both databases, as this is an outdated database writer application for a Windows application - this is a problem.

Any suggestion?

+3
source share
5 answers

WatiN is designed to simplify testing web applications with .NET, and it looks like it might be convenient for what you want to do:

The following is an example of Hello world web test automation; google search.

[Test] public void
SearchForWatiNOnGoogle() {  using (IE
ie = new IE("http://www.google.com")) 
{  
ie.TextField(Find.ByName("q")).TypeText("WatiN");
ie.Button(Find.ByName("btnG")).Click();
     Assert.IsTrue(ie.ContainsText("WatiN"));
} }

WatiN Feature List

  • Automates all basic HTML elements
  • Search for items by multiple attributes
  • AJAX Website Testing Support
  • Support for frames (cross-domain) and iframe
  • Supports pop-up dialogs such as warning, confirmation, login, etc.
  • Supports HTML dialog boxes (modal and non-modal)
  • Works with Internet Explorer 6, 7, 8 and FireFox 2 and 3
+4
source
+3

Selenium, -, -.

+1

fiddler, , , # HTTP-.

( -), , .

IE, InternetExplorer.Application. IE . script , Virgin Trains.

, IE , . , .

0

WindForms, - , -, Internet Explorer, HTTP- WinForms? WebRequest, Method "POST" Stream, httpRequest.GetRequestStream().

0

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


All Articles