本文整理汇总了C#中Browser.RadioButton方法的典型用法代码示例。如果您正苦于以下问题:C# Browser.RadioButton方法的具体用法?C# Browser.RadioButton怎么用?C# Browser.RadioButton使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Browser
的用法示例。
在下文中一共展示了Browser.RadioButton方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
示例2: TestUserOrderSelectDemo4
public void TestUserOrderSelectDemo4(Browser browser)
{
browser.WaitUntilContainsText("Define Target Audience");
Assert.IsTrue(browser.ContainsText("Define Target Audience"));
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemVar")).Option(Find.ByValue("A")).Select();
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_btAddDem")).Click();
browser.Div(Find.ById("divWaiting")).WaitUntilRemoved();
browser.Div("ListbarProfiles").Table("ListbarProfiles_Group_0_group").TableRow("ListbarProfiles_Group_0_items").Div("ListbarProfiles_0_Item_0").WaitUntilExists(20);
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemVar")).Option(Find.ByValue("B")).Select();
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_btAddDem")).Click();
browser.Div(Find.ById("divWaiting")).WaitUntilRemoved();
browser.Div("ListbarProfiles").Table("ListbarProfiles_Group_0_group").TableRow("ListbarProfiles_Group_0_items").Div("ListbarProfiles_0_Item_1").WaitUntilExists(20);
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemVar")).Option(Find.ByValue("C")).Select();
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_btAddDem")).Click();
browser.Div(Find.ById("divWaiting")).WaitUntilRemoved();
browser.Div("ListbarProfiles").Table("ListbarProfiles_Group_0_group").TableRow("ListbarProfiles_Group_0_items").Div("ListbarProfiles_0_Item_2").WaitUntilExists(20);
browser.RadioButton(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_rb_phoneNothing")).Checked = true;
browser.Span(Find.ByText("Next")).Click();
}
示例3: TestUsercanceldiscont
public void TestUsercanceldiscont(Browser browser,string raid,string raname)
{
browser.Link(Find.ByText("平台管理")).Click();
browser.WaitUntilContainsText("请在左边的菜单选择您要进行的操作。 如有疑问,请点击下面相关链接查看操作流程图或查看交易指南");
Assert.IsTrue(browser.ContainsText("请在左边的菜单选择您要进行的操作。 如有疑问,请点击下面相关链接查看操作流程图或查看交易指南"));
browser.Link(Find.ByText("销售折扣管理")).Click();
browser.WaitUntilContainsText("折扣设置");
Assert.IsTrue(browser.ContainsText("折扣设置"));
//状态生效
browser.RadioButton(Find.ById(raid)).Checked = true;
WatiN.Core.DialogHandlers.ConfirmDialogHandler dh4 = new WatiN.Core.DialogHandlers.ConfirmDialogHandler();
browser.AddDialogHandler(dh4);
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_btnDelete")).ClickNoWait();
dh4.WaitUntilExists(15);//
dh4.OKButton.Click();//
browser.RemoveDialogHandler(dh4);
Thread.Sleep(1000);
Assert.IsFalse(browser.ContainsText(raname));
}
示例4: TestUserOrderSelectDemo3
public void TestUserOrderSelectDemo3(Browser browser)
{
browser.WaitUntilContainsText("Define Target Audience");
Assert.IsTrue(browser.ContainsText("Define Target Audience"));
//browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemCat")).Option(Find.ByText("Estimated Income")).Select();
browser.CheckBox(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_chbAllHousehold")).Checked = true;
browser.Div(Find.ById("divWaiting")).WaitUntilRemoved();
browser.RadioButton(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_rb_phoneNothing")).Checked = true;
browser.Span(Find.ByText("Next")).Click();
}
示例5: NCOAOrders
public void NCOAOrders(Browser browser,String FileType, string HostPath)
{
if (HostPath == "u")
{
OpenTargetUrl(targetHost + "sl360",browser);
}
else
{
OpenTargetUrl(targetHost+"salesleads360",browser);
//userlogin
Login login = new Login();
login.userlogin(CountEmail, CountPW, browser);
}
browser.Link("aMainMenu1").WaitUntilExists(60);
browser.Link("aMainMenu1").ClickNoWait();
browser.Span(Find.ByText("NCOA")).WaitUntilExists(60);
browser.Image("ctl00_ctl00_uxContent_ContentPlaceHolder1_ibStartNow").ClickNoWait();
browser.FileUpload("ctl00_ctl00_uxContent_ContentPlaceHolder1_fuFile").WaitUntilExists(60);
browser.FileUpload("ctl00_ctl00_uxContent_ContentPlaceHolder1_fuFile").Set(UploadLeadsPath);
if (FileType == "c")
{
browser.RadioButton("ctl00_ctl00_uxContent_ContentPlaceHolder1_rblListType_0").Checked = true;
}
else
{
browser.RadioButton("ctl00_ctl00_uxContent_ContentPlaceHolder1_rblListType_1").Checked = true;
}
browser.Link("ctl00_ctl00_uxContent_ContentPlaceHolder1_BottomBtNext").Click();
browser.Link("ctl00_ctl00_uxContent_ContentPlaceHolder1_BottomBtNext").Click();
browser.CheckBox("ctl00_ctl00_uxContent_ContentPlaceHolder1_sOptions_cbOption1").Checked = true;
}
示例6: TestUserOrderSelectDemo
public void TestUserOrderSelectDemo(Browser browser)
{
browser.WaitUntilContainsText("Define Target Audience");
Assert.IsTrue(browser.ContainsText("Define Target Audience"));
//browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemCat")).Option(Find.ByText("Estimated Income")).Select();
/* browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemCat")).Option(Find.ByValue("3$$alvionacxiom30_DateOfBirthU")).Select();
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_uxInputLower")).TypeText("012008");
browser.TextField(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_uxInputUpper")).TypeText("012009");
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_btAddDem")).Click();*/
//browser.Div(Find.ById("divWaiting")).WaitUntilRemoved();
// browser.Div("ListbarProfiles").Table("ListbarProfiles_Group_0_group").TableRow("ListbarProfiles_Group_0_items").Div("ListbarProfiles_0_Item_0").WaitUntilExists(20);
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemCat")).Option(Find.ByValue("0$$alvionacxiom30_AgeOfIndividual")).Select();
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_btAddDem")).Click();
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemVar")).Option(Find.ByValue("20")).Select();
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_btAddDem")).Click();
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemVar")).Option(Find.ByValue("22")).Select();
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_btAddDem")).Click();
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemVar")).Option(Find.ByValue("24")).Select();
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_btAddDem")).Click();
browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemVar")).Option(Find.ByValue("26")).Select();
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_btAddDem")).Click();
//browser.Div(Find.ById("divWaiting")).WaitUntilRemoved();
browser.Div("ListbarProfiles").Table("ListbarProfiles_Group_0_group").TableRow("ListbarProfiles_Group_0_items").Div("ListbarProfiles_0_Item_0").WaitUntilExists(20);
/* browser.SelectList(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_ltbDemCat")).Option(Find.ByValue("0$$alvionacxiom30_CreditCardUser")).Select();
browser.Link(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_btAddDem")).Click();
browser.Div(Find.ById("divWaiting")).WaitUntilRemoved();
browser.Div("ListbarProfiles").Table("ListbarProfiles_Group_1_group").TableRow("ListbarProfiles_Group_1_items").Div("ListbarProfiles_1_Item_0").WaitUntilExists(20);*/
// browser.Div("ListbarProfiles").Table("ListbarProfiles_Group_2_group").TableRow("ListbarProfiles_Group_2_items").Div("ListbarProfiles_2_Item_0").WaitUntilExists(20);
browser.RadioButton(Find.ById("ctl00_ctl00_uxContent_ContentPlaceHolder1_rb_phoneNothing")).Checked = true;
browser.Span(Find.ByText("Next")).Click();
}
示例7: EditDetails
/// <summary>
/// Method Edits the Details of an Added Edit
/// </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="recprob"></param>
/// <param name="source"></param>
/// <param name="errorlevel"></param>
public void EditDetails(Browser browser, string name, string level, string efrom, string eto, string exception, string errortype, string recprob, string source, string errorlevel)
{
browser.RadioButton(Find.ByLabelText(errorlevel)).Checked = true;
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpEditDetails_tBoxEditName"))).SetAttributeValue("value", name);
browser.SelectList(Find.ById(new Regex("ctl00_MainContent_rpEditDetails_ddlEditLevel"))).Select(level);
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpEditDetails_deEffFrom_I"))).TypeText(efrom);
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpEditDetails_deEffThru_I"))).TypeText(eto);
browser.TextField(Find.ById(new Regex("ctl00_MainContent_rpEditDetails_ctrlException_rpException_tBoxException"))).SetAttributeValue("value", exception);
browser.SelectList(Find.ById(new Regex("ctl00_MainContent_rpEditDetails_ctrlException_rpException_ddlErrorType"))).SelectByValue(errortype);
browser.SelectList(Find.ById(new Regex("ctl00_MainContent_rpEditDetails_ctrlException_rpException_ddlProbability"))).Select(recprob);
browser.SelectList(Find.ById(new Regex("ctl00_MainContent_rpEditDetails_ctrlException_rpException_ddlSource"))).Select(source);
}
示例8: TestUserbargainingorder
public void TestUserbargainingorder(Browser browser, string url, string material, string date1, string number, string ordertype, string button)
{
//#*****************************************************************************
//# Purpose: define User placeorder function.
//# Author: bobby
//# Last Modify: apr 13, 2009
//#*****************************************************************************
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);
//点击pop出来的确认对话框
WatiN.Core.DialogHandlers.ConfirmDialogHandler dh = new WatiN.Core.DialogHandlers.ConfirmDialogHandler();
browser.AddDialogHandler(dh);
browser.Link(Find.ById("ctl00_ContentPlaceHolder1_linkBuildOrders")).ClickNoWait();
dh.WaitUntilExists(15);//
dh.OKButton.Click();//
browser.RemoveDialogHandler(dh);
//自动分单
browser.WaitUntilContainsText("系统自动分单");
Assert.IsTrue(browser.ContainsText("系统自动分单"));
browser.SelectList(Find.ById("ctl00_ContentPlaceHolder1_dlPreviewList_ctl00_cmbPurcharseordertype")).Option(Find.ByText(ordertype)).Select();
//点击pop出来的确认对话框
WatiN.Core.DialogHandlers.ConfirmDialogHandler dh1 = new WatiN.Core.DialogHandlers.ConfirmDialogHandler();
browser.AddDialogHandler(dh1);
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_btnBuld")).ClickNoWait();
dh1.WaitUntilExists(3);//
dh1.OKButton.Click();//
browser.RemoveDialogHandler(dh1);
//意向订单
browser.WaitUntilContainsText("选择需要的订单,生成意向订单");
Assert.IsTrue(browser.ContainsText("选择需要的订单,生成意向订单"));
browser.RadioButton(Find.ByName("radionSelect")).Checked = true;
//意向订单-->订单生效
//这个要参数化
browser.Button(Find.ById(button)).Click();
browser.TextField(Find.ById("ctl00_ContentPlaceHolder1_txtDiscount")).TypeText("10");
//WatiN.Core.DialogHandlers.AlertAndConfirmDialogHandler dh3 = new WatiN.Core.DialogHandlers.AlertAndConfirmDialogHandler();
//browser.AddDialogHandler(dh3);
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_btnSubmit")).ClickNoWait();
//dh3.WaitUntilExists(3);//
//dh3.OKButton.Click();//
//browser.RemoveDialogHandler(dh3);
//Thread.Sleep(2000);
}
示例9: TestUseradddiscount
public void TestUseradddiscount(Browser browser,string date)
{
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_btnNew")).Click();
//日期
browser.TextField(Find.ById("ctl00_ContentPlaceHolder1_txtStartDate")).TypeText(date);
browser.TextField(Find.ById("ctl00_ContentPlaceHolder1_txtEndDate")).TypeText(date);
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_btnPricelistDetail")).Click();
/*
//选供应商
browser.Image(Find.ByTitle("供应商查询")).ClickNoWait();
Browser DW=IE.AttachToIE(Find.ByUrl("http://192.168.0.21/Trade/Price/OrgDetail.aspx?index=ctl00_ContentPlaceHolder1_gvDetail_ctl02_"));
DW.TextField("txtDWMC").TypeText("自动供应商");
DW.Button("btnSearch").Click();
//DW.Button(Find.ByName("1001")).Click();
DW.Button(Find.ByValue("选择")).Click();
/*
//选小品种
browser.Image(Find.ByTitle("品种查询")).ClickNoWait();
Browser DW1=IE.AttachToIE(Find.ByUrl("http://192.168.0.21/Trade/Price/Product.aspx?orgid=0&index=ctl00_ContentPlaceHolder1_gvDetail_ctl02_"));
browser.WaitUntilContainsText("小品种代码");
DW1.TextField(Find.ById("txtProductName")).TypeText("焊接用钢盘条");
DW1.Button(Find.ById("btnSearch")).Click();
DW1.Button(Find.ByValue("选择")).Click();*/
//选资源
browser.Image(Find.ByTitle("资源查询")).ClickNoWait();
Browser DW2=IE.AttachToIE(Find.ByUrl("http://192.168.0.21/Trade/Price/ProductDetail.aspx?orgid=0&productid=0&index=ctl00_ContentPlaceHolder1_gvDetail_ctl02_"));
browser.WaitForComplete(120);
DW2.TextField(Find.ById("txtcz")).TypeText("脚本");
DW2.Button(Find.ById("Button1")).Click();
DW2.Button(Find.ByValue("选择")).Click();
browser.TextField(Find.ById("ctl00_ContentPlaceHolder1_gvDetail_ctl02_txtQty")).TypeText("1");
browser.TextField(Find.ById("ctl00_ContentPlaceHolder1_gvDetail_ctl02_txtAmount")).TypeText("100");
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_btnSave")).ClickNoWait();
browser.WaitUntilContainsText("折扣设置");
Assert.IsTrue(browser.ContainsText("折扣设置"));
//状态生效
raid=browser.RadioButton(Find.ByName("radionSelect")).Id;
browser.RadioButton(Find.ByName("radionSelect")).Checked = true;
WatiN.Core.DialogHandlers.ConfirmDialogHandler dh4 = new WatiN.Core.DialogHandlers.ConfirmDialogHandler();
browser.AddDialogHandler(dh4);
browser.Button(Find.ById("ctl00_ContentPlaceHolder1_btnEffect")).ClickNoWait();
dh4.WaitUntilExists(15);//
dh4.OKButton.Click();//
dh4.WaitUntilExists(15);
dh4.OKButton.Click();
browser.RemoveDialogHandler(dh4);
Thread.Sleep(1000);
}
示例10: USPopulateAircraftPage
private void USPopulateAircraftPage(Browser browser, string tag)
{
browser.TextField(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_txtAircraftFAANumber")).Value = tag;
browser.TextField(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_txtAircraftYear")).Value = tag;
browser.TextField(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_txtAircraftMake")).Value = tag;
browser.TextField(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_txtAircraftModel")).Value = tag;
browser.TextField(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_txtTotalSeats")).Value = tag;
browser.TextField(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_txtEngineMake")).Value = tag;
OptionCollection aircraftUse = browser.SelectList("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_ddlAircraftUse").Options;
aircraftUse[3].Select();
OptionCollection gearConfiguration = browser.SelectList("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_ddlGearConfiguration").Options;
gearConfiguration[3].Select();
OptionCollection hullCoverage = browser.SelectList("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_ddlHullCoverage").Options;
hullCoverage[3].Select();
browser.RadioButton(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_rbLimits_2")).Click();
browser.TextField(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_txtHullValue")).Value = tag;
OptionCollection medicalPayments = browser.SelectList("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_ddlMedicalPayments").Options;
medicalPayments[3].Select();
browser.RadioButton(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_cbxQuoteFor_1")).Click();
browser.TextField(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_txtAirportName")).Value = tag;
browser.TextField(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_txtHullValue")).Value = tag;
OptionCollection aircraftStatus = browser.SelectList("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_ddlAircraftStatus").Options;
aircraftStatus[3].Select();
browser.TextField(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_txtAirportCity")).Value = tag;
OptionCollection airportState = browser.SelectList("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_ddlAirportState").Options;
airportState[3].Select();
}
示例11: CAPopulateAircraftPage
private void CAPopulateAircraftPage(Browser browser, string tag)
{
var a = new CAAircraftPage(browser);
a.ddlAircraftUse.Options[1].Select();
a.txtCommercialUseExplaination = tag;
a.txtAircraftFAANumber = tag;
a.txtAircraftYear = tag;
a.txtAircraftMake = tag;
a.txtAircraftModel = tag;
a.txtTotalSeats = tag;
a.txtHullValue = tag;
a.ddlHullCoverage.Options[2].Select();
//a.rbLimits.Options[2].Select();
var aa = a.rbLiabilityLimitsAmount;
browser.RadioButton(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_rbLiabilityLimitsAmount_2")).Checked = true;
browser.RadioButton(Find.ById("main_0_eaamain_0_eaacontent_0_acmain_1_Quote_xQuoteWizard_xAircraft_rbLiabilityLimitsSubType_1")).Checked = true;
//a.rbLiabilityLimitsAmount.Options[2].Select();
//a.rbLiabilityLimitsSubType.Options[2].Select();
a.txtAirportName = tag;
a.ddlAircraftStatus.Options[2].Select();
a.CBLGearConfiguration1 = true;
a.cbxQuoteFor1 = true;
}