Pergunta de entrevista da empresa Tech Mahindra

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

Resposta da entrevista

Sigiloso

17 de abr. de 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");