Testing / Selenium Interview questions
What is Selenium WebDriver?
Selenium WebDriver is the core API of the Selenium suite - a set of language bindings and a protocol for controlling a browser as if a real user were interacting with it, without going through any browser plugin or injected JavaScript layer.
WebDriver driver = new ChromeDriver(); driver.get("https://example.com"); WebElement button = driver.findElement(By.id("submit")); button.click();
Each language binding sends commands (navigate, find element, click, type) over HTTP to a driver executable, which forwards them to the actual browser using its native automation interface. WebDriver replaced the older Selenium RC specifically because it talks to the browser directly at this native level, rather than being constrained by what could be done through a sandboxed JavaScript layer.
More Related questions...