- ✓Cannot test desktop applications
- ✓Cannot test web services or APIs
- ✓Programming language knowledge is required for writing robust scripts
- ✓Depends on external libraries for:
- ✓Logging → Log4j
- ✓Test Framework → TestNG, JUnit
- ✓Reading Excel files → Apache POI
</>
Technology
Selenium
Difficulty
Beginner
Experience
Fresher
Type
Technical

AutomateQA Team
QA Automation Engineers
Interview Question
What are some limitations of Selenium?
Selenium cannot test desktop apps or web services and depends on external libraries for advanced functionality
Answer
Real-World Example
A QA engineer cannot use Selenium to test a Windows desktop app or a REST API — they need tools like WinAppDriver or REST Assured for those.
Code Example
Java
// Selenium cannot do this — use REST Assured for APIs
// Selenium cannot do this — use Appium for desktop
// Selenium can only do this:
WebDriver driver = new ChromeDriver();
driver.get("https://automateqa.online");
driver.quit();Best Practices
- ✓Use REST Assured for API testing
- ✓Use Appium for mobile/desktop testing
- ✓Always combine Selenium with TestNG and Log4j for a complete framework
Common Mistakes
- ✓Trying to use Selenium for API or desktop testing
- ✓Not knowing that Selenium alone is not a complete framework