由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - 自动化的问题 (WebBrowser)
相关主题
vs2005 beta download哪位大侠指点一下 DOT NET 哪里有下?
difference between VS2005 and VS2003 GET VS2005 BETA2 FOR FREE
怎样用c#编程模拟跟网页interact?VS2005能和VS2003装在一个OS上么?
WebBrowser Control问题VS2005 coming in Nov
webbrowser control question Programming .NET Components
[合集] webbrowser control questionvs2005的正式版出来没有?
问个webbrowser控件的问题vs2005的viso还有吗?
Free Beta1vs2005 team suite rtm里的msdn是什么时间的版本?
相关话题的讨论汇总
话题: webbrowser话题: ibm话题: 自动化话题: fdoc话题: control
进入DotNet版参与讨论
1 (共1页)
s*i
发帖数: 5025
1
在.NET2.0下,VS2005 (or Beta)用WebBrowser control.
要做如下事情:
1。访问www.insidercow.com
2。在网页的textbox里填上 IBM
3。“点击”search,进入IBM的insider trading 网页(最终目的)
怎么做2和3呢? 当然用IE control是可以的。
j*****o
发帖数: 320
2
For 2 and 3, why not submit to the form handler directly?
webBrowser1.Navigate("http://www.insidercow.com/history/company.jsp?company=IBM"
However, you may do #2 like the following.
... Navigate...
webBrowser1.Navigate("http://www.insidercow.com/insidercow.jsp");
... DocumentCompleted ...
HtmlDocument fDoc;
fDoc = webBrowser1.Document;
fDoc.Forms[1].All[5].InnerText = "IBM";
I haven't found the way to submit the form yet.

【在 s*i 的大作中提到】
: 在.NET2.0下,VS2005 (or Beta)用WebBrowser control.
: 要做如下事情:
: 1。访问www.insidercow.com
: 2。在网页的textbox里填上 IBM
: 3。“点击”search,进入IBM的insider trading 网页(最终目的)
: 怎么做2和3呢? 当然用IE control是可以的。

s*i
发帖数: 5025
3
Thanks. Your solution works.
I doubt there is a way to simulate "click" in the new model.

【在 j*****o 的大作中提到】
: For 2 and 3, why not submit to the form handler directly?
: webBrowser1.Navigate("http://www.insidercow.com/history/company.jsp?company=IBM"
: However, you may do #2 like the following.
: ... Navigate...
: webBrowser1.Navigate("http://www.insidercow.com/insidercow.jsp");
: ... DocumentCompleted ...
: HtmlDocument fDoc;
: fDoc = webBrowser1.Document;
: fDoc.Forms[1].All[5].InnerText = "IBM";
: I haven't found the way to submit the form yet.

1 (共1页)
进入DotNet版参与讨论
相关主题
vs2005 team suite rtm里的msdn是什么时间的版本?webbrowser control question
Why this c# program from msdn failed?[合集] webbrowser control question
Do we still need DAL问个webbrowser控件的问题
VS 2005 Pro Installaion Free Beta1
vs2005 beta download哪位大侠指点一下 DOT NET 哪里有下?
difference between VS2005 and VS2003 GET VS2005 BETA2 FOR FREE
怎样用c#编程模拟跟网页interact?VS2005能和VS2003装在一个OS上么?
WebBrowser Control问题VS2005 coming in Nov
相关话题的讨论汇总
话题: webbrowser话题: ibm话题: 自动化话题: fdoc话题: control