Q.146. What is a Node in Selenium Grid?
Ans:
A machine connected to the Hub which executes the test.
Q.147. Types of WebDriver implementations?
Ans:
- ChromeDriver
- FirefoxDriver
- IEDriver
- SafariDriver
- OperaDriver
- HTMLUnitDriver (headless)
- AndroidDriver
- iPhoneDriver
Q.148. Fastest WebDriver implementation?
Ans:
HTMLUnitDriver – Because it doesn’t open a real browser (headless).
Q.149. Programming languages supported by Selenium?
Ans:
Java, C#, Python, Ruby, PHP, Perl
Q.150. Operating systems supported by Selenium?
Ans:
Windows, Linux, macOS
Q.151. Open-source frameworks supported by Selenium?
Ans:
- TestNG
- JUnit
- Cucumber
- JBehave
Q.152. Super interface of WebDriver?
Ans:
SearchContext
Q.153. Types of waits in Selenium WebDriver?
Ans:
- Implicit Wait
- Explicit Wait
- Fluent Wait
- PageLoadTimeout
- Thread.sleep() (not recommended)
Q.154. How to clear text in a textbox using Selenium?
Ans:
java
driver.findElement(By.xpath(“xpath”)).clear();
Q.155. How to get the text of a web element?
Ans:
java
String text = element.getText();
Q.156. How to get an attribute value of a web element?
Ans:
java
String value = element.getAttribute(“attributeName”);
Q.157. Scenarios not supported by Selenium WebDriver?
Ans:
- Captcha
- Barcode
- Bitmap/image comparisons
- OS-level popups
- Third-party calendars
- Document content (PDF, Word)
Q.158. How to implement recovery scenario in Selenium?
Ans:
Using try-catch blocks:
java
try {
driver.get(“url”);
} catch (Exception e) {
System.out.println(e.getMessage());
}
Q.159. How to perform Database testing in Selenium?
Ans:
Using JDBC in Java to connect and run SQL queries.
Q.160. How to schedule Selenium tests?
Ans:
- Jenkins, Bamboo (CI tools)
- Windows Task Scheduler (for local setup)
Q.161. How to send test execution reports via email?
Ans:
Use javax.mail in Java to send emails with test reports.
Q.162. What are DesiredCapabilities?
Ans:
Used to set browser-specific properties before launching the browser.
Q.163. Version control tools used?
Ans:
Git, GitHub, Bitbucket, SVN — for source code tracking and collaboration.
Q.164. Build tools used?
Ans:
Maven and Ant – For compiling, packaging, and running automation tests.
Q.165. CI tools used?
Ans:
Jenkins, Bamboo – For integrating and executing automation scripts automatically on code commits.