How can I automate a task like open browser and click a button?
lior <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <000701c727a6$989207f0$6602a8c0__2955.44286859712$1166998405$gmane$org@campus.ad.bgu.ac.il> |
Hi,
How can I automate a task like open a new browser add a text to a textBox
and click a button from a webForm?
From winForm it dose like this:
HTMLDocument myDoc = new HTMLDocumentClass();
myDoc = (HTMLDocument) axWebBrowser1.Document;
HTMLInputElement otxtSearchBox = (HTMLInputElement)
myDoc.all.item("q", 0);
otxtSearchBox.value = "intel corp";
HTMLInputElement btnSearch = (HTMLInputElement)
myDoc.all.item("btnI", 0);
btnSearch.click();
Thanks,
Lior.
===================================
This list is hosted by DevelopMentorֲ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com