Pergunta de entrevista da empresa Impetus Technologies

Write a script with a dynamic xpath to capture all links from the page and count also.

Resposta da entrevista

Sigiloso

28 de mar. de 2025

WebElement links = driver.findElements(By.xpath("//a[@href]")) links.size();