I am using Selenium writing in Java by VS Code.
I am unable to compile this line of code since there is a red line under the method sendKeys
.
The line of code is:
driver.findElement(By.xpath("xpath")).sendKeys("Cologne");
Error is shown as:
The method sendKeys(String) is undefined for the type ByJava(67108964)