コード例 #1
0
        public void CreateNewAddress(string roadno,string roadname,string locality,string roomtype = "",string roomno="",string complexunitno="")
        {
            string BaseWindow = driver.CurrentWindowHandle;
            this.ClickNewRentalPremises(BaseWindow);

            ClientNewAddressDetailsPage addressDetailPage = new ClientNewAddressDetailsPage(driver);
            addressDetailPage.SetAddressType("Australian Physical");
            addressDetailPage.SetComplexUnitNumber(complexunitno);
            addressDetailPage.SetRoomType(roomtype);
            addressDetailPage.SetRoomNumber(roomno);
            addressDetailPage.SetRoadNumber(roadno);
            addressDetailPage.SetRoadName(roadname);
            addressDetailPage.SetLocality(locality);
            addressDetailPage.ClickSaveAndClose();
            driver.SwitchTo().Window(BaseWindow);
        }