Thomson Reuters :- Selenium Interview Questions and answers

1.difference between list and set

List does can have repeat elements whereas set cannot have repeats. In list insertion order is not stored, whereas in set insertion order is maintained.

2. Write a program for fibinocis series

fibonacci series is easy.
int first = 0;
int second = 1;
SOP(first + " " + seconds + " ");
int next = 0;
for (int i = 0;i<num;i++)
{
next = first + second;
SOP(next);
first = second;
second = next;
}

3.he wrote some program we have to find which type of inheritence


4.difference between abstract class and interface

Abstract class is used when you know partial implementation whereas interface is when you dont know the complete implementation. In abstract class you need to have at least one abstract method whereas in interface all methods are abstract.


5.can we change public static like static public

Yes we can change

6.can we override main method

Main method can be overloaded and not override

7.what is constructor

Constructor is a method which is of the same name as a class. It is executed when an object of that class is created.

8. He gave one program which contain static and non static block and constructor. Write output

9. Lot of programs we have to write output

10.what is the latest version of selenium
selenium 3.9

11. What is difference between selenium 2 and 3

12.write a code set property for Firefox driver

 System.setProperty("webdriver.gecko.driver", "C:\\__path__");

13.what are methods available in action class

moveToElement, pressAndHold, contextClick, doubleClick

14.drag and drop selenium.

actions.clickAndHold(el1).moveToElement(e2).release(e2);

Post a Comment