Blog/Tab Switch Warning in Online Test: What Happens Next?

Tab Switch Warning in Online Test: What Happens Next?

Switching tabs in a proctored test is always logged. Here is what HackerEarth, Mettl and Testlify do by setting, and how to avoid accidental exits.

Last updated: 23 October 2026 · By the Asuraa Team

Quick answer: If you switch tabs in a proctored online test, the platform typically logs it and applies the employer's setting: a warning, a logout after a limit, or immediate termination. As of October 2026, HackerEarth's default is 5 warnings before logout, Mettl can end the test on the first exit, and Testlify lets employers choose warn-only or terminate. One accidental switch is usually reviewed, not auto-rejected, but return to the test at once.

Key takeaways

  • Proctored online tests log every tab switch, and the employer's setting decides whether it causes a warning, a logout or termination.
  • HackerEarth logs candidates out after leaving the test environment 5 times by default, and employers can change this limit.
  • Mercer Mettl's No Warning setting terminates the test the first time a candidate leaves the test window.
  • HackerEarth Smart Browser removes a candidate who does not return within 10 seconds of the first warning.
  • Testlify employers choose between Warn, which only logs violations, and Terminate, which disqualifies the candidate at the violation limit.

If you switch tabs in a proctored online test, the platform almost always records it, and depending on the employer's setting you either get a warning, get logged out, or have the test ended on the spot. There is no single rule: each assessment platform lets the employer pick how strict to be. What is consistent is that the switch is logged in the report the employer reviews afterwards.

This guide shows what HackerEarth, Mercer Mettl and Testlify say happens, based on their help centres as of October 2026, and what to do if you switched by accident. For the wider picture of online hiring tests in India, see our online assessments guide for India.

What happens when you switch tabs in an online test?

The platform detects that the test window lost focus, logs the event, and applies whichever action the employer configured: warn, count towards a limit, or terminate. Most platforms show a warning on screen the first time, often with a count of how many exits remain. Once the limit is crossed, you are logged out or the test is ended, and whatever you had saved is what gets evaluated.

"Switching tabs" is broader than clicking another browser tab. HackerEarth's Before you begin article says leaving the test also includes opening another window or application, including antivirus or messaging pop-ups. Clicking a WhatsApp Desktop notification, an antivirus alert or a Windows update prompt can all count.

What does each platform do on a tab switch?

The result depends on the platform and the setting the employer picked. This decision table summarises the official documentation.

Platform and settingFirst switchRepeated switchesSource
HackerEarth, "log out candidates who leave the test environment" onWarning shownLogged out after the limit; default is 5 warnings, employer can change itHackerEarth proctoring settings
HackerEarth, setting offNo logout from this rule; tab switches can still count towards the integrity indexCan lower the integrity index in the reportHackerEarth release notes
HackerEarth Smart BrowserWarningRemoved from the test if you do not return within 10 seconds of the first warningHackerEarth Smart Browser settings
Mettl, browsing tolerance "No Warning"Test terminated immediatelyNot applicableMettl anti-cheating measures
Mettl, browsing tolerance with a warning countWarning; Mettl can show exits remainingTest terminated when the count is exceededMettl anti-cheating measures
Mettl, browsing tolerance "Not Applicable"Not counted by this ruleNot counted by this ruleMettl anti-cheating measures
Testlify tab proctoring, "Warn"Warning; violation loggedTest continues; every violation in the reportTestlify tab proctoring
Testlify tab proctoring, "Terminate"Violation loggedDisqualified once the violation limit is reachedTestlify tab proctoring

Two patterns stand out. First, most settings log the switch even when nothing visible happens, so "nothing happened" on screen does not mean nothing was recorded. Second, the strictest settings (Mettl's No Warning mode, HackerEarth Smart Browser's 10-second rule) give you almost no margin, which is why preparing your machine matters more than knowing the limit.

Will one accidental tab switch get you rejected?

Usually not on its own, but it is recorded and a reviewer may see it. Platforms present tab switches as data for the employer rather than an automatic verdict. Testlify, for example, explains in its proctoring flags article that minor violations trigger a yellow "potential violation" flag that calls for manual review of the recording, while confirmed issues such as multiple faces or external copy-paste lead to a red flag and a review that may invalidate the session.

So one switch caused by a pop-up, followed by an immediate return, is very different from ten switches during a coding question. The second pattern is what reviewers look for. HackerEarth's March 2024 release notes describe an integrity index that combines tab switches, webcam snapshot violations and plagiarism into one score, which shows that platforms weigh the overall pattern.

What should you do if you switched tabs by mistake?

Return to the test immediately, keep going, and tell the recruiter in writing afterwards. A short checklist:

  1. Go back to the test window at once. On HackerEarth Smart Browser, you have 10 seconds after the first warning.
  2. Close whatever caused it. If a messaging app or antivirus pop-up appeared, dismiss it from inside the test only if you can; otherwise just return.
  3. Do not try to "fix" anything in another window. Opening Settings or Task Manager mid-test is another exit.
  4. Note the time and question number.
  5. Finish the test normally. Panic costs more marks than the switch.
  6. Email the recruiter or placement cell after the test. Explain briefly what happened, for example a system notification, and offer to retake or explain in an interview.

If you were logged out, re-open the test link: some platforms and settings allow you to continue, others do not. If the link no longer works, contact the recruiter the same day.

How do you avoid accidental tab switches before the test starts?

Remove every source of pop-ups before you click Start. Most accidental exits come from the computer, not from the candidate.

Source of accidental switchFix before the test
WhatsApp Desktop, Telegram, Slack, TeamsQuit the apps fully, not just minimise
Windows or macOS notificationsTurn on Do Not Disturb or Focus mode
Windows Update or antivirus scansPause updates and scheduled scans; HackerEarth's help centre recommends turning off system updates
Browser extensions, especially AI helpersDisable them or use a clean browser profile; Testlify can detect browser AI plugins (Testlify AI plugin restriction)
Second monitor or TVDisconnect it; lockdown browsers often refuse to run with extra displays
Low battery warningsKeep the charger plugged in
Trackpad gestures that switch desktopsUse a mouse or disable multi-finger gestures

Also read the instruction screen for the exact tab-switch rule. Some platforms show how many exits you have left, which is useful to know before you start.

What do most guides on tab switching in online tests get wrong?

Most guides answer with a single number, such as "you get three warnings", or claim the browser cannot detect anything if you use a second device. Both are misleading.

There is no universal number: HackerEarth's default is 5 warnings but the employer can change it, Mettl can end the test on the first exit, and Testlify lets employers choose between warn-only and terminate. The only reliable source is the instruction screen of your test.

As for a second device, tab detection is only one layer. Mettl's documentation lists webcam AI flags for a mobile phone, another person and looking away, and HackerEarth added a "candidate looking away" snapshot category aimed at exactly that behaviour. Testlify's Focus Guard flags pop-ups from AI tools and suspicious keyboard shortcuts for review. Our explainer on whether online assessments can detect cheating covers these signals in detail.

Do campus and off-campus tests in India use these settings?

Many do, because Indian employers run campus and off-campus tests on these same platforms. Read the platform name in your invite email, then check the matching guide: our HackerEarth assessment guide, our Mercer Mettl rules guide and our HackerRank coding test tips explain each platform's test-day setup.

Related guides

FAQ

Can an online test detect if I switch tabs?

Yes, proctored tests on platforms such as HackerEarth, Mercer Mettl and Testlify detect when the test window loses focus and log each event. HackerEarth's help centre says this includes opening another app or clicking a system notification, not just another browser tab. Whether you get a warning, a logout or termination depends on the setting the employer chose.

How many tab switches are allowed in a HackerEarth test?

HackerEarth's default limit is 5 warnings before the candidate is logged out, according to its proctoring settings article, but the employer can change that number or switch the rule off. In HackerEarth's Smart Browser, you must return within 10 seconds of the first warning or you are removed. Check the instruction screen of your specific test.

Does Mettl end the test if I switch tabs?

It can. Mettl's browsing tolerance setting lets the organisation choose No Warning, which terminates the test on the first exit, or a warning count, after which the test is terminated. Mettl can also show you how many exits you have left. Treat any Mettl test as zero-tolerance unless the instructions say otherwise.

Will I be rejected for one accidental tab switch?

Usually not on that basis alone, unless the test uses a terminate-on-first-exit setting. Platforms log the switch for the employer to review, and Testlify, for instance, says minor violations call for manual review. Return to the test immediately, finish normally, and email the recruiter afterwards explaining what caused the switch.

Do notifications count as tab switching?

They can. HackerEarth's help centre says opening another application, including antivirus or messaging app pop-ups, counts as leaving the test environment. Before any proctored test, quit WhatsApp Desktop and similar apps, turn on Do Not Disturb or Focus mode, pause system updates and antivirus scans, and keep your charger plugged in.

Final thoughts

A tab switch is rarely the end of your chances, but it is always recorded, and the strictest settings give you seconds, not minutes. Clean up your machine before the test, read the tab-switch rule on the instruction screen, and spend your energy on the questions. When you are ready for the next application, browse fresher openings on Asuraa Jobs.

Related articles

Share this article

Continue Reading

Data Science Career Paths

Explore different career trajectories in data science and find your perfect fit.

Read article →

Building Your DS Portfolio

Learn how to create projects that impress hiring managers and showcase your skills.

Read article →

Salary Negotiation Guide

Get the compensation you deserve with our proven negotiation strategies.

Review Your Resume →