Beispiel #1
0
        public CompanyCreatePage()
        {
            Name                   = new TextInput(By.Name("name"));
            CompanyDriver          = new Select(By.Name("driver"));
            CompanyAddress         = new TextInput(By.Name("address"));
            CompanyPickup          = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 0));
            CompanyPickupAddButton = new ButtonInput(By.XPath("//button[@type='button']"));

            Manager             = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 1));
            ManagersPickup      = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 2));
            ManagersLegalEntity = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 3));

            Term            = new TextInput(By.Name("term"));
            ItemsMax        = new TextInput(By.Name("items_max"));
            SinglePickup    = new CheckBox(By.Name("single_pickup"));
            Prolongation    = new CheckBox(By.Name("prolongation"));
            BarcodePull     = new CheckBox(By.Name("enabled_barcode_pull"));
            PackingPaid     = new CheckBox(By.Name("packing_paid"));
            PackingRequired = new CheckBox(By.Name("packing_required"));
        }
Beispiel #2
0
        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"));
        }
Beispiel #3
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");
        }
Beispiel #4
0
 public CalendarCreatePage()
 {
     Date    = new TextInput(By.Name("date"));
     Company = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 0));
     Type    = new Select(By.Name("type"));
 }
Beispiel #5
0
 public PickupTimetableCreatePage()
 {
     Company      = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 0));
     PickupTime   = new Select(By.Name("pickup_time"));
     PickupPeriod = new Select(By.Name("delta"));
 }
Beispiel #6
0
 public PaymentPriceCreatePage()
 {
     Company = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 0));
     City    = new AutocompleteControl(BY.NthOfClass("ajax-combobox", 1));
 }