Selenium Important Question - All About Testing Selenium Important Question

Saturday 2 December 2017

Selenium Important Question

1. How to switch from frame to the main window tell syntax.

2 What is the difference between pom and page factory?

3 Where does automation fit into the testing flow?

4 What are challenges that you faced while automating test cases?

5 Scenario: there is a submit button on the page it has the id property.by using id we got element not found an exception, how will you handle this situation. what might be the problem in this case.

6 Scenario: if submit button contain in one of 3 frames in the page, how will you handle this.

7 If the element is loaded by taking much time how to handle this 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 test cases in the 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 close all windows including Gmail one?

13 What all annotations used in TestNG in your project?

14 If we wanna do data-driven with TestNG what are all annotations required?

15 Is it possible to pass test data through the testng.xml file, if yes how?

16 How to run specific kind of test cases 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 are we using TestNG? what are benefits we get using TestNG? cant we execute test cases in order
without using TestNG?

21 Explain polymorphism in java.

22 Scenario: There are two methods in the same class with the same name with different arguments and

different access modifiers. 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 multilevel inheritance is possible in java? give the reason.

26 Scenario: There is 10 pages in the same window, an image is present in any page out of ten pages in the same 
window.
How will you validate this scenario?

27 How to check image is loaded correctly or not on the page?

28 Scenario: the 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 the image in some path of drive and image on the page?

32 Tell syntax for sikuli code.

33 How to handle file upload window in selenium?

34 Scenario: There are ten drop-downs in the page with the same name.. in one of drop downs I have an option 
called cts employee

How select that particular option in out of ten drop-downs in the page? what is ur approach?

35 Write a code for DB connection.

36 Explain your project structure and flow.

37 How do u handle exception handling in selenium.

38 Explain run-time and compile time polymorphism.

39  Write a code for multiple handling windows.

40 Scenario: There is grid table 1st column contains links with same names in all rows.

2nd column contains the different name for those links present in 1st column.

now based on 2nd column click on the required link in the 1st column how will you do it.

41 How do you handle synchronization in selenium.

42 How to 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 X Path for it.

45 What is auto it? how will you execute auto it codes in selenium?

46 How to handle elements like Ajax?

47 How to handle elements which have no attribute inside tag?

48 What is protractor?

49 What are locators present in protractor?

50 Explain oops concepts.

51 Diff b/w sikuli and auto it.

0 comments:

Post a Comment