私はhtml href
リンクを持っています
<a href="/docs/configuration">App Configuration</a>
Selenium を使用して、リンクをクリックする必要があります。現在、私は以下のコードを使用しています -
Driver.findElement(By.xpath("//a[text()='App Configuration']")).click();
しかし、それはページにリダイレクトされていません。以下のコードも試しました-
Driver.findElement(By.xpath(//a[@href ='/docs/configuration']")).click();
しかし、これは例外をスローしています-
org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with
Command duration or timeout: 13 milliseconds
リンクが表示され、ページが完全に読み込まれます。コードの何が問題なのかわかりません。