Pregunta de entrevista de Tech Mahindra

How would you access an element in a drop-down list?

Respuesta de la entrevista

Anónimo

17 abr 2025

Here I did not remember about the SelectElement but described it in general as well as describing the various option for selecting(option, element[2], forgot the third) CORRECT ANSWER: new SelectElement(driver.FindElement(By.Id("dropdownId"))).SelectByText("Option Text");