{"id":9416,"date":"2026-03-03T14:08:50","date_gmt":"2026-03-03T08:38:50","guid":{"rendered":"https:\/\/www.testleaf.com\/blog\/?p=9416"},"modified":"2026-03-05T17:12:51","modified_gmt":"2026-03-05T11:42:51","slug":"tech-mahindra-selenium-qa-interview-questions-2026","status":"publish","type":"post","link":"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/","title":{"rendered":"Tech Mahindra Selenium QA Interview Questions (2026): Practical Short Answers (Freshers &#038; Experienced)"},"content":{"rendered":"<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div><!--[if lt IE 9]><script>document.createElement('audio');<\/script><![endif]-->\n<audio class=\"wp-audio-shortcode\" id=\"audio-9416-1\" preload=\"none\" style=\"width: 100%;\" controls=\"controls\"><source type=\"audio\/mpeg\" src=\"https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2026\/03\/Tech-Mahindra-Selenium-QA-Interview-Questions-2026.mp3?_=1\" \/><a href=\"https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2026\/03\/Tech-Mahindra-Selenium-QA-Interview-Questions-2026.mp3\">https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2026\/03\/Tech-Mahindra-Selenium-QA-Interview-Questions-2026.mp3<\/a><\/audio>\n<h2><\/h2>\n<h2><span class=\"ez-toc-section\" id=\"Introduction\"><\/span><strong>Introduction<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#Introduction\" >Introduction<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#Quick_Answer_What_Do_Interviewers_Expect_in_Selenium_Interviews\" >Quick Answer: What Do Interviewers Expect in Selenium Interviews?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#Key_Takeaways\" >Key Takeaways<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#Categories_Covered_in_This_Guide\" >Categories Covered in This Guide<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#Tech_Mahindra_Selenium_QA_Interview_Questions_2026_with_Practical_Answers\" >Tech Mahindra Selenium QA Interview Questions (2026) with Practical Answers<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#1What_is_the_framework_you_used_in_your_project\" >1.What is the framework you used in your project<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#2_What_is_difference_between_hybrid_and_data_driven_frame_work\" >2. What is difference between hybrid and data driven frame work?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#Hybrid_Framework_vs_Data-Driven_Framework\" >Hybrid Framework vs Data-Driven Framework<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#3_Can_we_run_multiple_suites_using_TestNGxml\" >3. Can we run multiple suites using TestNG.xml<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#4_What_type_of_annotations_we_use\" >4. What type of annotations we use?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#5_Explain_about_grouping_in_testng\" >5. Explain about grouping in testng?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#6_What_is_Data_Provider\" >6. What is Data Provider?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#7_What_is_the_difference_between_Method_Overloading_and_Method_Overriding\" >7. What is the difference between Method Overloading and Method Overriding?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#8_What_is_the_difference_between_an_Interface_and_an_Abstract_Class_in_Java\" >8. What is the difference between an Interface and an Abstract Class in Java?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#9_Write_a_Java_program_to_check_whether_a_number_is_a_palindrome\" >9. Write a Java program to check whether a number is a palindrome.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#10_What_is_an_Interface_in_Java\" >10. What is an Interface in Java?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#11_What_is_a_Constructor_in_Java_What_are_its_types\" >11. What is a Constructor in Java? What are its types?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#12_What_is_an_Abstract_Class_and_Abstract_Method_in_Java\" >12. What is an Abstract Class and Abstract Method in Java?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#13_What_is_a_Set_in_Java_What_are_its_types\" >13. What is a Set in Java? What are its types?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#14_What_are_the_4_pillars_of_OOPS_in_Java\" >14. What are the 4 pillars of OOPS in Java?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#15_Write_a_Java_program_to_reverse_a_string\" >15. Write a Java program to reverse a string.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#16_What_is_the_Collections_class_in_Java\" >16. What is the Collections class in Java?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#17_What_is_the_difference_between_Test_Plan_and_Test_Strategy\" >17. What is the difference between Test Plan and Test Strategy?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#18_What_is_the_difference_between_setSpeed_and_Threadsleep_in_Selenium\" >18. What is the difference between setSpeed() and Thread.sleep() in Selenium?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#19_What_is_a_Stack_class_in_Java\" >19. What is a Stack class in Java?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#20_Write_a_Java_program_to_sort_an_array_and_a_collection\" >20. Write a Java program to sort an array and a collection.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/#FAQs\" >FAQs<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n<p>Preparing for a Selenium interview is not just about memorizing answers\u2014it\u2019s about understanding real-world automation practices.<\/p>\n<p>Most candidates fail not because they don\u2019t know Selenium, but because they struggle to explain framework design, TestNG concepts, Java fundamentals, and real-time project experience.<\/p>\n<p>This guide covers practical Selenium interview questions and answers that reflect real industry scenarios, helping you confidently handle both technical and managerial rounds.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Quick_Answer_What_Do_Interviewers_Expect_in_Selenium_Interviews\"><\/span><strong>Quick Answer: What Do Interviewers Expect in Selenium Interviews?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Interviewers expect candidates to explain real-time automation frameworks, TestNG usage, Java concepts, and problem-solving skills. Beyond theory, they look for practical experience in building scalable frameworks, handling test data, and integrating automation into CI\/CD pipelines.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Key_Takeaways\"><\/span><strong>Key Takeaways<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>&#8211; Selenium interviews focus on real project experience<br \/>\n&#8211; Hybrid frameworks are widely used in enterprise QA<br \/>\n&#8211; TestNG plays a critical role in execution and data handling<br \/>\n&#8211; Java fundamentals are essential for automation roles<br \/>\n&#8211; Problem-solving questions test logical thinking<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Categories_Covered_in_This_Guide\"><\/span><strong>Categories Covered in This Guide<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>&#8211; Selenium Framework Questions<br \/>\n&#8211; TestNG Interview Questions<br \/>\n&#8211; Java Basics for Automation<br \/>\n&#8211; Real-Time Scenario Questions<br \/>\n&#8211; Coding &amp; Logical Programs<\/p>\n<p><strong>Recommended for You:<\/strong> <a href=\"https:\/\/www.testleaf.com\/blog\/top-30-playwright-interview-questions-and-answers-2025-updated-guide\/\">playwright interview questions<\/a><\/p>\n<h1><span class=\"ez-toc-section\" id=\"Tech_Mahindra_Selenium_QA_Interview_Questions_2026_with_Practical_Answers\"><\/span><strong>Tech Mahindra Selenium QA Interview Questions (2026) with Practical Answers<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h2><span class=\"ez-toc-section\" id=\"1What_is_the_framework_you_used_in_your_project\"><\/span><strong>1.What is the framework you used in your project<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"437\" data-end=\"452\">Difficulty:<\/strong> Intermediate<br data-start=\"465\" data-end=\"468\" \/><strong>Short Answer:<\/strong> Hybrid Selenium framework using Java + TestNG + POM, with reusable utilities, reporting, and external test data.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>In our project, we implemented a custom hybrid automation framework built using Selenium WebDriver with Java, following the <a href=\"https:\/\/www.testleaf.com\/blog\/mastering-page-object-model-pom-in-selenium-a-practical-guide-with-real-examples\/\">Page Object Model (POM)<\/a> design pattern for better maintainability and reusability. The framework had a layered architecture where we designed wrapper methods around WebDriver actions to handle synchronization, exception handling, logging, and reporting in a centralized way. Test execution was managed using TestNG, leveraging features like DataProvider for data-driven testing, annotations for test flow control, and parallel execution for faster regression cycles. Test data was maintained externally in Excel using Apache POI, which allowed non-technical stakeholders to update data without modifying the code. Reporting was handled using Extent Reports for detailed step-level logs with screenshots.<\/p>\n<p><strong data-start=\"342\" data-end=\"358\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"358\" data-end=\"361\" \/>You joined a new project where there is no automation framework. How would you design a scalable Selenium framework from scratch?<\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"2_What_is_difference_between_hybrid_and_data_driven_frame_work\"><\/span><strong>2. What is difference between hybrid and data driven frame work?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"660\" data-end=\"675\">Difficulty:<\/strong> Intermediate<br data-start=\"688\" data-end=\"691\" \/><strong data-start=\"691\" data-end=\"708\">Short Answer:<\/strong> Data-driven separates test data from logic; hybrid combines POM + data-driven + utilities + reporting + CI\/CD for scalability.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>A Data-Driven Framework is primarily focused on separating test data from test logic. In this approach, the test script is written once, and multiple sets of input data are supplied from external sources like Excel, CSV, or a database. In most automation projects built using Selenium WebDriver with Java, test data is commonly managed using DataProvider from TestNG or by reading Excel files using Apache POI. The main objective of a data-driven framework is to improve reusability of test cases by executing the same test scenario with multiple data combinations without changing the code.<\/p>\n<p>On the other hand, a Hybrid Framework is a combination of multiple framework concepts designed to build a scalable and maintainable automation solution. It may include Page Object Model (POM) for better code organization, Data-Driven approach for handling test inputs, wrapper methods for reusable WebDriver actions, centralized reporting, logging, and CI\/CD integration.<\/p>\n<p>Unlike a pure data-driven framework, a hybrid framework focuses not only on test data separation but also on overall architecture, maintainability, modularity, and enterprise-level scalability. In short, data-driven is a specific technique, whereas hybrid is a comprehensive framework design that may include data-driven as one of its components.<\/p>\n<p><strong data-start=\"540\" data-end=\"556\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"556\" data-end=\"559\" \/>Your project has 100+ test cases with multiple data combinations. Would you choose a data-driven or hybrid framework? Why?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Hybrid_Framework_vs_Data-Driven_Framework\"><\/span><strong>Hybrid Framework vs Data-Driven Framework<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<table>\n<thead>\n<tr>\n<th>Feature<\/th>\n<th>Data-Driven<\/th>\n<th>Hybrid Framework<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Focus<\/td>\n<td>Test data separation<\/td>\n<td>Complete framework design<\/td>\n<\/tr>\n<tr>\n<td>Flexibility<\/td>\n<td>Limited<\/td>\n<td>High<\/td>\n<\/tr>\n<tr>\n<td>Components<\/td>\n<td>Data handling only<\/td>\n<td>POM + Data + CI\/CD<\/td>\n<\/tr>\n<tr>\n<td>Use Case<\/td>\n<td>Simple reuse<\/td>\n<td>Enterprise automation<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span class=\"ez-toc-section\" id=\"3_Can_we_run_multiple_suites_using_TestNGxml\"><\/span><strong>3. Can we run multiple suites using TestNG.xml<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"889\" data-end=\"904\">Difficulty:<\/strong> Intermediate<br data-start=\"917\" data-end=\"920\" \/><strong data-start=\"920\" data-end=\"937\">Short Answer:<\/strong> Yes\u2014use multiple <code data-start=\"955\" data-end=\"963\">&lt;test&gt;<\/code> tags in one suite or execute multiple XML files via Maven\/Jenkins.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>Yes, we can run multiple test suites using TestNG, but it depends on how we structure the XML files.<\/p>\n<p>In TestNG, each testng.xml file represents one &lt;suite&gt; tag. However, you can execute multiple suites in two ways. First, you can define multiple &lt;test&gt; tags inside a single &lt;suite&gt; in one XML file. Each &lt;test&gt; can represent a different module, feature, or regression pack, and they will execute under the same suite configuration.<\/p>\n<p>Second, if you have completely separate XML files (for example, smoke.xml, regression.xml), you can run them together from build tools like Maven using the Surefire plugin, or trigger them via <a href=\"https:\/\/www.testleaf.com\/blog\/retry-logic-ci-cd-handle-flaky-tests\/\">CI\/CD<\/a> tools like Jenkins by configuring multiple suite files in the job.<\/p>\n<p><strong data-start=\"733\" data-end=\"749\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"749\" data-end=\"752\" \/>Your team needs to run smoke, sanity, and regression suites in parallel in CI\/CD. How would you configure TestNG XML for this?<\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"4_What_type_of_annotations_we_use\"><\/span><strong>4. What type of annotations we use?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"1085\" data-end=\"1100\">Difficulty:<\/strong> Beginner<br data-start=\"1109\" data-end=\"1112\" \/><strong data-start=\"1112\" data-end=\"1129\">Short Answer:<\/strong> Use <code data-start=\"1134\" data-end=\"1166\">@BeforeSuite\/Test\/Class\/Method<\/code>, <code data-start=\"1168\" data-end=\"1179\">@After...<\/code>, <code data-start=\"1181\" data-end=\"1188\">@Test<\/code>, and <code data-start=\"1194\" data-end=\"1209\">@DataProvider<\/code> to control setup, teardown, and execution.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>In our automation framework, we mainly use annotations provided by TestNG to control execution flow, setup, teardown, grouping, and data handling.<\/p>\n<p>At the suite and test level, we use annotations like @BeforeSuite, @AfterSuite, @BeforeTest, and @AfterTest to manage high-level configurations such as initializing reports, database connections, or browser setup.<\/p>\n<p>At the class and method level, we commonly use @BeforeClass, @AfterClass, @BeforeMethod, and @AfterMethod to handle browser launch, login setup<\/p>\n<p>For actual test execution, we use @Test to define test cases, along with attributes like priority, groups, dependsOnMethods, invocationCount, and enabled to control execution behavior. For data-driven testing, we use @DataProvider to supply multiple sets of data to test methods.<\/p>\n<p><strong data-start=\"915\" data-end=\"931\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"931\" data-end=\"934\" \/>You need to execute login before every test method and close the browser after execution. Which annotations would you use and why?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"5_Explain_about_grouping_in_testng\"><\/span><strong>5. Explain about grouping in testng?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"1289\" data-end=\"1304\">Difficulty:<\/strong> Beginner<br data-start=\"1313\" data-end=\"1316\" \/><strong data-start=\"1316\" data-end=\"1333\">Short Answer:<\/strong> Grouping categorizes tests (smoke\/regression\/sanity) so you can run selected packs instead of the full suite.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>Grouping in TestNG is a feature that allows us to categorize test methods into logical groups so that we can execute specific sets of tests instead of running the entire suite.<\/p>\n<p>In real-time projects, we may have hundreds of test cases. Using the groups attribute inside the @Test annotation, we can classify tests as smoke, regression, sanity, integration, etc. This helps in running only required test packs based on project needs, like running smoke tests after every build and regression tests before release.<\/p>\n<p><strong data-start=\"1101\" data-end=\"1117\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"1117\" data-end=\"1120\" \/>You have 500 test cases but need to run only smoke tests after every build. How would you use TestNG grouping?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"6_What_is_Data_Provider\"><\/span><strong>6. What is Data Provider?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"1474\" data-end=\"1489\">Difficulty:<\/strong> Beginner<br data-start=\"1498\" data-end=\"1501\" \/><strong data-start=\"1501\" data-end=\"1518\">Short Answer:<\/strong> A <a href=\"https:\/\/www.testleaf.com\/blog\/learn-15-testng-annotations-for-enhanced-selenium-testing\/\">TestNG<\/a> feature that runs the same test multiple times with different input datasets.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>Data Provider is a feature in TestNG that allows a test method to run multiple times with different sets of data.<\/p>\n<p>Instead of writing separate test cases for different input values, we define a method annotated with @DataProvider that returns multiple data sets. The test method then consumes this data using the dataProvider attribute in the @Test annotation.<\/p>\n<p><strong data-start=\"1262\" data-end=\"1278\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"1278\" data-end=\"1281\" \/>You need to test login functionality with 50 different user credentials. How would you implement this using DataProvider?<\/p>\n<p><strong>Other Useful Guides:<\/strong> <a href=\"https:\/\/www.testleaf.com\/blog\/100-manual-testing-interview-questions-and-answers-2025\/\">manual testing interview questions<\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"7_What_is_the_difference_between_Method_Overloading_and_Method_Overriding\"><\/span><strong>7. What is the difference between Method Overloading and Method Overriding?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"1892\" data-end=\"1907\">Difficulty:<\/strong> Intermediate<br data-start=\"1920\" data-end=\"1923\" \/><strong data-start=\"1923\" data-end=\"1940\">Short Answer:<\/strong> Overloading = same method name, different parameters (compile-time); overriding = subclass redefines parent method (runtime).<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>Method Overloading and Method Overriding are core concepts of Java used to achieve polymorphism, but they work in different ways.<\/p>\n<p>Method Overloading happens when multiple methods in the same class have the same method name but different parameter lists (different number, type, or order of parameters). It is resolved at compile time, it is called compile-time polymorphism. Overloading improves readability and reusability within the same class.<\/p>\n<p>Method Overriding happens when a child class provides a specific implementation of a method that is already defined in its parent class. The method name, return type, and parameters must be the same. It is resolved at runtime, it is called runtime polymorphism. Overriding supports dynamic behavior and inheritance.<\/p>\n<p><strong data-start=\"1652\" data-end=\"1668\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"1668\" data-end=\"1671\" \/>You created multiple <code data-start=\"1692\" data-end=\"1701\">click()<\/code> methods with different parameters in your framework. Is this overloading or overriding? Why?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"8_What_is_the_difference_between_an_Interface_and_an_Abstract_Class_in_Java\"><\/span><strong>8. What is the difference between an Interface and an Abstract Class in Java?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"2104\" data-end=\"2119\">Difficulty:<\/strong> Intermediate<br data-start=\"2132\" data-end=\"2135\" \/><strong data-start=\"2135\" data-end=\"2152\">Short Answer:<\/strong> Interface defines contracts (multiple inheritance); abstract class provides partial implementation (single inheritance).<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>In Java, both Interface and Abstract Class are used to achieve abstraction, but they serve different purposes.<\/p>\n<p>An Interface is a completely abstract blueprint. It defines method declarations without implementation, Before Java 8, all methods in an interface were abstract by default. From Java 8 onwards, interfaces can also contain default and static methods with implementation. A class implements an interface using the implements keyword, and it can implement multiple interfaces, which supports multiple inheritance.<\/p>\n<p>An Abstract Class is a partially implemented class. It can contain both abstract methods (without body) and Implemented methods. A class extends an abstract class using the extends keyword, but it can extend only one abstract class because Java does not support multiple inheritance with classes.<\/p>\n<p><strong data-start=\"1840\" data-end=\"1856\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"1856\" data-end=\"1859\" \/>You want to create reusable browser actions across different classes. Would you use an interface or abstract class?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"9_Write_a_Java_program_to_check_whether_a_number_is_a_palindrome\"><\/span><strong>9. Write a Java program to check whether a number is a palindrome.<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"2311\" data-end=\"2326\">Difficulty:<\/strong> Beginner<br data-start=\"2335\" data-end=\"2338\" \/><strong data-start=\"2338\" data-end=\"2355\">Short Answer:<\/strong> Reverse the number and compare with original; if equal, it\u2019s a palindrome.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<pre>package dobtClarificationSession;\r\n\r\npublic class Palindrome {\r\n\r\n\u00a0\u00a0\u00a0 public static void main(String[] args) {\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 int input = 1221;\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Number to be checked\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 int output = 0;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Variable to store reversed number\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 int rem;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Variable to store remainder\r\n\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Loop to reverse the number\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 for (int i = input; i &gt; 0; i = i \/ 10) {\r\n\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 rem = i % 10;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Get last digit\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 output = (output * 10) + rem; \/\/ Build reversed number\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 System.out.println(\"output \" + output);\r\n\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 }\r\n\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/\/ Check palindrome\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if (input == output)\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 System.out.println(\"Number is palindrome\");\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 else\r\n\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 System.out.println(\"Number is not palindrome\");\r\n\r\n\u00a0\u00a0\u00a0 }\r\n\r\n}<\/pre>\n<p><strong>\ud83d\udcbc Scenario:<br data-start=\"2028\" data-end=\"2031\" \/><\/strong>You receive numeric test data from an API and need to validate its pattern. How would you check if it&#8217;s a palindrome?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"10_What_is_an_Interface_in_Java\"><\/span><strong>10. What is an Interface in Java?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"2467\" data-end=\"2482\">Difficulty:<\/strong> Beginner<br data-start=\"2491\" data-end=\"2494\" \/><strong data-start=\"2494\" data-end=\"2511\">Short Answer:<\/strong> An interface is a contract of method declarations implemented by classes; supports abstraction and multiple inheritance.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>In Java, an Interface is a blueprint of a class that is used to achieve abstraction and multiple inheritance. It defines a set of method declarations that a class must implement. By default, all methods inside an interface are abstract (before Java 8). From Java 8 onwards, interfaces can also contain default and static methods with implementation. A class implements an interface using the implements keyword, and one class can implement multiple interfaces, which allows multiple inheritance in Java.<\/p>\n<p><strong data-start=\"2185\" data-end=\"2201\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"2201\" data-end=\"2204\" \/>You need to support multiple browser drivers dynamically. How would you use interfaces to design this?<\/p>\n<p><strong>Further Reading<\/strong>: <a href=\"https:\/\/www.testleaf.com\/blog\/top-25-cts-cognizant-java-selenium-interview-questions-and-answers-2026-for-2-to-5-years-experience\/\">Java selenium interview questions<\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"11_What_is_a_Constructor_in_Java_What_are_its_types\"><\/span><strong>11. What is a Constructor in Java? What are its types?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"2672\" data-end=\"2687\">Difficulty:<\/strong> Beginner<br data-start=\"2696\" data-end=\"2699\" \/><strong data-start=\"2699\" data-end=\"2716\">Short Answer:<\/strong> Constructor initializes objects; types are default and parameterized.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>In Java, a constructor is a special method used to initialize objects. It has the same name as the class and is automatically called when an object is created using the new keyword. A constructor does not have a return type (not even void). Its main purpose is to initialize instance variables, allocate resources, or perform setup activities when the object is created.<\/p>\n<p><strong>Types of Constructors<\/strong><\/p>\n<p>Default Constructor \u2013 Provided by the compiler if no constructor is defined.<\/p>\n<p>Parameterized Constructor \u2013 Accepts parameters to initialize variables with specific values.<\/p>\n<p><strong data-start=\"2345\" data-end=\"2361\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"2361\" data-end=\"2364\" \/>How would you use constructors to initialize WebDriver and page objects in your framework?<\/p>\n<p><a href=\"https:\/\/www.testleaf.com\/course\/selenium-automation-certification-training-course.html?utm_source=blog_post&amp;utm_medium=Organic&amp;utm_campaign=Blog_Post\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-5159 size-full\" src=\"https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/06\/Selenium.jpg\" alt=\"Selenium training in chennai\" width=\"2048\" height=\"512\" srcset=\"https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/06\/Selenium.jpg 2048w, https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/06\/Selenium-300x75.jpg 300w, https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/06\/Selenium-1024x256.jpg 1024w, https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/06\/Selenium-768x192.jpg 768w, https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/06\/Selenium-1536x384.jpg 1536w, https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/06\/Selenium-150x38.jpg 150w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"12_What_is_an_Abstract_Class_and_Abstract_Method_in_Java\"><\/span><strong>12. What is an Abstract Class and Abstract Method in Java?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"2833\" data-end=\"2848\">Difficulty:<\/strong> Intermediate<br data-start=\"2861\" data-end=\"2864\" \/><strong data-start=\"2864\" data-end=\"2881\">Short Answer:<\/strong> Abstract class can\u2019t be instantiated; abstract methods have no body and must be implemented by child classes.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>In Java, an abstract class is a class that cannot be instantiated (we cannot create an object of it directly). It is declared using the abstract keyword and is mainly used to achieve partial abstraction.<\/p>\n<p>An abstract method is a method that is declared without implementation (without a body). It must be implemented by the child class that extends the abstract class.<\/p>\n<p><strong data-start=\"2498\" data-end=\"2514\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"2514\" data-end=\"2517\" \/>You want common methods like <code data-start=\"2546\" data-end=\"2561\">openBrowser()<\/code> available across all test classes. How would you design this using abstract class?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"13_What_is_a_Set_in_Java_What_are_its_types\"><\/span><strong>13. What is a Set in Java? What are its types?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"3029\" data-end=\"3044\">Difficulty:<\/strong> Beginner<br data-start=\"3053\" data-end=\"3056\" \/><strong data-start=\"3056\" data-end=\"3073\">Short Answer:<\/strong> Set stores unique values; common types are HashSet, LinkedHashSet, TreeSet.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>In Java, a Set is an interface in the Collection Framework that stores unique elements. It does not allow duplicate values and does not maintain index-based access like List.<\/p>\n<p>The Set interface belongs to java.util package and is mainly implemented by classes like HashSet, LinkedHashSet, and TreeSet.<\/p>\n<p><strong>Types of Set Implementations<\/strong><\/p>\n<p>HashSet \u2192 Does not maintain insertion order<\/p>\n<p>LinkedHashSet \u2192 Maintains insertion order<\/p>\n<p>TreeSet \u2192 Maintains sorted order<\/p>\n<p><strong data-start=\"2675\" data-end=\"2691\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"2691\" data-end=\"2694\" \/>You need to validate that no duplicate values exist in a dropdown. How would you use Set?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"14_What_are_the_4_pillars_of_OOPS_in_Java\"><\/span><strong>14. What are the 4 pillars of OOPS in Java?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"3181\" data-end=\"3196\">Difficulty:<\/strong> Beginner<br data-start=\"3205\" data-end=\"3208\" \/><strong data-start=\"3208\" data-end=\"3225\">Short Answer:<\/strong> Inheritance, Polymorphism, Encapsulation, Abstraction\u2014core principles for reusable and maintainable code.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>In Java, OOPS (Object-Oriented Programming System) is a programming paradigm based on the concept of objects and classes. It helps in organizing code in a structured, reusable, and maintainable way.<\/p>\n<p><strong>4 Pillars of OOPS<\/strong><\/p>\n<p><strong>Inheritance<\/strong><\/p>\n<p>Acquiring properties and behaviors from a parent class using extends.<\/p>\n<p><strong>Polymorphism<\/strong><\/p>\n<p>Ability of an object to take many forms:<\/p>\n<p>Compile-time \u2192 Method Overloading<\/p>\n<p>Runtime \u2192 Method Overriding<\/p>\n<p><strong>Encapsulation<\/strong><\/p>\n<p>Binding data (variables) and methods together inside a class and restricting direct access using access modifiers.<\/p>\n<p><strong>Abstraction<\/strong><\/p>\n<p>Hiding implementation details and showing only essential features (using abstract class and interface).<\/p>\n<p><strong data-start=\"2816\" data-end=\"2832\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"2832\" data-end=\"2835\" \/>How do you apply <a href=\"https:\/\/en.wikipedia.org\/wiki\/Object-oriented_programming\">OOPS concepts<\/a> like inheritance and encapsulation in Page Object Model?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"15_Write_a_Java_program_to_reverse_a_string\"><\/span><strong>15. Write a Java program to reverse a string.<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"3373\" data-end=\"3388\">Difficulty:<\/strong> Beginner<br data-start=\"3397\" data-end=\"3400\" \/><strong data-start=\"3400\" data-end=\"3417\">Short Answer:<\/strong> Convert to char array and print from last index to first (or use StringBuilder reverse).<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<pre>public static void main(String[] args) {\r\n\r\nString companyName = \"TestLeaf\";\r\n\r\nchar[] charArray = companyName.toCharArray();\r\n\r\nfor(int i = charArray.length-1;i&gt;=0;i--) {\r\n\r\nSystem.out.print(charArray[i]);\r\n\r\n}\r\n\r\n}<\/pre>\n<p><strong>\ud83d\udcbc Scenario:<br data-start=\"2980\" data-end=\"2983\" \/><\/strong>You need to validate reversed UI text or masked data. How would you implement this logic?<\/p>\n<p><strong>See Also:<\/strong> <a href=\"https:\/\/www.testleaf.com\/blog\/top-60-api-testing-interview-questions-for-fresher-to-experience-2025\/\">API testing interview questions<\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"16_What_is_the_Collections_class_in_Java\"><\/span><strong>16. What is the Collections class in Java?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"3551\" data-end=\"3566\">Difficulty:<\/strong> Intermediate<br data-start=\"3579\" data-end=\"3582\" \/><strong data-start=\"3582\" data-end=\"3599\">Short Answer:<\/strong> Utility class with static methods like sort, reverse, shuffle, min\/max for collections.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p><strong>\u00a0<\/strong>Collections is a utility class in Java that provides static methods to perform operations such as sorting, searching, reversing, and shuffling on collection objects. It simplifies common collection operations without requiring custom logic.<\/p>\n<p><strong data-start=\"3109\" data-end=\"3125\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"3125\" data-end=\"3128\" \/>You extract a list of product prices and need to sort them before validation. How would you use Collections?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"17_What_is_the_difference_between_Test_Plan_and_Test_Strategy\"><\/span><strong>17. What is the difference between Test Plan and <a href=\"https:\/\/www.testleaf.com\/blog\/top-10-test-strategy-optimization-techniques-for-2025\/\">Test Strategy<\/a>?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"3725\" data-end=\"3740\">Difficulty:<\/strong> Intermediate<br data-start=\"3753\" data-end=\"3756\" \/><strong data-start=\"3756\" data-end=\"3773\">Short Answer:<\/strong> Test Plan is project-specific execution details; Test Strategy is high-level approach and standards.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>A Test Plan is a detailed document that describes what to test, how to test, when to test, and who will test. It is project-specific and includes scope, objectives, resources, schedule, tools, test environment, entry and exit criteria, risks, and deliverables.<\/p>\n<p>A Test Strategy is a high-level document that defines the overall testing approach followed across the organization or project. It describes testing types, tools to be used, standards, and guidelines.<\/p>\n<p><strong data-start=\"3282\" data-end=\"3298\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"3298\" data-end=\"3301\" \/>Your manager asks for both Test Plan and Strategy for a release. How would you differentiate and explain them?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"18_What_is_the_difference_between_setSpeed_and_Threadsleep_in_Selenium\"><\/span><strong>18. What is the difference between setSpeed() and Thread.sleep() in Selenium?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"3930\" data-end=\"3945\">Difficulty:<\/strong> Intermediate<br data-start=\"3958\" data-end=\"3961\" \/><strong data-start=\"3961\" data-end=\"3978\">Short Answer:<\/strong> setSpeed (Selenium RC) is obsolete; Thread.sleep is a static wait\u2014prefer explicit waits in WebDriver.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p>setSpeed() was used in Selenium RC to slow down execution globally between commands, but it is not available in Selenium WebDriver. Thread.sleep() is a Java method that pauses execution for a fixed amount of time, but it is not recommended in automation frameworks because it introduces unnecessary static waits. Instead, explicit waits are preferred.<\/p>\n<p><strong data-start=\"3459\" data-end=\"3475\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"3475\" data-end=\"3478\" \/>Your test fails due to element not loading. Would you use Thread.sleep() or explicit waits? Why?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"19_What_is_a_Stack_class_in_Java\"><\/span><strong>19. What is a Stack class in Java?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"4111\" data-end=\"4126\">Difficulty:<\/strong> Beginner<br data-start=\"4135\" data-end=\"4138\" \/><strong data-start=\"4138\" data-end=\"4155\">Short Answer:<\/strong> Stack is a LIFO data structure with push\/pop\/peek; used for undo, recursion, navigation-like flows.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p><strong>\u00a0<\/strong>Stack is a class in Java that follows the Last-In-First-Out principle. It extends the Vector class and provides methods like push(), pop(), and peek() to perform stack operations. It is mainly used in scenarios like undo operations, expression evaluation, and recursion handling.<\/p>\n<p><strong>\ud83d\udcbc Scenario:<br data-start=\"3621\" data-end=\"3624\" \/><\/strong>While testing browser navigation (back\/forward), how does the stack concept apply?<\/p>\n<h2><span class=\"ez-toc-section\" id=\"20_Write_a_Java_program_to_sort_an_array_and_a_collection\"><\/span><strong>20. Write a Java program to sort an array and a collection.<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong data-start=\"4303\" data-end=\"4318\">Difficulty:<\/strong> Beginner<br data-start=\"4327\" data-end=\"4330\" \/><strong data-start=\"4330\" data-end=\"4347\">Short Answer:<\/strong> Use <code data-start=\"4352\" data-end=\"4367\">Arrays.sort()<\/code> for arrays and <code data-start=\"4383\" data-end=\"4403\">Collections.sort()<\/code> for lists; then validate sorted order.<\/p>\n<p><strong>Detailed Answer:<\/strong><\/p>\n<p><strong>\/\/Array<\/strong><\/p>\n<pre>import java.util.Arrays;\r\n\r\npublic class SortingArray{\r\n\r\npublic static void main(String[] args) {\r\n\r\nint[] arr = {5, 2, 9, 1, 6};\r\n\r\nArrays.sort(arr);\r\n\r\nSystem.out.println(\"Sorted Array:\");\r\n\r\nfor (int num : arr) {\r\n\r\nSystem.out.print(num + \" \");\r\n\r\n}\r\n\r\n}\r\n\r\n}<\/pre>\n<p>\/\/Collection<\/p>\n<pre>import java.util.*;\r\n\r\npublic class CollectionSorting {\r\n\r\npublic static void main(String[] args) {\r\n\r\nList&lt;Integer&gt; list = new ArrayList&lt;&gt;();\r\n\r\nlist.add(5);\r\n\r\nlist.add(2);\r\n\r\nlist.add(9);\r\n\r\nlist.add(1);\r\n\r\nlist.add(6);\r\n\r\nCollections.sort(list);\r\n\r\nSystem.out.println(\"Sorted List:\");\r\n\r\nSystem.out.println(list);\r\n\r\n}\r\n\r\n}\r\n<\/pre>\n<p><strong data-start=\"3741\" data-end=\"3757\">\ud83d\udcbc Scenario:<\/strong><br data-start=\"3757\" data-end=\"3760\" \/>You need to verify if products are sorted correctly on a webpage. How would you implement sorting validation?<\/p>\n<h3 data-start=\"4407\" data-end=\"4424\"><strong>Final Thoughts<\/strong><\/h3>\n<p data-start=\"4426\" data-end=\"4538\">Selenium interviews are no longer just about tools\u2014they are about <strong data-start=\"4492\" data-end=\"4537\">how you think, design, and solve problems<\/strong>.<\/p>\n<p data-start=\"4540\" data-end=\"4709\">Understanding frameworks, TestNG, and Java concepts gives you a strong foundation, but what truly sets you apart is your ability to explain real-world scenarios clearly.<\/p>\n<p data-start=\"4711\" data-end=\"4763\">Focus on learning concepts deeply, not just answers.<\/p>\n<p data-start=\"4765\" data-end=\"4856\">Because in today\u2019s QA world, <strong data-start=\"4794\" data-end=\"4856\">knowledge gets you shortlisted\u2014but clarity gets you hired.<\/strong><\/p>\n<p data-start=\"4765\" data-end=\"4856\">If you want to master real-time automation and crack interviews confidently, joining a structured program like <a href=\"https:\/\/www.testleaf.com\/course\/selenium-automation-certification-training-course.html?utm_source=blog_post&amp;utm_medium=Organic&amp;utm_campaign=Blog_Post\"><strong data-start=\"5040\" data-end=\"5072\">Selenium training in chennai<\/strong><\/a> can help you gain hands-on experience with frameworks, CI\/CD, and real-world projects.<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<h2 data-start=\"140\" data-end=\"179\"><span class=\"ez-toc-section\" id=\"FAQs\"><\/span><strong>FAQs<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>\t<div class=\"tlfaq\" id=\"tlfaq-e89e2f2e-3e9f-45e7-b36d-0f30d13a6875\"\n\t     data-single-open=\"1\">\n\t\t\n\t\t<div class=\"tlfaq__items\" role=\"region\" aria-label=\"FAQ\">\n\t\t\t\t\t\t\t<details class=\"tlfaq__item\" open id=\"tlfaq-e89e2f2e-3e9f-45e7-b36d-0f30d13a6875-0\">\n\t\t\t\t\t<summary class=\"tlfaq__question\">\n\t\t\t\t\t\t<span class=\"tlfaq__qtext\">What are the most common Selenium interview questions?<\/span>\n\t\t\t\t\t\t<span class=\"tlfaq__icon\" aria-hidden=\"true\"><\/span>\n\t\t\t\t\t<\/summary>\n\t\t\t\t\t<div class=\"tlfaq__answer\">\n\t\t\t\t\t\tCommon Selenium interview questions include framework design, TestNG usage, waits, locators, exception handling, and real-time automation scenarios.\t\t\t\t\t<\/div>\n\t\t\t\t<\/details>\n\t\t\t\t\t\t\t\t<details class=\"tlfaq__item\"  id=\"tlfaq-e89e2f2e-3e9f-45e7-b36d-0f30d13a6875-1\">\n\t\t\t\t\t<summary class=\"tlfaq__question\">\n\t\t\t\t\t\t<span class=\"tlfaq__qtext\">What is a hybrid framework in Selenium?<\/span>\n\t\t\t\t\t\t<span class=\"tlfaq__icon\" aria-hidden=\"true\"><\/span>\n\t\t\t\t\t<\/summary>\n\t\t\t\t\t<div class=\"tlfaq__answer\">\n\t\t\t\t\t\tA hybrid framework in Selenium combines multiple approaches like Page Object Model, data-driven testing, reusable utilities, and CI\/CD integration for scalable automation.\t\t\t\t\t<\/div>\n\t\t\t\t<\/details>\n\t\t\t\t\t\t\t\t<details class=\"tlfaq__item\"  id=\"tlfaq-e89e2f2e-3e9f-45e7-b36d-0f30d13a6875-2\">\n\t\t\t\t\t<summary class=\"tlfaq__question\">\n\t\t\t\t\t\t<span class=\"tlfaq__qtext\">Why is TestNG used in Selenium?<\/span>\n\t\t\t\t\t\t<span class=\"tlfaq__icon\" aria-hidden=\"true\"><\/span>\n\t\t\t\t\t<\/summary>\n\t\t\t\t\t<div class=\"tlfaq__answer\">\n\t\t\t\t\t\tTestNG is used in Selenium to manage test execution, support data-driven testing, enable parallel execution, and organize tests using annotations and groups.\t\t\t\t\t<\/div>\n\t\t\t\t<\/details>\n\t\t\t\t\t\t\t\t<details class=\"tlfaq__item\"  id=\"tlfaq-e89e2f2e-3e9f-45e7-b36d-0f30d13a6875-3\">\n\t\t\t\t\t<summary class=\"tlfaq__question\">\n\t\t\t\t\t\t<span class=\"tlfaq__qtext\">What is the difference between Selenium IDE and WebDriver?<\/span>\n\t\t\t\t\t\t<span class=\"tlfaq__icon\" aria-hidden=\"true\"><\/span>\n\t\t\t\t\t<\/summary>\n\t\t\t\t\t<div class=\"tlfaq__answer\">\n\t\t\t\t\t\tSelenium IDE is a record-and-playback tool for beginners, while Selenium WebDriver is a code-based framework used for scalable and flexible automation.\t\t\t\t\t<\/div>\n\t\t\t\t<\/details>\n\t\t\t\t\t\t\t\t<details class=\"tlfaq__item\"  id=\"tlfaq-e89e2f2e-3e9f-45e7-b36d-0f30d13a6875-4\">\n\t\t\t\t\t<summary class=\"tlfaq__question\">\n\t\t\t\t\t\t<span class=\"tlfaq__qtext\">How do you handle synchronization in Selenium?<\/span>\n\t\t\t\t\t\t<span class=\"tlfaq__icon\" aria-hidden=\"true\"><\/span>\n\t\t\t\t\t<\/summary>\n\t\t\t\t\t<div class=\"tlfaq__answer\">\n\t\t\t\t\t\tSynchronization in Selenium is handled using waits such as implicit wait, explicit wait, and fluent wait to ensure elements are loaded before interaction.\t\t\t\t\t<\/div>\n\t\t\t\t<\/details>\n\t\t\t\t\t\t\t\t<details class=\"tlfaq__item\"  id=\"tlfaq-e89e2f2e-3e9f-45e7-b36d-0f30d13a6875-5\">\n\t\t\t\t\t<summary class=\"tlfaq__question\">\n\t\t\t\t\t\t<span class=\"tlfaq__qtext\">What is the role of Page Object Model in Selenium?<\/span>\n\t\t\t\t\t\t<span class=\"tlfaq__icon\" aria-hidden=\"true\"><\/span>\n\t\t\t\t\t<\/summary>\n\t\t\t\t\t<div class=\"tlfaq__answer\">\n\t\t\t\t\t\tPage Object Model (POM) improves code maintainability by separating page elements and actions into reusable classes, reducing duplication and improving readability.\t\t\t\t\t<\/div>\n\t\t\t\t<\/details>\n\t\t\t\t\t\t\t\t<details class=\"tlfaq__item\"  id=\"tlfaq-e89e2f2e-3e9f-45e7-b36d-0f30d13a6875-6\">\n\t\t\t\t\t<summary class=\"tlfaq__question\">\n\t\t\t\t\t\t<span class=\"tlfaq__qtext\">Can Selenium be used for API testing?<\/span>\n\t\t\t\t\t\t<span class=\"tlfaq__icon\" aria-hidden=\"true\"><\/span>\n\t\t\t\t\t<\/summary>\n\t\t\t\t\t<div class=\"tlfaq__answer\">\n\t\t\t\t\t\tNo, Selenium is mainly used for UI testing. API testing is usually done using tools like RestAssured or Postman.\t\t\t\t\t<\/div>\n\t\t\t\t<\/details>\n\t\t\t\t\t\t\t\t<details class=\"tlfaq__item\"  id=\"tlfaq-e89e2f2e-3e9f-45e7-b36d-0f30d13a6875-7\">\n\t\t\t\t\t<summary class=\"tlfaq__question\">\n\t\t\t\t\t\t<span class=\"tlfaq__qtext\">What programming languages are used with Selenium?<\/span>\n\t\t\t\t\t\t<span class=\"tlfaq__icon\" aria-hidden=\"true\"><\/span>\n\t\t\t\t\t<\/summary>\n\t\t\t\t\t<div class=\"tlfaq__answer\">\n\t\t\t\t\t\tSelenium supports multiple languages including Java, Python, C#, and JavaScript, with Java being the most commonly used in enterprise automation.\t\t\t\t\t<\/div>\n\t\t\t\t<\/details>\n\t\t\t\t\t\t\t\t<details class=\"tlfaq__item\"  id=\"tlfaq-e89e2f2e-3e9f-45e7-b36d-0f30d13a6875-8\">\n\t\t\t\t\t<summary class=\"tlfaq__question\">\n\t\t\t\t\t\t<span class=\"tlfaq__qtext\">How do you explain your automation framework in interviews?<\/span>\n\t\t\t\t\t\t<span class=\"tlfaq__icon\" aria-hidden=\"true\"><\/span>\n\t\t\t\t\t<\/summary>\n\t\t\t\t\t<div class=\"tlfaq__answer\">\n\t\t\t\t\t\tExplain the framework structure, tools used (Selenium, TestNG), design patterns (POM), data handling, reporting, and CI\/CD integration clearly with real-time examples.\t\t\t\t\t<\/div>\n\t\t\t\t<\/details>\n\t\t\t\t\t\t\t\t<details class=\"tlfaq__item\"  id=\"tlfaq-e89e2f2e-3e9f-45e7-b36d-0f30d13a6875-9\">\n\t\t\t\t\t<summary class=\"tlfaq__question\">\n\t\t\t\t\t\t<span class=\"tlfaq__qtext\">How can I prepare for Selenium interviews effectively?<\/span>\n\t\t\t\t\t\t<span class=\"tlfaq__icon\" aria-hidden=\"true\"><\/span>\n\t\t\t\t\t<\/summary>\n\t\t\t\t\t<div class=\"tlfaq__answer\">\n\t\t\t\t\t\tFocus on understanding concepts, practicing real-time scenarios, building frameworks, and explaining your project experience clearly rather than memorizing answers.\t\t\t\t\t<\/div>\n\t\t\t\t<\/details>\n\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<script type=\"application\/ld+json\">\n\t\t\t\t{\"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"What are the most common Selenium interview questions?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Common Selenium interview questions include framework design, TestNG usage, waits, locators, exception handling, and real-time automation scenarios.\"}},{\"@type\":\"Question\",\"name\":\"What is a hybrid framework in Selenium?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"A hybrid framework in Selenium combines multiple approaches like Page Object Model, data-driven testing, reusable utilities, and CI\/CD integration for scalable automation.\"}},{\"@type\":\"Question\",\"name\":\"Why is TestNG used in Selenium?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"TestNG is used in Selenium to manage test execution, support data-driven testing, enable parallel execution, and organize tests using annotations and groups.\"}},{\"@type\":\"Question\",\"name\":\"What is the difference between Selenium IDE and WebDriver?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Selenium IDE is a record-and-playback tool for beginners, while Selenium WebDriver is a code-based framework used for scalable and flexible automation.\"}},{\"@type\":\"Question\",\"name\":\"How do you handle synchronization in Selenium?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Synchronization in Selenium is handled using waits such as implicit wait, explicit wait, and fluent wait to ensure elements are loaded before interaction.\"}},{\"@type\":\"Question\",\"name\":\"What is the role of Page Object Model in Selenium?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Page Object Model (POM) improves code maintainability by separating page elements and actions into reusable classes, reducing duplication and improving readability.\"}},{\"@type\":\"Question\",\"name\":\"Can Selenium be used for API testing?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No, Selenium is mainly used for UI testing. API testing is usually done using tools like RestAssured or Postman.\"}},{\"@type\":\"Question\",\"name\":\"What programming languages are used with Selenium?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Selenium supports multiple languages including Java, Python, C#, and JavaScript, with Java being the most commonly used in enterprise automation.\"}},{\"@type\":\"Question\",\"name\":\"How do you explain your automation framework in interviews?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Explain the framework structure, tools used (Selenium, TestNG), design patterns (POM), data handling, reporting, and CI\/CD integration clearly with real-time examples.\"}},{\"@type\":\"Question\",\"name\":\"How can I prepare for Selenium interviews effectively?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Focus on understanding concepts, practicing real-time scenarios, building frameworks, and explaining your project experience clearly rather than memorizing answers.\"}}]}\t\t\t<\/script>\n\t\t\t<\/div>\n\t<\/strong><\/p>\n<h5><strong>We Also Provide Training In:<\/strong><\/h5>\n<ul>\n<li><a href=\"https:\/\/www.testleaf.com\/course\/selenium-automation-certification-training-course.html?utm_source=blog_post&amp;utm_medium=Organic&amp;utm_campaign=Blog_Post\"><strong>Advanced Selenium Training<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/www.testleaf.com\/course\/playwright.html?utm_source=blog-post&amp;utm_medium=Organic&amp;utm_campaign=Blog_Post\"><strong>Playwright Training<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/www.testleaf.com\/course\/genai-qa-engineers-training-course.html?utm_source=blog-post&amp;utm_medium=Organic&amp;utm_campaign=Blog_Post\"><strong>Gen AI Training<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/www.testleaf.com\/course\/aws-cloud-architect-certification-training-course.html?utm_source=blog-post&amp;utm_medium=Organic&amp;utm_campaign=Blog_Post\"><strong>AWS Training<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/www.testleaf.com\/course\/rest-api-testing-certification-training-course.html?utm_source=blog-post&amp;utm_medium=Organic&amp;utm_campaign=Blog_Post\"><strong>REST API Training<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/www.testleaf.com\/course\/full-stack-developer-certification-training-course.html?utm_source=blog-post&amp;utm_medium=Organic&amp;utm_campaign=Blog_Post\"><strong>Full Stack Training<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/www.testleaf.com\/course\/appium-mobile-automation-certification-training-course.html?utm_source=blog-post&amp;utm_medium=Organic&amp;utm_campaign=Blog_Post\"><strong>Appium Training<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/www.testleaf.com\/course\/dev-ops-master-certification-training-course.html?utm_source=blog-post&amp;utm_medium=Organic&amp;utm_campaign=Blog_Post\"><strong>DevOps Training<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/www.testleaf.com\/course\/apache-jmeter-testing-training-course.html?utm_source=blog-post&amp;utm_medium=Organic&amp;utm_campaign=Blog_Post\"><strong>JMeter Performance Training<\/strong><\/a><\/li>\n<\/ul>\n<h6><strong>Author\u2019s Bio<\/strong>:<\/h6>\n<p><img decoding=\"async\" class=\"wp-image-6744 size-full alignleft\" src=\"https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/09\/Kadhir.png\" sizes=\"(max-width: 200px) 100vw, 200px\" srcset=\"https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/09\/Kadhir.png 200w, https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/09\/Kadhir-150x150.png 150w, https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/09\/Kadhir-96x96.png 96w\" alt=\"Kadhir\" width=\"200\" height=\"200\" \/><\/p>\n<p>Content Writer at Testleaf, specializing in SEO-driven content for test automation, software development, and cybersecurity. I turn complex technical topics into clear, engaging stories that educate, inspire, and drive digital transformation.<\/p>\n<p><strong>Ezhirkadhir Raja<\/strong><\/p>\n<p>Content Writer \u2013 Testleaf<\/p>\n<p><a href=\"http:\/\/linkedin.com\/in\/ezhirkadhir\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"https:\/\/www.testleaf.com\/blog\/wp-content\/uploads\/2025\/07\/linkedin.png\" alt=\"LinkedIn Logo\" width=\"28\" height=\"28\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Preparing for a Selenium interview is not just about memorizing answers\u2014it\u2019s about understanding real-world automation practices. Most candidates fail not because they don\u2019t know Selenium, but because they struggle to explain framework design, TestNG concepts, Java fundamentals, and real-time project experience. This guide covers practical Selenium interview questions and answers that reflect real industry &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.testleaf.com\/blog\/tech-mahindra-selenium-qa-interview-questions-2026\/\"> <span class=\"screen-reader-text\">Tech Mahindra Selenium QA Interview Questions (2026): Practical Short Answers (Freshers &#038; Experienced)<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":9419,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"default","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[16,28],"tags":[128,1080,786,29,805,1079,123],"class_list":["post-9416","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-selenium","category-selenium-questions","tag-automation-interview-questions","tag-interview-question","tag-java-selenium","tag-selenium","tag-selenium-automation-testing","tag-selenium-interview-questions","tag-top-framework-interview-questions"],"acf":[],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.testleaf.com\/blog\/wp-json\/wp\/v2\/posts\/9416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testleaf.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testleaf.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testleaf.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testleaf.com\/blog\/wp-json\/wp\/v2\/comments?post=9416"}],"version-history":[{"count":5,"href":"https:\/\/www.testleaf.com\/blog\/wp-json\/wp\/v2\/posts\/9416\/revisions"}],"predecessor-version":[{"id":9451,"href":"https:\/\/www.testleaf.com\/blog\/wp-json\/wp\/v2\/posts\/9416\/revisions\/9451"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.testleaf.com\/blog\/wp-json\/wp\/v2\/media\/9419"}],"wp:attachment":[{"href":"https:\/\/www.testleaf.com\/blog\/wp-json\/wp\/v2\/media?parent=9416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testleaf.com\/blog\/wp-json\/wp\/v2\/categories?post=9416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testleaf.com\/blog\/wp-json\/wp\/v2\/tags?post=9416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}