访问网页并自动填写表单
来源:互联网 发布:大麦盒子dm1001网络锁 编辑:程序博客网 时间:2024/05/22 14:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
if (ImageButton1 != null)
{
txAccount.SetAttribute("value", "wlq");
txPwd.SetAttribute("value", "wlq");
//ImageButton1.InvokeMember("click");
//btnElement.AttachEventHandler("onclick", new EventHandler(HtmlBtnClose_Click));
}
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace webfullform
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
{
}
private void button1_Click(object sender, EventArgs e)
{
{
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
HtmlDocument htmlDoc = webBrowser1.Document;
HtmlElement ImageButton1 = htmlDoc.All["ImageButton1"];
HtmlElement txAccount = webBrowser1.Document.All["txAccount"];
HtmlElement txPwd = webBrowser1.Document.All["txPwd"];
{
HtmlDocument htmlDoc = webBrowser1.Document;
HtmlElement ImageButton1 = htmlDoc.All["ImageButton1"];
HtmlElement txAccount = webBrowser1.Document.All["txAccount"];
HtmlElement txPwd = webBrowser1.Document.All["txPwd"];
if (ImageButton1 != null)
{
txAccount.SetAttribute("value", "wlq");
txPwd.SetAttribute("value", "wlq");
//ImageButton1.InvokeMember("click");
//btnElement.AttachEventHandler("onclick", new EventHandler(HtmlBtnClose_Click));
}
}
}
}
0 0
- 访问网页并自动填写表单
- 自动填写网页表单
- 自动填写网页表单
- vc遍历网页表单并自动填写提交
- vc遍历网页表单并自动填写提交
- vc遍历网页表单并自动填写提交
- vc遍历网页表单并自动填写提交
- vc遍历网页表单并自动填写提交
- vc遍历网页表单并自动填写提交
- C#技巧:网页表单自动填写技术
- 网页操作之自动填写表单
- 遍历当前网页表单,并自动填写提交的问题(VC++)!
- 关于c#的webbrows控件自动填写表单并获取提交后的网页内容
- FillForm网页表单填写插件(用于火狐浏览器,自动填表,自动表单,填写表单)
- C#技巧:网页表单自动填写技术(gmail为例)
- 火狐浏览器Firefox 如何使用iMacros 自动填写网页表单
- 自动表单填写
- 自动表单填写
- [7] CMake总结 - 4 INSTALL
- ALSA和OSS编程示例
- hdu 4309
- win7系统的IIS6与Frameworks2配置
- hdu acm 1045 Fire Net
- 访问网页并自动填写表单
- oracle创建job并执行job
- BFS 宽搜 B题 - Igor In the Museum
- VS2010安装程序的制作
- wpf的datagrid绑定数据
- Linux proc/%d/stat文件详解
- TP-Link 路由器快速安装指南
- MFC 按键精灵sendmessage操作 控制按键窗口所有操作 单击 双击 得到文本 设置文本等
- 常用的15个linux命令