Beispiel #1
0
 public Property(Propertyname propertyName, dynamic propertyValue, Propertyname ParentProperty = Propertyname.Undefined, int group = 0)
 {
     name          = propertyName;
     value         = propertyValue;
     prerequisite  = ParentProperty;
     propertyGroup = group;
 }
Beispiel #2
0
 public Property()
 {
     name          = Propertyname.Undefined;
     value         = null;
     prerequisite  = Propertyname.Undefined;
     propertyGroup = 0;
 }
        public void Enterpropertydetails()
        {
            _Wait.Until(ExpectedConditions.ElementExists(By.ClassName("title")));
            string propdetpag = _driver.Title;

            Assert.AreEqual(propdetpag, "Properties | Add New Property");
            Propertyname.SendKeys("NewProperty");

            /* Actions actions = new Actions(_driver);
             * actions.MoveToElement(PropertyType);
             * actions.Click();
             * actions.SendKeys("Section and Property");
             * actions.Build().Perform();*/

            StreetNo.SendKeys("1222");

            IWebElement streetname = AddressElement1[0];

            streetname.SendKeys("High Street");

            IWebElement Suburb = AddressElement1[1];

            Suburb.SendKeys("Taita");

            IWebElement City     = AddressElement2[1];
            IWebElement Postcode = AddressElement2[2];

            City.SendKeys("Lower Hutt");


            Postcode.SendKeys("5011");

            PropDes.SendKeys("Property Description");

            Region.SendKeys("Wellington");

            System.Threading.Thread.Sleep(4000);

            TargetRent.SendKeys("200");
            Bedrooms.SendKeys("2");
            YearBuilt.SendKeys("1999");
            Bathrooms.SendKeys("2");

            Fileupload.SendKeys(@"C:\Users\Mallik\Desktop\Test.jpg");
            CarPark.SendKeys("2");

            System.Threading.Thread.Sleep(1000);

            //File IUpload

            /*  System.Threading.Thread.Sleep(2000);
             *
             * SendKeys.SendWait(@"C:\Users\Mallik\Desktop\Test.jpg");
             * System.Threading.Thread.Sleep(2000);
             *
             * SendKeys.SendWait(@"{Enter}");
             */

            YearBuilt.Click();
            System.Threading.Thread.Sleep(1000);
            ClickNext.Click();
        }