示例#1
0
        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();
        }
示例#2
0
        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"));
        }
示例#3
0
        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"));
        }
示例#4
0
        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");
        }