Tech Mahindra interview question

How would you interact with an Alert?

Interview Answer

Anonymous

17 Apr 2025

This a reasonable question and I explain the use of SwitchTo() again but did not provide the full implementation. CORRECT ANSWER: driver.SwitchTo().Alert();