Company-wise Selenium and QA interview preparation page.
Questions
Round 1:
Brief me about your automation career
Explain your framework
How would you connect to your excel? Which class would you use for it?
What is the machine readable format or which class converts any of your document/file into an object?( let me know if you didn't understand the question.. I can explain)
How would you click on a button on which webelement.click doesn't work?
You have a webtable.. Consider Column one has name of the country and column 3 has weather conditions of the country.. When I input a country name, I should get a weather condition of the country? Logic
14,28,20,40,32,64,56,112..
The difference between 14,20,32,56 is
,6,12,24
The differences between 28,40,64,112 is
,12,24,48
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??
What kind of framework u hav used in ur project?
Tell me the different tools that u hav used till now in ur project and explain?
Draw and explain the folder structure of ur project and different classes that u hav in each folder?
Explain the complete flow of ur code?
Draw and explain ur framework?
How u ll generate report in different format?
Types of reports that u hav used in ur project?
How to read data from excel sheet using apace poi?
How u will handle multiple windows starting from parent window?
Different types of waits in selenium webdriver and explain it with example?
Difference between assert and verify?
Assume we hav a login page, v hav entered login name correctly and entered wrong password and then v tried to login to the application. The password textbox will be highlighted in red color. How u will verify it?
Assume u hav a login page, u entered usernameand password correctly and u cliicked login button.Now the application doesn't response u aft clikcing on login button... how u ll handle it in ur selenium code?
Challenges that u hav faced in selenium?
Explain with example hw u ll handle file uploads?
How to full snapshots in chrome browser?
How to select the drop down value and explain it with example?
Program to print fibonacci series?
Hav u worked in SOAP UI, if so tell me what will u do with that
Hav u developed any framework?
Explain mouseover actions with example?
You hav a web table it contains 3 columns. 1st column contains name of a person and 3rd column contains out time. U need to print out time of a particular person name. Assume that the values in changing dynamically.
Write a java program based on below points
a. Take an integer input
b. Find the no. Of digits
c. If the digits count is an even number then divide the input no. By 2
d. If the resultant no. Of digits is even similarly in point e. no. Of digits in resultant no
e. if the resultant no. is odd then remove the centre digit and compare the first half digits with that of the last half digits
f. if they are equal print equal if not print not equal.
How do you run all the failed test cases using testng
How would you retry a certain test if it fails
Explain each of the annotations in Testng
A webpage has 4 textboxes each has the same class attribute as A , write a script to click on the 3rd textboxes and add your name prefixed by a tab space.
A web page has a link and when right clicked and then open takes you to another page that has a text box in it and name to be typed in the textbox., write a script for the same
Explain about the Agile process
Explain about Cucumber framework.
Java programs
Core java concepts
Webdriver and TestNG
Tell me abt yourself
Explain ur prj framework
Difficulties faced in automation
Any value adds you did in your project.
Write java code Fibonacci?
Write code for reversing the integer?
How to get the text value inside text box? < I Told get attribute of value>
How to get the selected in the list box then? < I told the same way- and he convinced>
If I click a link multiple pp up gets open how do you close all except parent? Write code for that?
How do you rate yourself in selenium?
Tell about career?
Why do you leave your company? The position is for automation frame work developer – nbut might be a manual tester some time? Are you okay with that?
Why POM? Have you worked in Hybrid?
Whats TOSCA?
Why do prefer selenium than tosca?
Explain your project architecture and how efficiently you have managed in automating them?
What are the different way handling reports for the cases you have executed?
How will you delete the 3rd row of dynamic web table using selenium
How will you create random characters as a string in text boxes
How will you count all the elements in web page
Write code to find broken links in webpage
How will you handle random pop up in web page
Difference between driver.get and driver.navigate.to
Whether finally method will be executed everytime . If no at what condition it won't execute
How will you take screenshot of failed test cases alone
Where do you use abstract class in Ur project ?
What are the other alternate ways for send keys
Testng test cases with priority as -1 and 0 . Which will execute first . Whether -1 is acceptable
Write code for data providers
How will you run all test cases in a single shot via testng
Write Java code for string buffer (no pseudocode .. full program)
Java recursion and it's practical use in selenium project
Why build perform is mandatory for action classes
Define web driver .
How will you access pdf files in selenium . (Project requirement s to handle it via automation ,what are the other ways to handle it )
Write code for sort the alphanumeric values . What are the available options to resolve and best solution
command to print in selenium IDE
what data type would Case in Switch(Case) statemenr supports
Which OS wont be supported by Selenium IDE
How to handle cookies in Selenium(2 ques)
Which view show the script in HTML format
Which method used to retrive text of the field(ans:getText())
How to verify a text with the existing feild
How to check whether a text is present
What is mean by Selenese
How to declare field in Selenium
java program
which data type stores the values in the Selenium Webdriver
Fibonacci series
Frames and Switching
Inheritance
Code for interacting with Excel
how to enter the text in text box
how to get data from excel (Full code)
Framework explanation
List ,set, Map explanation
static keyword explanation
Diff between string, buffer n builder
how to overcome diamond prob
Abstract class explanation
Implicit wait n Explicit wait explanation n difference
Windowhandling
agile ceremonies
how change integer to char
method overloading n over riding
Select the method which clears all selected entries in selenium web driver
Where can u create ur own selenium commands
Which command is is used for typing in a text box.
Select command which is used to pause execution until the specified element becomes present
Scope of implicit wait
Command which is used to pause execution until page is loaded completely.
Select the view which shows your script in HTML format
Features available in IDE to debug an automated case.
In which approach tests can be executed with multiple sets of test data.
What can be used to flex/flash application using selenium.
How many parameters does the selenium object takes when using default selenium.
Difference between web driver close and quit methods.
what is the method to disable cookies
what does submit method does?
Where does variable of tc's stored in Java
verifytextpresent method patterns
assert & verify difference
What r the different modes of Se(Option Firefox,IE,Chrome)
Where selectbyvisibletext is used
How to get text from a page?
What is the method to store the alert?
Why relative x path is advantage then relative x path