Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98807

sendKeys method is not working in VS Code while using Java

$
0
0

I am using Selenium writing in Java by VS Code.

I cannot compile this line of code since there is a red line under the method sendKeys.

The line of code is:

driver.findElement(By.xpath("*theXpath*")).sendKeys("Cologne")

Viewing all articles
Browse latest Browse all 98807


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>