Hello everybody.
I'm preparing a webscraping of a website, is developed with Angular, and I don't know how to obtain the url where a tag < a > supouse to go (it has no src on the attributes).
The articles shows like this:
<a _ngcontent-ekg-c132="" tslitemroute="" class="ItemCardList__item ng-star-inserted" title="Title"></a>
If you click on each one the url is generated i guess on a JS script and a new tab is opened.
Is there any option to obtain the url once I call the click event?
Thanks in advance for your help.
What I have tried:
I'm trying to obtain it calling the click function:
List<IWebElement> item = browser.FindElements(By.XPath("//a[@class='ItemCardList__item ng-star-inserted']")).ToList();
item[0].Click();
IJavaScriptExecutor js = (IJavaScriptExecutor)browser;
js.ExecuteScript("arguments[0].click();", item[0]);
I understand that this both works because the examples I found googling, but not sure how to work after that, maybe with handles?