Sunday, August 20, 2017

Capgemini mumbai telephonic interview questions for 2yrs experience....



1)what are the different locators you have used in webdriver?
2)can you give example of absolute and relative xpaths.
3)what is difference b/w close and quit in webdriver?
4)webdriver is a class or interface?
5)can you give class name which implemented webdriver interface.
6)scenario: if der is a element which contains id attribute, dat id is splited by two parts by '_' (underscore), first part is constant
            and second part is changing. how do you find dat element using id.
7)suppose if element is hidden, how do get text of dat element?
8)difference b/w implicit and explicit waits.
9)how you deal dropdowns.
10)scenario: der is a link on webpage, click on dat link a window will open and now dat opened window contains 3 different frames and
             you have to do operation on different elements in 3 frames and come back to window. how will you do dis.
11)what is timeout in grid?
12)what is browsertimeout in grid?
13)what do you mean by max instance and max session?
14)tel different annotations provided by TestNG.
15)suppose i want check particular exception in TestNG, how will you do?
16)what is soft and hard assertion?
17)what are different access modifiers and explain each.
18)can you define multiple public classes in single java file.is it possible?
19)class name and java file name should be same?
20)what you mean by final,finally,finalize?
21)what do you mean by for each loop?
22)can we remove any element by using for each loop?
23)diff b/w arraylist and vector?
24)how do you write custom class which is immutable?
25)create one custom class using interface inside in it, dat custom class should responsible for doing for each operation.
   which type of interface will you use to create such a custom class.

0 comments:

Post a Comment