Example #1
0
        public Car GetCharacteristicstCar(int numberCar)
        {
            var elementEngine            = new BaseElement(By.XPath(string.Format(TemplateLocatorForEngineAndTransmission, Engine, numberCar)), "Label Engine");
            var elementTansmision        = new BaseElement(By.XPath(string.Format(TemplateLocatorForEngineAndTransmission, Transmission, numberCar)), "Label Engine");
            var divInnerTextEngine       = elementEngine.GetInnerHtml();
            var engine                   = GetMatchString(RegularExpression, divInnerTextEngine);
            var divInnerTextTransmission = elementTansmision.GetInnerHtml();
            var transmission             = GetMatchString(RegularExpression, divInnerTextTransmission);
            var characteristicsCar       = new CharacteristicsCar(engine.Replace(OldValueReplace, NewValueReplace), transmission);

            _car.CharacteristicsCar = characteristicsCar;
            return(_car);
        }