本文整理汇总了C#中Browser.TextField方法的典型用法代码示例。如果您正苦于以下问题:C# Browser.TextField方法的具体用法?C# Browser.TextField怎么用?C# Browser.TextField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Browser
的用法示例。
在下文中一共展示了Browser.TextField方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetMapDesiredCount
public void SetMapDesiredCount(int CountNumber, Browser browser)
{
browser.TextField("ctl00_ctl00_uxContent_ContentPlaceHolder1_gvOrderResults_ctl02_tbDesQty").WaitUntilExists(20);
browser.TextField("ctl00_ctl00_uxContent_ContentPlaceHolder1_gvOrderResults_ctl02_tbDesQty").TypeText(CountNumber.ToString());
browser.Span((Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_tbTolDesQty")) && (Find.ByText(CountNumber.ToString()))).WaitUntilExists(30);
}
示例2: AddBadActor
/// <summary>
/// Method to Add a Bad Actor
/// See AddVerticalEdit for param description
/// </summary>
/// <param name="browser">WatiN Browser Object</param>
/// <param name="name"></param>
/// <param name="level"></param>
/// <param name="efrom"></param>
/// <param name="eto"></param>
/// <param name="exception"></param>
/// <param name="errortype"></param>
/// <param name="days"></param>
/// <param name="errcount"></param>
/// <param name="countat"></param>
/// <param name="recprob"></param>
/// <param name="source"></param>
/// <param name="errorlevel"></param>
/// <param name="reqcon"></param>
/// <param name="configpath"></param>
/// <param name="basematches"></param>
/// <param name="associatedmatches"></param>
/// <param name="commit"></param>
/// <param name="save"></param>
///
public void AddBadActor(Browser browser, string name, string level, string efrom, string eto, string exception, string errortype, string days, string errcount,
string countat, string recprob, string source, string errorlevel, string reqcon, string configpath, bool basematches, bool associatedmatches, bool commit, bool save)
{
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(configpath);
XmlNode xn = xmldoc.SelectSingleNode("//config/admin/matchpath");
string basepath = xn.InnerText;
browser.Button(Find.ById(new Regex("ctl00_MainContent_rpEdits_cmdNewBA"))).Click();
browser.WaitUntilContainsText("Effective From");
EditDetails(browser, name, level, efrom, eto, exception, errortype, recprob, source, errorlevel);
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpEditDetails_tBoxTSID"))).SetAttributeValue("value", days);
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpEditDetails_tBoxNoOfTimes"))).SetAttributeValue("value", errcount);
browser.RadioButton(Find.ByLabelText(countat)).Checked = true;
if (basematches == true)
{
EditBaseMatches(browser, basepath, commit);
}
SaveDetails(browser, save);
}
示例3: TestUserOrderPaymentInfo
public void TestUserOrderPaymentInfo(Browser browser)
{
browser.WaitUntilContainsText("Step 4: Enter Payment Information");
Assert.IsTrue(browser.ContainsText("Step 4: Enter Payment Information"));
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_user_firstname")).TypeText("christie");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_user_lastname")).TypeText("Test");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_user_addr")).TypeText("zhongshanbeiroad");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_user_city")).TypeText("shanghai");
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_dl_user_state")).Option(Find.ByValue("AL")).Select();
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_user_zip")).TypeText("11111");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ux_phone")).Value="1111111111";
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ux_phone")).Focus();
//browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ux_phone")).DoubleClick();
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_user_email")).TypeText("[email protected]");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_order_description")).TypeText("ordertest");
browser.CheckBox(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_chbAgreement")).Checked = true;
browser.CheckBox(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_chb_contactinfo")).Checked = true;
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_dl_pay_year")).Option("2011").Select();
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_pay_account")).TypeText("4111111111111111");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_pay_cid")).TypeText("111");
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_BottomBtNext")).Click();
browser.WaitUntilContainsText("Your Order Is Complete");
Assert.IsTrue(browser.ContainsText("Your Order Is Complete"));
}
示例4: TestUserOrderSelectZipRadius
public void TestUserOrderSelectZipRadius(Browser browser)
{
browser.WaitUntilContainsText("Step 1: Select Target Area(s) - Radius around Zip");
Assert.IsTrue(browser.ContainsText("Step 1: Select Target Area(s) - Radius around Zip"));
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_uxZip")).TypeText("10017");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_tbRadius")).TypeText("0");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_tbRadius")).TypeText("5");
Thread.Sleep(1000);
browser.WaitUntilContainsText("5");
Thread.Sleep(1000);
browser.Button(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_btSearch")).Click();
Thread.Sleep(1000);
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_lbtNext")).Click();
}
示例5: Should_navigate_to_google_3
public void Should_navigate_to_google_3()
{
_browser = new IE("www.google.com");
var q = _browser.TextField(Find.ByName("q"));
q.TypeText("WatiN meets WebDriver");
// browser.TextField(Find.ByName("q")).Blur();
//browser.Button(Find.ByName("btnG")).Click();
}
示例6: TestUserladbilldeliversearch
//public static string ladorderid;
public void TestUserladbilldeliversearch(Browser browser, string url, string orderid)
{
browser.Link(Find.ByText("我要销售")).Click();
browser.WaitUntilContainsText("请在左边的菜单选择您要进行的操作。 如有疑问,请点击下面相关链接查看操作流程图或查看交易指南");
Assert.IsTrue(browser.ContainsText("请在左边的菜单选择您要进行的操作。 如有疑问,请点击下面相关链接查看操作流程图或查看交易指南"));
browser.Link(Find.ByText("可发资源查询")).Click();
browser.WaitUntilContainsText("可提资源查询");
Assert.IsTrue(browser.ContainsText("可提资源查询"));
//先清空
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_btnCleanDelivery")).ClickNoWait();
/*
//测试用
string ss = "0904000070";
int s1 = int.Parse(ss);
int s2 = s1 + 1;
string ss1 = s2.ToString();
*/
//
Thread.Sleep(1500);
browser.TextField(Find.ById("ctl00_ContentPlaceHolder1_txtOrderCode")).TypeText(orderid);
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_Button1")).Click();
//截取ID
string l1 = browser.Span(Find.ByText("焊接用钢盘条")).Id;
string l3 = l1.Trim().Substring(13, 4);
browser.Link(Find.ById("a_order_" + l3)).Click();
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_NextStepBtn")).Click();
browser.WaitUntilContainsText("在此页面中您可选择对此提单的处理方式,如无疑义,可点击创建提单完成");
Assert.IsTrue(browser.ContainsText("在此页面中您可选择对此提单的处理方式,如无疑义,可点击创建提单完成"));
browser.Table(Find.ById("ctl00_ContentPlaceHolder1_GridView1")).TableRow(Find.ByClass("RowBg")).WaitUntilExists(10);
//Assert.AreEqual("xx",browser.Table(Find.ById("ctl00_ContentPlaceHolder1_GridView1")).TableRow(Find.ByClass("RowBg")).TableCells[1].Text);
string ladorderid = browser.Table(Find.ById("ctl00_ContentPlaceHolder1_GridView1")).TableRow(Find.ByClass("RowBg")).TableCells[1].Text;
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_Button3")).Click();
//发货单确认
browser.Link(Find.ByText("发货单确认")).Click();
browser.WaitUntilContainsText("提单管理");
Assert.IsTrue(browser.ContainsText("提单管理"));
WatiN.Core.DialogHandlers.ConfirmDialogHandler dh2 = new WatiN.Core.DialogHandlers.ConfirmDialogHandler();
browser.AddDialogHandler(dh2);
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_GridView1_ctl02_ConfirmBtn")).ClickNoWait();
dh2.WaitUntilExists(15);//
dh2.OKButton.Click();//
browser.RemoveDialogHandler(dh2);
}
示例7: Should_Click_Search_On_Google_And_Return_Results_For_AspNet
public void Should_Click_Search_On_Google_And_Return_Results_For_AspNet(Browser browser)
{
browser.GoTo("http://www.google.co.uk");
browser.TextField(Find.ByName("q")).Value = "asp.net";
browser.Button(Find.ByName("btnG")).Click();
string testString = "The Official Microsoft ASP.NET Site";
browser.WaitUntilContainsText(testString);
Assert.True(browser.ContainsText(testString));
browser.Dispose();
}
示例8: Should_navigate_to_google_2
public void Should_navigate_to_google_2()
{
Settings.WaitForCompleteTimeOut = 5;
Settings.WaitUntilExistsTimeOut = 5;
_browser = new Watin.BrowserDrivers.WebDriver.WebDriver(new ChromeDriver(), new Uri("http://www.google.com"));
_browser.TextField(Find.ByName("q")).TypeText("WatiN meets WebDriver");
_browser.Button(Find.ByName("btnG")).Click();
Assert.That(_browser.Url, Is.StringContaining("q=WatiN+meets+WebDriver"));
}
示例9: TestUserspecialtylists
public void TestUserspecialtylists(Browser browser)
{
browser.WaitUntilContainsText("Please complete the short form below and a Data Specialist will follow up with you");
Assert.IsTrue(browser.ContainsText("Please complete the short form below and a Data Specialist will follow up with you"));
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ux_fir_name")).TypeText("bobby");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ux_last_name")).TypeText("wang");
//browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_user_addr")).TypeText("zhongshanbeiroad");
//browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_user_city")).TypeText("shanghai");
//browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_dl_user_state")).Option(Find.ByValue("AL")).Select();
//browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_txt_user_zip")).TypeText("11111");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ux_phone")).TypeText("1111111111");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ux_phone")).Focus();
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ux_email")).TypeText("[email protected]");
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_uxHowMany")).Option(Find.ByValue("1,001 - 5,000")).Select();
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_uxHowSoon")).Option(Find.ByValue("Immediately")).Select();
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_uxInterest")).Option(Find.ByValue("Ailments")).Select();
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_uxTarget")).TypeText("test");
browser.Image(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ImageButton1")).Click();
browser.WaitUntilContainsText("Thank you! We have received your request and we will follow up with you within the next business day");
Assert.IsTrue(browser.ContainsText("Thank you! We have received your request and we will follow up with you within the next business day"));
}
示例10: TestUsercheckdiscount
public void TestUsercheckdiscount(Browser browser, string url, string material, string date1, string number)
{
browser.Link(Find.ById("ctl00_linkTrade")).Click();
browser.WaitUntilContainsText("请在左边的菜单选择您要进行的操作。 如有疑问,请点击下面相关链接查看操作流程图或查看交易指南");
Assert.IsTrue(browser.ContainsText("请在左边的菜单选择您要进行的操作。 如有疑问,请点击下面相关链接查看操作流程图或查看交易指南"));
browser.Link(Find.ByText("我要采购")).Click();
browser.WaitUntilContainsText("请在左边的菜单选择您要进行的操作。 如有疑问,请点击下面相关链接查看操作流程图或查看交易指南");
Assert.IsTrue(browser.ContainsText("请在左边的菜单选择您要进行的操作。 如有疑问,请点击下面相关链接查看操作流程图或查看交易指南"));
//采购
browser.Link(Find.ByUrl(url + "SearchProduct.aspx")).Click();
browser.WaitUntilContainsText("清空购物车");
Assert.IsTrue(browser.ContainsText("清空购物车"));
//查询资源
browser.TextField(Find.ById("ctl00_ContentPlaceHolder1_txtSteel_Num")).TypeText(material + date1);
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_btnSearch1")).Click();
//清空购物车
WatiN.Core.DialogHandlers.ConfirmDialogHandler dh2 = new WatiN.Core.DialogHandlers.ConfirmDialogHandler();
browser.AddDialogHandler(dh2);
browser.Link(Find.ById("ctl00_ContentPlaceHolder1_linkClearCart")).ClickNoWait();
dh2.WaitUntilExists(15);//
dh2.OKButton.Click();//
browser.RemoveDialogHandler(dh2);
Thread.Sleep(1500);
//点击该资源并购买
browser.Image(Find.ByAlt("buy product")).Click();
browser.TextField(Find.ByClass("cinput")).TypeText(number);
browser.WaitUntilContainsText(number);
Assert.IsTrue(browser.ContainsText(number));
browser.Button(Find.ByClass("addBuyCartBtn")).Click();
Thread.Sleep(1500);
browser.WaitUntilContainsText("优惠后总额 900.00元");
Assert.IsTrue(browser.ContainsText("优惠后总额 900.00元"));
}
示例11: TestUserfullpay
public void TestUserfullpay(Browser browser,string pay)
{
browser.Link(Find.ByText("合同生效配款")).Click();
browser.WaitUntilContainsText("合同生效配款");
Assert.IsTrue(browser.ContainsText("合同生效配款"));
//截取订单号码
Thread.Sleep(1500);
string l1 = browser.Button(Find.ByClass("btnStyle")).GetAttributeValue("onclick");
string l3 = l1.Trim().Substring(19, 10);
orderid = l3;
browser.Button(Find.ByClass("btnStyle")).Click();
browser.WaitUntilContainsText("双击配款行即可完成或取消配款金额选择");
Assert.IsTrue(browser.ContainsText("双击配款行即可完成或取消配款金额选择"));
browser.TextField(Find.ById("txtPay_"+pay)).DoubleClick();
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_btnallocation")).Click();
browser.WaitUntilContainsText("按钮完成本次配款,或点击");
Assert.IsTrue(browser.ContainsText("按钮完成本次配款,或点击"));
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_btncomplete")).Click();
}
示例12: TestUserladingbillsearch
//public static string ladorderid;
public void TestUserladingbillsearch(Browser browser, string url, string orderid)
{
browser.Link(Find.ByText("可提资源查询")).Click();
browser.WaitUntilContainsText("可提资源查询");
Assert.IsTrue(browser.ContainsText("可提资源查询"));
//先清空
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_btnCleanDelivery")).ClickNoWait();
/*
//测试用
string ss = "0904000070";
int s1 = int.Parse(ss);
int s2 = s1 + 1;
string ss1 = s2.ToString();
*/
//
Thread.Sleep(1500);
browser.TextField(Find.ById("ctl00_ContentPlaceHolder1_txtOrderCode")).TypeText(orderid);
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_Button1")).Click();
//截取ID
string l1 = browser.Span(Find.ByText("焊接用钢盘条")).Id;
string l3 = l1.Trim().Substring(13, 4);
browser.Link(Find.ById("a_order_"+l3)).Click();
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_NextStepBtn")).Click();
browser.WaitUntilContainsText("在此页面中您可选择对此提单的处理方式,如无疑义,可点击创建提单完成");
Assert.IsTrue(browser.ContainsText("在此页面中您可选择对此提单的处理方式,如无疑义,可点击创建提单完成"));
browser.Table(Find.ById("ctl00_ContentPlaceHolder1_GridView1")).TableRow(Find.ByClass("RowBg")).WaitUntilExists(10);
//Assert.AreEqual("xx",browser.Table(Find.ById("ctl00_ContentPlaceHolder1_GridView1")).TableRow(Find.ByClass("RowBg")).TableCells[1].Text);
string ladorderid = browser.Table(Find.ById("ctl00_ContentPlaceHolder1_GridView1")).TableRow(Find.ByClass("RowBg")).TableCells[1].Text;
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_Button3")).Click();
}
示例13: ISEFilterBy
/// <summary>
/// Method to Filter the Integrated System Errors
/// </summary>
/// <param name="browser">WatiN Browser Object</param>
/// <param name="selection">Column Name</param>
/// <param name="searchstring">Column Value</param>
/// <param name="filterby">Filter Selection ie Begins With</param>
public void ISEFilterBy(Browser browser, string selection, string searchstring, string filterby)
{
ImageCollection filters = browser.Images.Filter(Find.ByClass("dxGridView_gvFilterRowButton"));
switch (selection)
{
case "IntSys":
filters[0].Click();
browser.Element(Find.ByText(filterby)).Click();
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpIntegrationSystemErrors_gvIntegrationSystemErrors_DXFREditorcol1_I"))).TypeText(searchstring);
break;
case "IntSysDesc":
filters[1].Click();
browser.Element(Find.ByText(filterby)).Click();
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpIntegrationSystemErrors_gvIntegrationSystemErrors_DXFREditorcol2_I"))).TypeText(searchstring);
break;
case "ErrDesc":
filters[2].Click();
browser.Element(Find.ByText(filterby)).Click();
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpIntegrationSystemErrors_gvIntegrationSystemErrors_DXFREditorcol3_I"))).TypeText(searchstring);
break;
case "Resolved":
filters[3].Click();
browser.Element(Find.ByText(filterby)).Click();
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpIntegrationSystemErrors_gvIntegrationSystemErrors_DXFREditorcol4_I"))).TypeText(searchstring);
break;
case "AddDt":
filters[4].Click();
browser.Element(Find.ByText(filterby)).Click();
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpIntegrationSystemErrors_gvIntegrationSystemErrors_DXFREditorcol5_I"))).TypeText(searchstring);
break;
case "AddUser":
filters[5].Click();
browser.Element(Find.ByText(filterby)).Click();
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpIntegrationSystemErrors_gvIntegrationSystemErrors_DXFREditorcol6_I"))).TypeText(searchstring);
break;
case "ModDt":
filters[6].Click();
browser.Element(Find.ByText(filterby)).Click();
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpIntegrationSystemErrors_gvIntegrationSystemErrors_DXFREditorcol7_I"))).TypeText(searchstring);
break;
case "ModUser":
filters[7].Click();
browser.Element(Find.ByText(filterby)).Click();
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpIntegrationSystemErrors_gvIntegrationSystemErrors_DXFREditorcol8_I"))).TypeText(searchstring);
break;
}
}
示例14: EditMatch
/// <summary>
/// Method Edits a Match (Base or Associated) on the Edits -> Add Vertical Edit page
/// </summary>
/// <param name="browser">WatiN Browser Object</param>
/// <param name="name"></param>
/// <param name="fieldtype"></param>
/// <param name="field"></param>
/// <param name="oper"></param>
/// <param name="value"></param>
/// <param name="save">Save Value true will save false will cancel</param>
public void EditMatch(Browser browser, string name, string fieldtype, string field, string oper, string value, string save)
{
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpMatchDetails_ASPxRoundPanel1_tBoxMatchName"))).SetAttributeValue("value", name);
browser.Button(Find.ById(new Regex("ctl00_MainContent_rpMatchDetails_ASPxRoundPanel1_cmdAddEditCondition"))).Click();
browser.WaitForComplete();
browser.TextField(Find.ById(new Regex("ctl00_MainContent_EditConditionControl_rpEditCondition_tBoxECType"))).Focus();
if (!fieldtype.Equals(""))
{
SelectFieldType(browser, fieldtype);
}
browser.TextField(Find.ById(new Regex("ctl00_MainContent_EditConditionControl_rpEditCondition_tBoxECField"))).Focus();
if (!field.Equals(""))
{
SelectField(browser, field);
}
browser.TextField(Find.ById(new Regex("ctl00_MainContent_EditConditionControl_rpEditCondition_tBoxECOperator"))).Focus();
if (!oper.Equals(""))
{
SelectListItem(browser, oper);
}
browser.TextField(Find.ById(new Regex("ctl00_MainContent_EditConditionControl_rpEditCondition_tBoxECValue"))).SetAttributeValue("value", value);
if (save.Equals("Y"))
{
browser.Button(Find.ById(new Regex("ctl00_MainContent_EditConditionControl_rpEditCondition_cmdUpdate"))).Click();
}
else
{
browser.Button(Find.ById(new Regex("ctl00_MainContent_EditConditionControl_rpEditCondition_cmdCancel"))).Click();
}
}
示例15: EditSetPageSize
/// <summary>
/// Method sets the Page Size on the Edits page
/// </summary>
/// <param name="browser">WatiN Browser Object</param>
/// <param name="size"></param>
public void EditSetPageSize(Browser browser, string size)
{
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpEdits_tBoxSetPageSize"))).SetAttributeValue("value", size);
browser.Button(Find.ById(new Regex("ctl00_MainContent_rpEdits_cmdSetPageSize"))).Click();
}