SDET Interview Questions
Comprehensive collection of SDET interview questions covering Manual Testing, Java Programming, Selenium WebDriver, and TestNG with detailed answers.
SDET Interview Preparation
Master your SDET interviews with our comprehensive question bank covering all essential topics from Manual Testing to Advanced Selenium WebDriver concepts.
4
Manual Testing
3
Java Programming
28
Selenium WebDriver
1
TestNG
3
Advanced Topics
1
Framework Design
8
JavaScript Executor
Manual TestingBasic
Q1. What is SDLC and explain its phases?
sdlcmanual-testingphasesbrs+1 more
Manual TestingBasic
Q2. What is the difference between BRS and SRS documents?
brssrsdocumentsrequirements
Manual TestingIntermediate
Q3. Explain different SDLC models and their timelines.
waterfallv-modelagilesdlc-models
Manual TestingIntermediate
Q4. What is Black Box Testing and its techniques?
black-boxequivalence-partitioningboundary-valuedecision-table
Java ProgrammingBasic
Q5. What are the primitive data types in Java?
javadata-typesprimitivememory
Java ProgrammingBasic
Q6. Explain different types of operators in Java.
javaoperatorsarithmeticlogical+1 more
Java ProgrammingIntermediate
Q7. What is the difference between String, StringBuffer, and StringBuilder?
javastringstringbufferstringbuilder+1 more
Selenium WebDriverBasic
Q8. What is Selenium WebDriver and its advantages?
seleniumwebdriverautomationcross-browser
Selenium WebDriverBasic
Q9. Explain different types of locators in Selenium.
seleniumlocatorsxpathcss-selector+1 more
Selenium WebDriverIntermediate
Q10. What is the difference between Absolute XPath and Relative XPath?
xpathabsoluterelativedom+1 more
Selenium WebDriverAdvanced
Q11. Explain different XPath axes with examples.
xpathaxesparentchild+1 more
Selenium WebDriverIntermediate
Q12. What are different types of waits in Selenium?
seleniumwaitsimplicitexplicit+1 more
Selenium WebDriverIntermediate
Q13. How do you handle dropdowns in Selenium?
seleniumdropdownselectoptions
Selenium WebDriverIntermediate
Q14. Explain different types of alerts in Selenium and how to handle them.
seleniumalertsacceptdismiss+1 more
Selenium WebDriverAdvanced
Q15. How do you handle multiple windows/tabs in Selenium?
seleniumwindowstabshandles+1 more
Selenium WebDriverAdvanced
Q16. What is frame handling in Selenium and how do you implement it?
seleniumframesiframeswitch+1 more
Selenium WebDriverIntermediate
Q17. How do you perform mouse actions in Selenium?
seleniumactionsmousehover+1 more
Selenium WebDriverIntermediate
Q18. How do you handle keyboard actions in Selenium?
seleniumkeyboardkeyssendkeys+1 more
Selenium WebDriverAdvanced
Q19. What is JavaScript Executor and when do you use it?
seleniumjavascriptexecutorscroll+1 more
Selenium WebDriverIntermediate
Q20. How do you take screenshots in Selenium?
seleniumscreenshotstakesscreenshotdebugging
Selenium WebDriverAdvanced
Q21. What is Shadow DOM and how do you handle it in Selenium?
seleniumshadow-domgetshadowrootcss-selector+1 more
Selenium WebDriverAdvanced
Q22. How do you handle broken links in Selenium?
seleniumbroken-linkshttpresponse-code+1 more
Selenium WebDriverIntermediate
Q23. What are different types of exceptions in Selenium?
seleniumexceptionsnosuchelementtimeout+1 more
Selenium WebDriverAdvanced
Q24. Explain Selenium Grid and its components.
seleniumgridhubnode+2 more
TestNGIntermediate
Q25. What is TestNG and its advantages over JUnit?
testngannotationsparalleldataprovider+1 more
Selenium WebDriverIntermediate
Q26. How do you handle SSL certificates in Selenium?
sslcertificateschrome-optionssecurity+1 more
Selenium WebDriverAdvanced
Q27. How do you handle file upload in Selenium using AutoIT?
file-uploadautoitwindowsdialog+1 more
Selenium WebDriverIntermediate
Q28. What is the difference between CSS Selector and XPath?
css-selectorxpathperformancesyntax+1 more
Selenium WebDriverAdvanced
Q29. Explain XPath axes with practical examples.
xpathaxessiblingparent+2 more
Selenium WebDriverAdvanced
Q30. How do you handle dynamic calendars in Selenium?
calendardynamicwhile-loopdate-picker+1 more
Selenium WebDriverIntermediate
Q31. What is Synchronization and why is it important?
synchronizationwaitstimingdynamic-elements+1 more
Selenium WebDriverIntermediate
Q32. How do you capture screenshots in Selenium for test reporting?
screenshotstakesscreenshotashotreporting+1 more
Selenium WebDriverAdvanced
Q33. What are common Selenium exceptions and how do you handle them?
exceptionserror-handlingstale-elementtimeout+1 more
Selenium WebDriverBasic
Q34. Explain the difference between get() and navigate() methods.
getnavigatebrowser-historypage-load+1 more
Selenium WebDriverBasic
Q35. What is the difference between findElement() and findElements()?
findelementfindelementslistexception+1 more
Selenium WebDriverIntermediate
Q36. How do you handle browser options like headless mode and incognito?
browser-optionsheadlessincognitochrome-options+1 more
Advanced SeleniumAdvanced
Q37. How do you handle flaky tests and improve test stability?
flaky-testsstabilityretrywait-strategies+1 more
Advanced SeleniumAdvanced
Q38. What is Page Object Model and its advantages?
page-object-modeldesign-patternmaintainabilitypagefactory+1 more
Advanced SeleniumAdvanced
Q39. How do you implement Data Driven Testing in Selenium?
data-drivendataproviderexcelcsv+2 more
Framework DesignAdvanced
Q40. What are different types of automation frameworks?
frameworksmodulardata-drivenkeyword-driven+2 more
JavaScript ExecutorAdvanced
Q41. What is JavaScript Executor in Selenium and when do you use it?
javascript-executorexecuteScriptdom-manipulationhidden-elements
JavaScript ExecutorIntermediate
Q42. How many ways can you open a URL using JavaScript Executor?
javascript-executorwindow-locationwindow-openurl-navigation
JavaScript ExecutorIntermediate
Q43. How many ways can you click an element in Selenium?
javascript-executorelement-clickactions-classmultiple-approaches
JavaScript ExecutorIntermediate
Q44. How do you handle browser navigation using JavaScript Executor?
javascript-executorbrowser-navigationhistory-gopage-refresh
JavaScript ExecutorIntermediate
Q45. How do you enter text using JavaScript Executor instead of sendKeys()?
javascript-executortext-inputelement-valuesendkeys-alternative
JavaScript ExecutorAdvanced
Q46. How do you handle dropdowns using JavaScript Executor?
javascript-executordropdown-handlingselect-elementdynamic-dropdown
JavaScript ExecutorAdvanced
Q47. What are the 15 operations you can perform with JavaScript Executor?
javascript-executorbrowser-operationselement-operationsadvanced-operations
JavaScript ExecutorAdvanced
Q48. What is the difference between executeScript() and executeAsyncScript() methods?
javascript-executorexecuteScriptexecuteAsyncScriptsynchronous+1 more
Interview Tips
📝 Preparation Strategy
- • Start with basic concepts and build up to advanced topics
- • Practice coding examples for each concept
- • Understand the 'why' behind each approach
- • Prepare real-world scenarios and challenges you've faced
- • Review your automation framework architecture
💡 During the Interview
- • Think out loud while solving problems
- • Ask clarifying questions when needed
- • Explain trade-offs between different approaches
- • Share specific examples from your experience
- • Be honest about what you don't know