Sel Interview Questions
Sel Interview Questions
Sel Interview Questions
HCL 33
Infosys
CTS 50
Altimetrik 20
Amazon
Paypal 10
Thoughtworks 33
Aspire 16
Sulekha 5
Hexware 16
CSS Corp 9
Wipro 21
Xerago 10
L&T 12
CapGemini
CSC 16
Accenture 45
Payoda 14
ISG Novasoft 12
McWane 9
Virtusa 14
Xchanging 9
Bank of America 25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
What do you know about Selenium? How long you are working with Selenium and what version?
What are the technical challenges that you faced with selenium?
What are the test types supported by Selenium?
Does Selenium support mobile internet testing?
Does Selenium support Google Android Operating System? What mobile devices it may support?
What is Selenese?
How do you connect Database from selenium?
What test can Selenium do?
What is difference between QTP and Selenium?
What are the types of text patterns available in Selenium?
What are the disadvantages of using Selenium as testing tool?
How do you handle the secured connection error in HTTPS?
List the browsers, OS supported by the Selenium
Does selenium support flex? How does it understand those objects?
When you have selenium issues, what approach you take to resolve it?
What langugaes are supported for the selenium development?
Name 5 different exceptions you had in selenium webdriver and mention what instance you got it and how do you resolve it?
How will you execute your login script using chrome browser from your editor using selenium?
How do you create html test report from your test script?
How do you manage the code versions in your project?
What are the other tools that you have used to successfully implement selenium in your project and for what as well?
Have you worked in Maven, Junit, TestNG?
How to use regular expressions in Selenium?
I like to know all the methods supported in webdriver and its syntax. Where do you think you can find it?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
What are the capabilities of Selenium IDE?
What are the challenges with Selenium IDE?
Which are the browsers supported by Selenium IDE?
How to execute a single line command from Selenium IDE?
How to insert a break point in Selenium IDE?
How to debug the tests in Selenium IDE?
How to export the tests from Selenium IDE to Selenium RC/WebDriver in different languages?
How to export Selenium IDE Test Suite to Selenium RC Suites?
Which is the command used for displaying the values of a variable into the output console or log?
What are the limitations of Selenium IDE
Which wildcards does SIDE support?
If a Selenium function requires a script argument, what would that argument look like in general terms?
If a Selenium function requires a pattern argument, what prefixes might that argument have?
What is the difference between an assert and a verify with Selenium commands?
Difference between waitFor and pause commands ?
How to take snapshot using IDE?
How to pass data when rerunning scripts in IDE?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
How does webdriver identifies UI Elements?
What tools - do you use to identify the Xpath?
How Selenium Grid works?
What are the capabilities of Selenium WebDriver ?
What is selenium Server default port number?
What is new about Selenium 2 vs Selenium 1?
How do you select second value from a drop down menu ?
Which Selenium command(s) simulates clicking a link?
How to scroll the webpage using webdriver?
How to set focus on an object?
Write a sample code to run a javascript using webdriver code?
How to find the present URL on the application?
How to find the number of browsers opened by selenium?
Write a sample code to forcibly close all open browsers
How will you simulate a keyboard action using webdriver? Write a sample code to perform browser refresh
Difference between click and clickandwait statements?
How to run the selenium webdriver scripts in the background? Write a sample code to perform that action.
I am getting "Unable to bind to locking port 7054" . What does that mean?
I have a hidden webelement in a page and like to get the static text. How to do that?
How do I know when a page has finished loading?
How do you handle secured connection error in HTTPS ?
Does WebDriver support file uploads?
I got an unexpected pop up error in my screen, how will you handle in your script?
Have you worked in Ajax? What kind of challenges you have faced during web Ajax and how did you overcome?
How to click an element which resides in a frame? Sample code pls
Desired capabilities and Actual capabilities - What are the differences and how do you use them?
I have to find the color of a specific text. How can I do that?
I need to find each href of all links in a page. How do you do that?
Difference between webdriver and remotewebdriver?
How will you handle the untrusted SSL certificates?
I have a table with 8 rows and 4 columns and I need to read all data from the table. How will you do?
I have menu -> menu item -> child menu item and all works by the mouse over. How will you perform the operation?
I like compare images between 2 browsers. How will you do that?
Write a program tp find the count of number of edit fields in a page.
When running in hub, I have set my desired capabilities for my script to run in IE 8 and but there is no exact matching capabiliti
I like to drag drop several data from one place to another. How shall I do that?
When I start my firefox driver, I like to have the home page is loaded as my project URL . How do I do that without using driver.
Difference between implicit and explicit wait. When will you use what?
Have you worked in Page Factory? When did you use it?
How will you identify the ip address of the machine that is running your specific script in selenium grid?
Write selenium webdriver code to kill the browser when it is not responding?
How will you perform mouse click using htmlunitdriver?
I have 2 firefox versions in my machine. Write a code to open the older version of firefox in my machine?
Write a code to know if there is a valid chrome installed in a specific machine?
How to get the page source using webdriver?
Write webdriver code to resize my browser to full screen?
How will you compare objects size between 2 different browsers say firefox and chrome?
1 Explain the Framework you are using
2 What is data driven framework
3 Where the test data will be stored in the FW
4 Components of Framework
5 How to count the links available in the form
6 Different types of locators. Which locator is your preference and why
7 Syntax of Xpath and cssSelector
8 In what format you are giving your report to client
9 Conversion process of Testing report to XSLT
10 Processor used in report
11 How to handle Authentication window
12 How to handle multiple window
13 Challenges faced in your automation project and how you overcome those
14 How to handle complex interaction - Action class
15 What kind of Frame work using in your organization..?
16 Explain about your framework architecure..?
17 Where did you stored all kind of xpaths in your framework..?
18 What is the HUB & Node..?
19 How do you run your test using a framework..?
20 Write the xpath..?
21 How to handle alerts using web driver..?
22 How to identify two fields(Radio button) in a page with same id..?
23 How to write a xpaths for Dynamic web pages..? (like facebook status, Filpakarts)
24 Junit - how do you used in projects..?
25 How do you handle popup windows in your projects..?
26 Why is Java platform/OS independent ?
27 Have you used collections in your code ?
28 What is the difference between Implicit and Explicit wait ?
29 Write any sample code -- Fibonacci series ...
30
31 Scenario --
32 I have three unique buttons in my page.(Display names are different)
33 The internal ID & Name changes on every page load.
34 I need to click on each button in sequence.
1 What is This keyword? Have you used in your code.
2 What is Interface?
3 Diff b/w Interface & Abstraction?
4 About Static ?
5 how to call static method?
6 how to click the 6th element in webpage - webdriver, but elements not in one frame...
7 how to handle alerts
8 code to retrieve data from excel
9 code to take snapshot
10 some questions frm linux........
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
What are the activities you are doing in your project?
Which frame work you are using?
Tell me about the traceability matrix?
Recursive functionality possible using Selenium IDE ?
SOAP UI - Could a output response obtained from one XML can be used as input for invoking other XML?
Write test cases for a scenario - eg.entering address
Framework - type/flow/structure?
Relative xpath - 3 nodes with same id value , 3rd node having additional character "xyz" - how to find relative xpath for the 3rd
SQL - Inner join related query
Structure of the framework?
where to keep your script files?
What approach you are using for selenium ?
can we do file upload thru selenium?
can we able to locate excel file in a system thru selenium?
what is test plan & test strategy?
Scenario:
Tomorrow your project delivery.Today your onsite co-ordinator saying that you missed one functionality?Then what will be you
1 1
2 2
3 3
4 4
5 5
7 7
8 8
9 9
10 10
Step1:Have a excel sheet with two columns(city,keyword) Step2:Goto sulekha,com,two fields there One button dropdown and
Step3:Pass the data from excel to search field,select city in drop down and when u give keyword to search text field.
Step4:Search field is AJAX field so it loads matching data,we need to verify data loaded as we typed,and collect those list and w
Like that i have to do for six rows with diff values.
eg:
city Keyword rs1 rs2...rs10
chennai nokiashowroom a b c
Round 2:
Tell me about your career
Why would you want to leave CogniZant
You think your current role isnt challenging?
What is the most challenging issue you faced in your project??
1st Round
2nd Round
3rd Round
Aptitude test (There were set of standard 11 questions which consist of flowchart problems, in thought-works hand book)
Speed Test (There were 50 simple questions which need to be completed in 12 minutes, Rule: Should not jump to other questi
4th Round
Manager round: This was more likely to know each other, there were no particular questions. They wanted to know what I am
Later they explained about TW for 15 mins, what business they will do, their work toward government projects, free projects th
5th Round
This was purely non technical. There is no right or wrong for these questions, it is purely opinion based.
Tell about your self which is not there in your resume
Mention 3-4 things that you think which need to be changed in our country.(There were lot of discussion here)
If you become a PM of the country, what are the necessary steps you will take in order to correct/change the points you told fo
Whether 'Ghar Vapsi' program going in north India, is right or wrong. What is your opinion and why?
Supreme court has opposed homo sexuality in India, What is your opinion and why? (I told it should be banned/punished, so t
1
2
3
4
5
6
7
8
9
Difference between FindElement and FindElements
how to locate the Elements using Xpath ,
Difference between X path and Css Selector,
Challenges faced while using selenium,
How to handle windows,frames ,alert,text box,list box,check box,file upload,windows scroll
Difference between implicit wait and explicit wait
hat is constructor,class,object,static method ,method overriding and Method overloading.
TestNg annotations and they gave some scenario and asked which annotation should be used ,
how to start hub and how to register node.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
First Round Technical Questions
1. Tell about yourself
2. What kind of Framework have you implemented in your project?
3. Describe the Structure of the Framework
4. Write a program of Reverse of String Using String methods
5. How do you execute your framework test cases
6. Write a program to copy all contents from one excel sheet to another sheet?
7. What if I have 50 test cases and how do I execute all those test cases?
8. What all Test Estimation Technique you know of? What Test estimation technique you applied in your proje
9. In my browser, I face security certificate violation how do I avoid that using TestNg script? What kind of des
10. How do you change your webdriver to run in remote machines?
Second Round Technical Questions
1. Tell about yourself
2. Explain Framework Implementation in your project
3. What all Challenges you have faced in selenium
4. Do you have the knowledge of continuous integration like Jenkins
1
2
3
4
5
6
7
8
9
10
11
12
Draw the architecture diagram of selenium inplementation in your project
Expalin what sdlc model u r using in ur project
How can you check whether a particulat text present in a webpage. What are the predefined method in selenium for checking
How to check whether the check box is selected or in unselected without using
How to find whether the element is in visible or in hidden
difference between findElement and findElements
How you will handle pop up windows
what is testng
how you are handling keyword driven and datadriven framework in your project
What is mean by hybrid framework
How can u upload file in webpage
How u will handle popup in webdriver
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Tell about urself.
Automation experience in your project
What is Xpath. Write Xpath for given scenario. [Navigate upwards]
Write xpath of two text boxes which don’t have any locators to find.
How to select value from Dropdown
What are the Waits in selenium. Explain briefly. Write code of each. [ImplicitlyWait, Sleep, WebdriverWait]
Exception Handling. Write code for given scenario.
Use "Throws" keyword.
Use of "Finally" keyword
Diff - 'Final' & 'finally'
Diff - 'List' & 'Set'
Diff - 'Abstract Class' & 'Interface' with Code
POM
Page Factory
**Did u develop any Framework
How to take screenshot - Code
**Real time experience in BUILD tool [Apache Ant or Maven]
**Version Controlling
Member access modifiers
Diff - 'Array' & 'ArrayList'
How to Sort using 'Collection
1
2
3
4
5
6
7
8
9
Your experience and project background
What type of framework do you use?
What are your regular selenium activities?
How do you manage test data for Selenium tests?
Do you know RDBMS and what do you use?
How do you make reporting in Selenium?
How do you verify a given login button is named as “SignUp” and how will you confirm it is not “Login”
What statement do you use verify specific error message in the application?
What is your notice period and can you join earlier than 30 days?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Round - 1:-
Tell about yourself
Explain your experience in Automation
Role in Automation
Write a program for registration page : Click on register link in web page. Then fill all the fields with external data source. Finall
Explain each and every line. what it will do [4].
In the same scenario[4] , how you read the data for 10 different test data.
How to get count of all the links in web page
How to read the data from Notepad.
How to read the file which is present in Network [Like SharePoint].
Explain manual testing cycle from requirement
Defect Life cycle
How to instantiate Chrome driver.
Did you attend any Client calls from Onsite
What is Maven, Git, Jenkins
Round - 2:-
Limitations of Selenium
Write a code for taking screenshot
How to handle Alert
How to handle multiple windows
Annotations in TestNg
Hierarchy of TestNg
Diff bw 'Defect Retesting' and 'Regression Testing'
Do u know Database testing
Which project is in which domain
If u have 100 scenarios. In that u have mixture of smoke and sanity scenarios. want to run smoke alone. How to handle this wit
What are the reports u r maintaining