//A method to navigate into the 'Add Tenant' page for a given property internal void ClickAddTenant(string PropertyName) { //Search for the property using the title SearchForProperty(PropertyName); //Click on the Add Tenant button to navigate to the 'Add Tenant' page for the given property AddTenantButton.Click(); }
//Click add tenant button and go to add tenant page internal void AddTenant() { //Driver.WaitForElementClickable(Driver.driver,By.XPath(".//*[@id='main-content']/section/div[1]/div/div[3]/div/div/div[2]/div[2]/div/a[1]"),10); AddTenantButton.Click(); }