Can someone help me figure out why I'm getting this error message: "Exception in thread "main" java.lang.ClassCastException: java.lang.Long cannot be cast to org.openqa.selenium.WebElement at canvasdrag.Canvas.main(Canvas.java:57)"
WebElement element = (WebElement)((JavascriptExecutor)driver).executeScript("return window.app.design.DOOR.length");
String text = element.getText();
System.out.println(text);