Thank you for the reply. Here is what I did and I have another issue, maybe I am not understanding this....
public CommonTestMethods getButtons(WebDriver driver, String[] expectedButtons) {
String classLocator = "div.action-icon";
common.getButtons(driver, expectedButtons); [NOTE: Now my problem is, in each test, page to page, the buttons are different. So, I can't create multiple Array list for "expectedButtons"
For ex, expectedButtons2= {"Create" , "Edit"}, expectedButtons3 = {"Delete, "Save""} etc
}
********************************************************************************************************************************************************************************************************************************************************
************************************************************************************************************************************************************************************************************************************************************