51. What are the challenges you faced in Selenium?
Answer
: We can explain some of the below challenges in Selenium.
1. Image or text overlapping issue.
2. No facility to deal with Captcha and Barcode.
3. Doesn’t support any non web based(like win32, Java applet, Java swing, .net Client Server, etc) applications.
4. No Direct support for Selenium as it’s a Open Source.
5. Bitmap comparison is not supported by Selenium.
6. Any Reporting related capabilities is not supported by Selenium.
7. You need to learn any of the native language.
8. Maintain test cases is difficult in Selenium.
9. Difficult to identify dynamic objects.
10. Working with Frames.
11. In IDE Selenium Test playback is Slow. Also in WebDriver.
12. Flash Objects, Applets, Silverlight, HTML5’s Callender.
13. Dealing with pop-up windows.
14. Timeout resulting from synchronization problems. When to use Implicitwait or Explicit wait Fluent wait, or JS Executer.
15. Testing Flash apps
16. Unexpected error launching Internet Explorer. Zoom level, Protected Mode, etc.
17. Cross Browser Testing  Issues.  Compatibility of ChromeDriver, FirefoxDriver with Selenium.
18. Ajax Components. with Explicitly wait we can handle that.


52. What type of Tests have you automated using Selenium?
Answer: We can perform Functional Testing and Regression Testing of the functional test cases. Also, we can perform Integration Testing, Smoke and Sanity Testing.


53. How many test cases you have automated per day?
Answer: It depends on the test case scenarios complexity and length. I did automate 2-5 test scenarios per day when the complexity is limited. Sometimes just one or fewer test scenarios in a day when the complexity is high.


54. What is a Hub in Selenium Grid?
Answer: A Hub is a server or a central point that controls the test executions on different machines.


55.What is a Node in  Selenium Grid?
Answer: A Node is the machine which is attached to the Hub. There can be multiple nodes in Selenium Grid.


56. What are the types of WebDriver APIs available in Selenium?
Answer: FirefoxDriver, GeckoDriver, InternetExplorerDriver, ChromeDriver, HTMLUNITDRiver,OperaDriver, Safari Driver, AndroidDriver, iPhoneDriver, EventFiringWebDriver.


57. Which WebDriver implementation claims to be the fastest?
Answer: HTMLUNITDriver doesn’t launch any browser. It is a headless driver.


58. What are the open source framework supported by selenium Webdriver?
Answer:
Test Driven Development Framework: JUnit, TestNG.
Behavior Driven Development Framework: CUCUMBER, JBHEAVE.


59. How to Explain Test Automation Framework ?
Answer: You can explain the below structure of your Automation Framework.
a. Programming Language: Java, etc.
b. Type of frameworks used:  Keyword Driven or Data Driven, Hybrid framework.
c. Test Base Class deals with all the common functions
d. Element Locators storage: .properties files
e. Functions: Generic and Project specific.
f. Properties files: Browser type, URL, etc.
g. TestNG: xml files
h, Paramaterizing tests using Excel files.
i. How you capture error screenshots?
j. How you generate Reports?
k. How you send reports to your peers?
l. Version control used:
m. Continuous Integration tool used:  Jenkins


60. What are the different type of Locators available in Selenium?
Answer: 8 different Types of locators in By class.
ID, ClassName, Name, TagName, LinkText, PartialLinkText, XPath, CSSSelector.


One response to “Selenium Interview Questions for Freshers and Experienced”

Leave a Reply