Selenium WebDriver and Advanced Concepts Questions
Expert-level knowledge of Selenium WebDriver including advanced locator strategies, handling dynamic elements, JavaScript execution, waits (implicit, explicit, fluent), browser window and tab management, and cross-browser compatibility. Understanding of Selenium architecture, limitations, and when to use alternatives.
HardTechnical
95 practiced
Compare Selenium, Playwright, Puppeteer, and Cypress for an enterprise that must support legacy browsers (including IE), modern SPAs, and mobile web. Evaluate cross-browser support, architecture, debugging tools, parallelization, test isolation, and enterprise considerations like maintainability and team ramp-up. Recommend a hybrid or migration approach and justify trade-offs.
EasyTechnical
84 practiced
Compare XPath and CSS selectors for locating elements in Selenium. Provide short examples that locate the same element using both strategies, discuss performance and maintainability trade-offs, and explain scenarios where XPath is necessary (for example, traversing to parent or matching based on text) versus when CSS should be preferred.
MediumTechnical
90 practiced
In Java, write a Selenium example using Actions to perform drag-and-drop from a source element to a target element. Then explain why Actions.dragAndDrop sometimes fails for HTML5 drag-and-drop implementations and provide a JavaScript fallback approach that simulates HTML5 drag events via executeScript.
EasyTechnical
82 practiced
Describe implicit waits, explicit waits, and fluent waits in Selenium WebDriver. Explain how each works (polling frequency, exceptions ignored), typical use cases and pitfalls such as test slowdown or masking synchronization issues, and give one practical example of when to prefer explicit wait over implicit wait.
MediumTechnical
77 practiced
List and explain key limitations of Selenium WebDriver (for example inability to natively stub or intercept network requests, limited access to browser internals, single-origin security constraints, and mobile-specific limitations). For each limitation suggest alternatives or complementary tools (for example CDP, proxies, Playwright, Appium) and when you would adopt them.
Unlock Full Question Bank
Get access to hundreds of Selenium WebDriver and Advanced Concepts interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.