public СalculatorPage() { CityFromConbobox = new ComboboxControl(BY.NthOfClass("combobox-container", 0)); CityFrom = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 0)); CityToConbobox = new ComboboxControl(BY.NthOfClass("combobox-container", 1)); CityTo = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 1)); ShopConbobox = new ComboboxControl(BY.NthOfClass("combobox-container", 2)); Shop = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 2)); DeclaredPrice = new TextInput(By.Name("declared_price")); Weight = new TextInput(By.Name("weight")); Width = new TextInput(By.Name("dimension_side1")); Height = new TextInput(By.Name("dimension_side2")); Length = new TextInput(By.Name("dimension_side3")); СountedButton = new ButtonInput(By.CssSelector("input.btn.btn-primary")); TableFirst = new СalculatorListControl(By.XPath("//table[1]")); TableSecond = new СalculatorListControl(By.XPath("//table[2]")); ActionErrorText = new ErrorActionTextControl(By.ClassName("form-horizontal")); ErrorText = new ErrorTextControl(By.ClassName("form-horizontal")); }
public OrderSelfEditingPage() { BuyerName = new TextInput(By.Name("to_name")); BuyerPhone = new TextInput(By.Name("to_phone")); BuyerPhoneAdd = new TextInput(By.Name("to_add_phone")); BuyerEmail = new TextInput(By.Name("to_email")); DeclaredPrice = new TextInput(By.Name("declared_price")); PaymentPrice = new TextInput(By.Name("payment_price")); GoodsDescription = new TextInput(By.Name("goods_description")); OrderComment = new TextInput(By.Name("order_comment")); IsCargoVolume = new CheckBox(By.Name("is_cargo_volume")); DeliveryDate = new TextInput(By.Name("delivery_date_new")); ItemsCount = new TextInput(By.Name("items_count")); Weight = new TextInput(By.Name("weight")); Width = new TextInput(By.Name("dimension_side1")); Height = new TextInput(By.Name("dimension_side2")); Length = new TextInput(By.Name("dimension_side3")); OrderNumber = new TextInput(By.Name("shop_refnum")); CanceledButton = new ButtonInput(By.CssSelector("div.form-actions > input.btn.btn-primary.btn-success")); SaveChangeButton = new ButtonInput(By.CssSelector("div.form-actions > input.btn.btn-primary.pull-right")); ActionErrorText = new ErrorActionTextControl(By.ClassName("form-horizontal")); ErrorText = new ErrorTextControl(By.ClassName("form-horizontal")); AletrError = new AlertControl(); }
public OrderSelfCreatePage() { Weight = new TextInput(By.Name("weight")); Width = new TextInput(By.Name("dimension_side1")); Height = new TextInput(By.Name("dimension_side2")); Length = new TextInput(By.Name("dimension_side3")); OrderNumber = new TextInput(By.Name("shop_refnum")); СountedButton = new ButtonInput(By.Name("recalc")); BuyerName = new TextInput(By.Name("to_name")); BuyerPhone = new TextInput(By.Name("to_phone")); BuyerPhoneAdd = new TextInput(By.Name("to_add_phone")); BuyerEmail = new TextInput(By.Name("to_email")); ItemsCount = new TextInput(By.Name("items_count")); DeclaredPrice = new TextInput(By.Name("declared_price")); PaymentPrice = new TextInput(By.Name("payment_price")); GoodsDescription = new TextInput(By.Name("goods_description")); OrderComment = new TextInput(By.Name("order_comment")); IsCargoVolume = new CheckBox(By.Name("is_cargo_volume")); PointDeliveryName = new StaticText(By.XPath("//div[@class='point_info_detail']/div")); PointDeliveryAddress = new StaticText(By.XPath("//div[@class='point_info_detail']/div[2]")); PointDeliveryCompany = new StaticText(By.XPath("//div[@class='point_info_detail']/div[3]")); PointDeliveryPrice = new StaticText(By.XPath("//div[@class='point_info_detail']/div[4]")); SaveDraftButton = new ButtonInput(By.CssSelector("div.form-actions > input.btn.btn-primary.btn-success")); SendOrderButton = new ButtonInput(By.CssSelector("div.form-actions > input.btn.btn-primary.pull-right")); ActionErrorText = new ErrorActionTextControl(By.ClassName("form-horizontal")); ErrorText = new ErrorTextControl(By.ClassName("form-horizontal")); MapOrders = new MapControl(By.Id("ddelivery")); }
public UserWarehouseCreatePage() { LabelDirectory = new StaticText(By.CssSelector("legend")); Name = new TextInput(By.Name("name")); Name = new TextInput(By.Name("name")); Street = new TextInput(By.Name("street")); House = new TextInput(By.Name("house")); Flat = new TextInput(By.Name("flat")); ContactPerson = new TextInput(By.Name("contact_person")); ContactPhone = new TextInput(By.Name("contact_phone")); ContactEmail = new TextInput(By.Name("contact_email")); PostalCode = new TextInput(By.Name("postal_code")); City = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 0)); Freshlogic = new TextInput(By.Name("freshlogic_id")); CreateButton = new ButtonInput(By.CssSelector("input.btn.btn-primary")); WarehousesBack = new Link(By.Name("freshlogic_id")); ErrorText = new ErrorTextControl(By.ClassName("form-horizontal")); }
public OrderCourirsEditingPage() { City = new StaticText(By.Name("to_city__value__")); CityTo = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 0)); DeclaredPrice = new TextInput(By.Name("declared_price")); Weight = new TextInput(By.Name("weight")); Width = new TextInput(By.Name("dimension_side1")); Height = new TextInput(By.Name("dimension_side2")); Length = new TextInput(By.Name("dimension_side3")); СountedButton = new ButtonInput(By.Name("recalc")); CanceledButton = new ButtonInput(By.CssSelector("div.form-actions > input.btn.btn-primary.btn-success")); SaveChangeButton = new ButtonInput(By.CssSelector("div.form-actions > input.btn.btn-primary.pull-right")); BuyerPostalCode = new TextInput(By.Name("to_postal_code")); BuyerStreet = new TextInput(By.Name("to_street")); BuyerHouse = new TextInput(By.Name("to_house")); BuyerFlat = new TextInput(By.Name("to_flat")); BuyerName = new TextInput(By.Name("to_name")); BuyerPhone = new TextInput(By.Name("to_phone")); BuyerPhoneAdd = new TextInput(By.Name("to_add_phone")); BuyerEmail = new TextInput(By.Name("to_email")); IsCargoVolume = new CheckBox(By.Name("is_cargo_volume")); PaymentPrice = new TextInput(By.Name("payment_price")); OrderNumber = new TextInput(By.Name("shop_refnum")); GoodsDescription = new TextInput(By.Name("goods_description")); DeliveryDate = new TextInput(By.Name("delivery_date_new")); DeliveryTimeFrom = new Select(By.Name("delivery_time_from")); DeliveryTimeTo = new Select(By.Name("delivery_time_to")); OrderComment = new TextInput(By.Name("order_comment")); ItemsCount = new TextInput(By.Name("items_count")); ActionErrorText = new ErrorActionTextControl(By.ClassName("form-horizontal")); ErrorText = new ErrorTextControl(By.ClassName("form-horizontal")); Countedloader = new StaticControl(By.CssSelector("#radio_div > div > imj")); DeliveryList = new RadioButtonListControl("radio_div"); }