How can I make a link, which normally opens in a new window when clicked, open in the current window instead? The link does not have an href attribute, only an id and a class.
For example:
<a id="thisLink" class="linkOut">someLinkText</a>
I realized that when I tried to access the href attribute, it returned null. Is there a way to retrieve the URL without actually opening the link, or a method to force this link to open in the current window rather than a new one?
I am using Selenium WebDriver to test the website and need to verify the resulting page without triggering the link to open in a new window.