I am trying to select the selenium selectors(xpath, id ...) by calling a single function rather than writing driver.findElement(by.selector()) again and again. The code work