Within my HTML, I have the following:
<span class="login-link">Log in</span>
The code snippet I am using is:
driver.findElement(By.cssSelector("#login > span")).click();
I have tried utilizing xPath
, cssSelector
, and id
, but none of them seem to be working.
Would you be able to provide some assistance?