When I look at my code, I see this line:
JavascriptExecutor js = (JavascriptExecutor) driver;
A red line appears underneath it with the error message Unexpected keyword or identifier
I attempted to resolve this by importing
org.openqa.selenium.JavascriptExecutor;
, but encountered a new error:
import ... =' can only be used in TypeScript files.ts(8002)
My background is mainly in Python, so navigating JavaScript is still new for me. Appreciate any help!