Skip to content
CodeKruPro

Window handles after clicking a link that opens a new tab (Java)

QuizMediumJava onlyAsked in: Accenture, Capgemini, Cognizant, Infosys, TCS, Wipro

The test clicks a link with target="_blank" (an HTML setting that opens the link in a new tab), and a new tab opens. A window handle is the string id Selenium gives to each tab. What is true right after the click?

Choose one answer.

to answer and keep your progress. Reading is free for everyone.