Question d’entretien chez Qentelli

How to handle same objects in the page?

Réponse à la question d'entretien

Utilisateur anonyme

7 nov. 2024

IList elements = driver.FindElements(By.ClassName("button-class")); // Iterate through each element and perform an action foreach (IWebElement element in elements) { element.Click(); // Add any additional actions you need }