I'm having trouble clicking the following button on Outlook:
<a data-m="{"cN":"SIGNIN", "sN":"P6", "pV":"1"}" href="https://outlook.live.com/owa/?nlp=1" class="internal sign-in-link" data-task="signin">Sign in</a>
I've attempted both of the following code:
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//a[contains(text(), 'Sign in')]"))).click();
and
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@data-task='signin']"))).click();
The terminal sends a vague NoSuchElementException for both of them.
Could the Xpaths be incorrect?