public static void Google() { string url = @"http://www.google.cn"; HTMLTest test = new HTMLTest(); test.SendMsgOnly = false; test.Browser.Load(url); // Console.WriteLine(test.Map.Label("��ͼ").GetFontSize()); test.Map.TextBox("name=q").Input("shrinerain"); //test.Map.Add("������"); //test.Map.TextBox("������").Clear(); //test.Map.TextBox("������").Input("testatest12456"); //test.Map.Button("Google Search").Click(); //test.Browser.WaitForNextPage(); //test.Map.TextBox("name=q").Input("niuniu"); }
public static void Google() { string url = @"http://www.google.cn"; HTMLTest test = new HTMLTest(); test.SendMsgOnly = false; test.Browser.Load(url); // Console.WriteLine(test.Map.Label("地图").GetFontSize()); test.Map.TextBox("name=q").Input("shrinerain"); //test.Map.Add("搜索框"); //test.Map.TextBox("搜索框").Clear(); //test.Map.TextBox("搜索框").Input("testatest12456"); //test.Map.Button("Google Search").Click(); //test.Browser.WaitForNextPage(); //test.Map.TextBox("name=q").Input("niuniu"); }
public static void qidian() { string url = @"www.qidian.com"; HTMLTest test = new HTMLTest(); test.Browser.Load(url); //test.Pool.GetObjectByType("textbox", "用户名"); //test.Map.TextBox("用户名").Input("shrinerain"); //test.Map.TextBox("密码").Input(""); test.Map.Button("登录").Click(); //test.Map.Link("搜书").Click(); test.Map.MsgBox().Click(); //test.Map.Link("个人空间").Click(); test.Map.TextBox("用户名").Input("shrinerain"); test.Map.TextBox("密码").Input(""); test.Map.Button("登录").Click(); test.Map.Link("搜书").Click(); //test.Map.Link("个人空间").Click(); //test.Map.TextBox("关键字").Input("变身"); //test.Map.Button("搜索").Click(); //test.Browser.Close(); //test.Map.Link("投稿").Click(); //test.Pool.GetObjectByType("textbox", "密码"); //test.Map.TextBox().Input(""); // test.Map.TextBox("用户名").Input("fgdagdklasdgh;eiruytnkl;fsdjgfkdlgjn{tab}"); //test.Pool.GetObjectByType("button", "登陆"); //test.Map.Button().Click(); //test.Browser.Wait(5); //test.Pool.GetObjectByProperty(".innerText", "提交建议"); //Pool.GetObjectByType("link", "提交建议"); //test.Map.Link().Click(); }
public static void qidian() { string url = @"www.qidian.com"; HTMLTest test = new HTMLTest(); test.Browser.Load(url); //test.Pool.GetObjectByType("textbox", "�û���"); //test.Map.TextBox("�û���").Input("shrinerain"); //test.Map.TextBox("����").Input(""); test.Map.Button("��¼").Click(); //test.Map.Link("����").Click(); test.Map.MsgBox().Click(); //test.Map.Link("���˿ռ�").Click(); test.Map.TextBox("�û���").Input("shrinerain"); test.Map.TextBox("����").Input(""); test.Map.Button("��¼").Click(); test.Map.Link("����").Click(); //test.Map.Link("���˿ռ�").Click(); //test.Map.TextBox("�ؼ���").Input("����"); //test.Map.Button("����").Click(); //test.Browser.Close(); //test.Map.Link("Ͷ��").Click(); //test.Pool.GetObjectByType("textbox", "����"); //test.Map.TextBox().Input(""); // test.Map.TextBox("�û���").Input("fgdagdklasdgh;eiruytnkl;fsdjgfkdlgjn{tab}"); //test.Pool.GetObjectByType("button", "��½"); //test.Map.Button().Click(); //test.Browser.Wait(5); //test.Pool.GetObjectByProperty(".innerText", "�ύ����"); //Pool.GetObjectByType("link", "�ύ����"); //test.Map.Link().Click(); }