Currently, I am dealing with .xlsx spreadsheets in Selenium using a combination of Selenium-2.53.1 jar and Apache poi-3.17 jars. However, when attempting to retrieve the total number of columns through methods like getColumnCount() and getPhysicalNumberOfCells(), Selenium fails to execute properly and displays an error indicated by a red underline.