//GenericFunctions.ClickOnButtonByXPath("//span[contains(text(), '" + input + "')]", driver); public static void CalculatorButton(string input, IWebDriver driver, int inputOrder) { GenericFunctions.ClickOnButtonByXPath("//*[@class='cwbts'][contains(text(),'" + input + "')]", driver); StoreKeyPress [inputOrder] = input; }