Thursday, April 19, 2018

Real Time Selenium Interview Questions

1> how to switch from frame to main window tel syntax.
2> what is difference between pom and pagefactory?
3> where does automation fit into testing flow?
4> what are challenges that you faced while automating testcases?
5> scenario: there is a submit button in page it has id property.
             by using id we got element not found expection, how will you
             handle dis situation. what might be the problem in dis case.
6> scenario: if submit button contain in one of 3 frames in page, how will you handle this.
7> if element is loaded by taking much time how to handle dis situation in selenium.
8> what is the problem with thread.sleep in code?
9> what is the concept of selenium grid?
10> when we execute testcases in grid where results will be stored in node or hub?
11> difference b/w quit and close.
12> scenario: manually u opened a firefox browser window with gmail login, now with selenium you opened
              a firefox browser window with facebook login. what happens when we use quit method?
             will it closes all windows including gmail one?
13> what all annotations used in testng in ur project?
14> if we wanna do datadriven with testng what are all annotations required?
15> is it possible to pass test data through testng.xml file, if yes how?
16> how to run specific kind of testcases using testng?
17> how to prioritize test cases in testng?
18> what are all interfaces available in selenium?
19> actions is class or interface?
20> why we using testng? what are benefits we get using testng? cant we execute testcases in order
    without using testng? 
21> explain polymorphism in java.
22> scenario: der are two methods in same class with same name with different arguments and 
              different access modifers. like 
              public void m1(int a){}
              private void m1(string b){}
              is it overloading or not?
23>what are types of inheritance in java?
24> is multiple inheritance is possible in java? tel reasons.
25> is multilevl inheritance is possible in java? give reason.
26> scenario: der are 10 pages in same window, an image is present in any page out of ten pages in same window.
              how will you validate this scenario?
27> how to check image is loaded correctly or not in page?
28> scenario: same image is present in ten pages how do you check same image present on each 
              page or not. how will you validate this scenario?
29> what is the purpose of sikuli?
30> is it possible to compare two images with sikuli?
31> how do you compare image in some path of drive and image on page?
32> Tel syntax for sikuli code.
33> how to handle file upload window in selenium?
34> scenario: There are ten drop downs in page with same name.. in one of drop downs i have option called cts employee
    how select dat particular option in out of ten drop downs in page? what is ur approach?
35> write a code for db connection.
36> explain ur project structure and flow.
37> how do u handle exception handling in selenium.
38> explain run time and compile time polymorphiism.
39> write a code for multiple handling windows.
40> scenario: der is grid table 1st column contains links with same names in all rows.
              2nd column contains different name for those links present in 1st column.
              now based on 2nd column click on required link in 1st column how will you do it.
41> how do you handle synchronization in selenium.
42> how generate user defined exceptions, write syntax.
43> difference between throw and throws keyword.
44> scenario: <table
               <tr
                <td
                <td
              now based on 2nd td tag find tr tag element. write xpath for it.
45> what is auto it? how will you exexute auto it code in selenium? 
46> how to handle elements like ajax?
47> how to handle elements which has no attribute inside tag?
48> what is proctractor?
49> what are loctors present in proctractor?
50> explain oops concepts.
51> diff b/w sikuli and auto it.

2 comments: