Automating some repetitive actions in IE based apps with a C # tool?

http://www.xtremevbtalk.com/showthread.php?p=1221565#post1221565

There is some discussion in this thread on what I am trying to do. I cannot use Powershell for this purpose, and I am not an advanced student, so my level starts at an intermediate level. Understand concepts but need a lot of help and basic ideas :-)

Can I use a simple control in C # to let me open the internet window that I am currently opening for our IP phone system, take a string from another IE, or just save the text string I have and it will submit the form and fills in the required selection in the IE IP Phone (ie, click the radio button, click Submit, paste the number and click Dial). All of our extremely repetitive daily activities are based on the same standard views on an IP phone (and that's TEDIOUS). This will help our company a lot, and we have no developers besides me (the student who is working on this material on the side). I'd really like to streamline some of our repetitive actions.

I would like to know about the SIMPLEST way for automation. Would VBA be better for this, can C # actually be used to control IE, set cursor position, send requests, etc.? I use this with most of the IE apps we use at work that I don't have source code so I'm trying to figure out how to do it as simply as possible.

Start friendly reviews, please. Empty it out a bit for those still learning the basics!

0


a source to share


2 answers


I researched this a while ago and found a good tool for this: WatiN . It is commonly used for testing web applications, but I think you might find it useful as well. It has an easy-to-learn API:



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();
    }
} 

      

+1


a source


look at post . Even Google WebDriver along the way



+1


a source







All Articles