Opening article's href link while iterating a List<WebElement>

Hi @a.oliva! Welcome to Katalon Studio.

First and foremost, even assuming that you resolve the errors you are getting (which I will show you how to do below), this will not work as you intend. The reason is that there is an exception in the Selenium API (which Katalon is based upon) called a StaleElementReferenceException that you will inevitably encounter in this scenario. It happens when you try and use an element that is no longer valid in the DOM. There are many reasons why an element/list of elements may become invalid, but in your case, here’s the issue:

1.) You get a list of links. Fine.
2.) You iterate that list of links, clicking each one in the list.
3.) The problem is, after the first link you click, your page will reload (if even partially), and therefore your list has a bunch of links that no longer exist. The second iteration will fail, and you will get a StaleElementReferenceException.

I have a thorough discussion about the dangers of StaleElementReferenceExceptions in another topic, and I would recommend you read through it:

Ok, with that out of the way, lets go through your errors:

org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <a href="https://scitechdaily.com/patient-case-strongly-suggests-link-between-pfizer-covid-19-vaccine-and-bells-palsy/" title="Patient Case Strongly Suggests Link Between Pfizer COVID-19 Vaccine and Bell’s Palsy" rel="bookmark">...</a> is not clickable at point (486, 656). Other element would receive the click: <iframe id="aswift_8" name="" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" width="1005" height="124" frameborder="0" src="https://googleads.g.doubleclick.net/pagead/html/r20210712/r20190131/zrt_lookup.html?fsb=1#RS-1-&amp;adk=1812271801&amp;client=ca-pub-1492496027964988&amp;fa=1&amp;ifi=9&amp;uci=a!9&amp;btvi=3" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" style="display: block; margin: 0px auto;" data-google-container-id="a!9" data-google-query-id="CMPEwuis8vECFaDuKAUdr5kCQg" data-load-complete="true"></iframe>

This error says that WebDriver tried to click on a link, but something was on top of your link that “intercepted” the click. In this case, it was an <iframe> element. My best guess at what happened here, without seeing the app you are working with, is that you clicked a link, something popped up (a modal window maybe?), and when you tried to click the second link, that something was overlapping where the link would be on the page. If this is the case, there are a couple solutions:

1.) Make sure that you close whatever popup or modal is opened before clicking the next link.
2.) Click it using JavaScript instead:

JavascriptExecutor jse = (JavascriptExecutor) driver;
jse.executeScript("arguments[0].click()", element);

For the next error:

org.openqa.selenium.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?(...) Driver info: driver.version: CChromeDriver(...)

That happened because you called WebUI.openBrowser() when you already had a browser open:

for  (WebElement article : archiveArticles) {
      link = article.getAttribute("href")
      println link
      WebUI.openBrowser(link) <-- this will cause an error
      WebUI.waitForPageLoad(3)}*/

Instead of WebUI.openBrowser(link), you would use WebUI.navigateToUrl(link)

However, as I mentioned at the beginning, I’m fairly certain that your List<WebElement> archiveArticles will become invalid the second you click the first link.