Is it possible to click on a link somehow using WebDriver , if it does not contain “href” attribute? Webdriver’s found it successfully, but cannot click.
Manual click requests to javascript (script listens some event and then opens target page)
<a role="button" class="search-btn">
<svg class="inline-icon search-icon-red" onmouseup="svgClickPolyfill.apply(this, arguments)" xmlns="http://www.w3.org/2000/svg"><use class="default-icon" xlink:href="/Content/app/images/public/sprite.svg#search-icon-red" xmlns:xlink="http://www.w3.org/1999/xlink"></use><use class="focus-icon hover-icon" xlink:href="/Content/app/images/public/sprite.svg#search-icon-black" xmlns:xlink="http://www.w3.org/1999/xlink"></use></svg>
</a>