Sunday, August 20, 2017

Selenium/Java Questions CitiusTech



1. What is the difference between Grid and Webdriver API?
2. How would you save a cookie value in Webdriver?
3. How would you locate a button which is present on UI with only Span class? It doesn't have an Id,class or anything.
4. Write a code for explicit wait.
5. How will you invoke Firefox browser?
6. What will be the logic behind fetching a data from data provider and inserting it on UI?
7. How will you specify a data provider under Test annotation?
8. Write a program for reverse string.
9. How does method overriding differs from abstraction and inheritance?
10. Can we override main method? Explain the reason.
11. Explain OOPS concepts?
12. Why do we go for POM? What does it refer to?
13. What is the difference between String and String buffer?
14. What is the difference between String buffer and String builder?
15. What is mutable and immutable?
16. How will you configure Ant,Jenkins?
17. Why do we go for Apache API? Basic purpose behind it.
18. Script writing for a login page which is being used at your organisation.
19. Why do we use generics for getting a list of multiple elements?
20. In what way method overriding in polymorphism and inheritance differs with each other?
21. What is the flow of fetching data from excel using Apache POI?
22. Why do we provide '\\' in java while fetching a path of excel.
23. What are the types of exception which will appear finding elements?
24. What is an object array and why do we use it for data-provider.
25. What is the syntax of defining a data-provider class under @Test?
26. Difference between method overriding and overloading.
27. What is Static and Dynamic Polymorphism?
28. What is Static and Non static in Java?
29. Explain OOPS concepts.

0 comments:

Post a Comment