yeah because WebDriverElement.getElement returns type Element so we have to cast it