-1
According to the message, it did not find a link with the text of the element. Try to find the element by another type of location, for example: CSS, ID, Name.
- Instead
driver.FindElement(By.LinkText("Emitir Guia de Pagamento (DAS)")).Click();
Try this:
driver.FindElement(By.Name("NameDoLinkDePagamento")).Click();
Or this:
driver.FindElement(By.ID("NameDoLinkDePagamento")).Click();
Or also a part of the text:
driver.FindElement(By.PartialLinkText("Emitir")).Click();
- In some cases, when the page has scroll, it is necessary to position the element at a height that facilitates the "visualization" of the element by chromeDriver. You can do this using Javascript, as below :
var alturaPagina = 600;
var _script = (IJavaScriptExecutor)_driver;
_script.ExecuteScript("window.scrollBy(0, alturaPagina)");
Shai, consider improving your answer as it is very "shallow" in terms of explanations/definitions. See how to write a good answer?
– gleisin-dev