did you involved in initial framework development for your client ?
do you know Ruby?
write a java program to check a sting is palindrome
write a java program to check a no is prime ?
what is the use of toCharArray method?
diff be assert and verify?
consider there are steps in a test case and your second steps fails, here which one you use ? (assert or verify
tell me diff be smoke and sanity testing ? And which one will go depth ?
what is exploratory testing ?
do you have performance testing in your project ?
what you do in performance testing ?
explain about page object model
explain about reporting in your project ?
formats of your report ?
how do you give report for test cases to your client ?
draw complete architecture of your client project
what development model you use in your client ?
tel me about extentreport jar and it's functionalities. Is it rd party tool ?
how do you rate yourself in selenium out of ?
how many locators available in selenium ?
what is most preferred locators ?
tell me the list of web elements a web page can have
what is synchronization ?
what is the diff be implicit wait and explicit wait ?
where do use explicit wait ?
consider there are three links available in a web page with same Id, name, text and all. How do you click the second link without using xpath ?
explain the frame work used in ur project.
write code to read data from excel.
what is use of POI.
how many test scripts do you have in ur project.
how many days will take to execute all the scripts.
what are the challenges u faced in ur project when u executing Selenium scripts.
write a program to given number is palindrome.
write a program to write given number is Prime or not
Java is what type of language.
what is oops and tell me the main concepts in oops.
how do you find multiple objects in a web page.
diff between findelement and findelements.
diff between trow and throws.
tell me the types of exceptions, why and how we handle them.
diff between checked and unchecked exceptions
how you handle popups in windows based applicn.
what is diff between close() and quit()
some basic qns on Actions like click, right click, double click
what is implicit wait and syntax for this, what are the time units types, can we give hours and days also for time units?
explain the POM
Explain about you frame work?
Xpath – Parent, Sibling relation
If m1, m2, m3, are the methods in your class and you have given m1, m2, m4 in your xml. Will it skip the methods m1 and m2 or it will throw an error?
What is the most generic exception class in selenium
Write a sample code for the webElements
Check box
Text box
Drop down
Alert
Popup window
Click at the corner of the button
Click on the button without using click method
Get the IP address of the local host and check whether it is a valid address
Write a code for data provider.
Explain data driven and hybrid driven framework
Write code to read property file
Write a code to read the text file and print the no. Of vowels in it
Write a sample code for palindrome
You are inspecting a (Tex t box) WebElement and it is pointing to div tag. Will you be able to enter a text when the tag is div
Explain about your project folders
Write a sample code for any of the testcase you have designed using a framework
Difference between hashmap and hashtable with syntax
How will you read a pdf file. What jar file is needed?
GitHub commands. If 2 users are modifying the file in git hub and you want to know the changes and who had made it. What is the command to perform
Maven – explain
How will you schedule a job to run
Will the hidden element (style = hidden) can be retrieved by coding?
does hashmap accept duplicate values
D/B hashmap and hashtable, arraylist & linked list and their methods
wait() & sleep() in thread & questions on thread exceptions
Program to convert a string to palindrome
Maven & Jenkin - general question
Difference between Jenkin & Windows task scheduler
Xml path using following - sibling
code to retrieve element from webtable and click its corresponding check box and verify If the link is enabled in that row. If the check box is clicked and click the link
question on CSS
how to retrieve value of an attribute of an element on xml path
Abstract class, object class & its methods
can a variable declared as private static final can be accesssed by other class in same package/different package
rise of static keyword for variable, method
abouth the report that we provide to customers in our project
challenges faced in your project
when do we use selenium grid
Self introduction?
Tell about your projects and Role and responsibilities?
What are framework you have using in your project?
Draw the framework architecture and explain the framework?
Diff between findElement and findElements()?
How will you navigate the pages using selenium?
What is data driven framework? Explain poi.jar?
Write sample selenium program with verifyEquals and assertEquals that you used in your projects?
Diff between driver.findElement(By.id("")) and driver.findElementById("")
How will you handle drop-down?
In the mail inbox how will you find the email with attachement?
Challenges faced in your automation project and how you overcome those?
What is keyword driven framework?
Selenium remote execution?
What is Css Selector?
Scenario -- I have three unique buttons in my page.(Display names are different). The internal ID & Name changes on every page load.I need to click on each button in sequence.
How will you upload file in a web page using selenium?
How to take screen shot using selenium?
Do you know about Seleniunm RC?
What is Test NG and annotations?
What is XPath Axes?
Java
How would rate yourself in java out of 5.
Write a java program to find number is prime or not?
How do you achieve multiple inheritances in java.
main() method can be overloaded?
main() method can be overridden?
Diff between list and set?
What is Interface?
What is abstract class?
Diff between Interface and abstract class?
What is Static?
Diff between mutable and immutable? I explain with String and StringBuffer but they were not convinced.
What is string buffer string and differences between them?
Diff between Overloading and Overriding?
Diff between throw and throws?
final vs finally ?
General
What is Maven?
How many bugs you found so far?
How many testcases you written?
How many minimum test cases you can write for a functionality? Eg. I am sitting the room near a table and i have to take a pen from the table?
Explain Defect time cycle?
Explain the C1 issue you have worked?
Expected CTC?
Notice Period?
Why are you looking for a change?
what is exception and error
Difference between == and .equals
What is command line arguments - customised behavior of main method
diff b/w primitive and non-primitive data type
what is testng and what is its use
What is variable and types
what is the main use of static
How will you verify 100 link clicks at a time
There are 12 buttons, they are month buttons. I have to verify and click the button
Open a page, search for item and click the last item
What are the method names for identifying x axis and y axis
To identify dynamic webelement, which locator to use
They read our resume word by word and ask qns from each line of it. So be prepared in usage of words in resume. Highlight the topics that you know very well.
Other qns asked -
Explain oops concepts with example
Java pgm fr Floyd triangle
Read and write data from excel - code
Write down all possible scenarios - positive and negative for purchasing a mobile from flipkart - end to end
Test ng annotations, data provider
A person from a manager role interviewed me.. it was all about making him accept that you have real project experience in selenium.. need to explain the project in and out with pom framework , test ng and other related concepts.. 😊 all the best..
Explain automation framework architecture in ur project using diagram.
Can we have multiple object property files . At every instance of reading frm object property file
u r doing read operation. I want to do only once not again n again..How will u do it.
What drawbacks u faced in selenium, Where it doesnt wrk, wht ocasions u faced like this..how u handled it
Write a code tht if a particular exception happens, the try block should run again
A string "yyyyyHelloyyyy" is given.write code to print only Hello
Difference between WebDriver driver = new WebDriver; and FirefoxDriver driver = new FirefoxDriver
Bug Lifecycle
"Google.com
DesiredCapabilities for proxy to Firefox browser.
Have you worked on Mac?
Do you know what is component framework?
Which framework do you use in your project and explain.
What type of Reports do you use in project, not asking about TestNG reports.
Find No. of mails present in the Inbox
If a button is not getting clicked 2 out of 5 times, Is your script is failing or how do you handle it?
"Ctrl"+"Alt"+"Delete" - Do this in a single line of Code
How do you upload a file by clicking Browse button?
How do traverse to a 3rd frame from 1st frame, Directly or how?
How do you capture a text which is present inside a textbox
What is the class used for Dropdown and what methods for selecting the options?
Can you traverse reverse in X-path to div. Given Textbox with id present inside a span which is in-turn present inside div.
Initialize and insert an item into a HashMap
Difference between LinkedArray and ArrayList
Difference between LinkedHashMap and HashMap
Given 20 Students name. i) Remove the duplicate Names, ii) Sort them Alphabetically.
There is a String like 123ABCD456. You need to store Integer and Char seperately.
U have a webtable like below
I need to get the Iphone price of 750
Write code for Mouse over, drag and drop, Select Dropdown.
How to scroll horizontally and vertically in a webpage. Code for it..
Switching from one frame to another. Whether you should come out of first frame or can directly switch to other. Same scenario incase of nested frame.
Swap two columns in a table..Write code
Scenario: in Gmail login after entering username & pswrd - submit button vl b enabled. If submit is not enabled even after entering username,pswrd how can u handle this ?
There will be two windows A and B, once you navigated to Window B from Window A by clicking some button; window A will be closed/expired. In window B if you click some button then window A will open again. Write java code for this..
In a webpage will be 3 textboxes there, for textbox1 you have to pass some value, and in textbox2 some value will be there, the value present in textbox2 has to be copied to textbox3, and you have to click submit button. Write java code for this.
In a webpage two table will be there, write a java program to swap data of two tables,
What is the difference between absolute and relative xpath?
Difference between throws and try catch?
what are the different types of popups you came across in your project and how do you handle them?
Name some exceptions thrown by java and selenium.
How do you sort element in a linklist?
Difference between linkedhashmap and treehashmap.
Given a scenario where a webtable was given one of the rows was having a text field, how would you pass the value from excel to that text field write a code for it.
Scenario- A particular element locators keeps on changing every other day how would you handle, write a method for it
"Scenario- Have a page P1 if you click on a button it will navigate you to P2 and P1 will get close similar is the case with P2 i.e if you click on a button it will navigate to p1 but
Scenario3- There are two web tables 2*2 each hw would you swap the the values of table one with table two so my output looks alike as shown below write a code for it.
string s= new string("hcl"). how many object it will create
what is array and list
how do u connect ur Db with selenium
swap numbers without using temp variable
reverse the string without using string buffer method
how many type of list
how to give sample test data to ur test case
what are the challenges u have faced in automation
explain your day to day work
explain ur project
abstract class and interface difference
which reporting tool u r using
how to get report
given one html code and asked me to write 2types of xpath
how to automate the image eg. dynamically change image like graph
do u have knowledge on autoit
what is thread and how to create thread class
write a selenium code for drop down by using index
diff between get Windowshandle and getwindowhandles
IS it possible to create a object for interface?
how to take screenshot. write a code for that
Explain ur framework
Explain about test case execution flow ( from where it start to close the browser )
write a code for password validation (first letter should be upper case, alpha numeric, spl character )
how to get data from webtable (5th row 8th colum)
diff between arraylist and linked list
if there are 100 links how to click 5 th link while running first time of case, next time it should click 6th link
aboyt ur current working project
do u know any mob automation tool
what is appium
Xcel get data
Interface and its example
Abstract and its example
This keyword example
Super keyword example
Handling Alerts
Handling Windows...
Explain about ur framework
if there are 100 links how to click 5 th link while running first time of case, next time it should click 6th link 4)aboyt ur current working project
reverse the string without using string buffer methods
how many type of list 7) how to give sample test data to ur test case
give one html code and ask me to write 2types of xpath
how many years you are in automotion
how to handle dynamic elements
how do deal with radio button
adv of pom
what is keyword driven
tell me the code of browser launch, passing url
types of xpath
testng annotations
what is the use of testng. xml
how to paas data to the test cases
xcel sheet access
same element present in more than one time means how to locate it
how u r integrating pom with keyword driven
what is record and play back? then why are writing scripts
how to give priority and how to skip the testcased
ex for inheritance . during inheritance how to access the object of class A in class B
tell me the oops concept
what are the challenges u have faced
are u willing to learn new things
are u flexible with timing
How will you group the test cases based on smoke ans regression?
What are the TestNg annotaions you have used in your project?
write a code to find how many check boxes are checked and how many unchecked in a webtable where the row count is unknown. There will be many checkboxes in each rows. Should not use Xpath.
Write a code to print the default value displayed in the dropdown using select class.
write a method with 3 parameters (rowNum, colNum, StringValue) which should place a value in the user defined row and column in a new sheet.
Explain about 'throw' keyword
In the below code which catch block will get executed first,
write the various xpaths you know
How will you get the last row number in excel?
Explain Page object model project folder structure and how you handle reports in that.
Validate the List box value based on the another list box selection
Direct window handling concepts
Write xpath to select 2nd row, 5th column list box
What are the actions that you can perform with Actions class
Difference between window handling and frame. Will both r same?
How can you check whether a field is available and enabled in a webpage
Write a code to validate the List box values using HashMap
Interface,
Inheritance,
Polymorphism,
Final keyword in java,
Difference B/w abstract class & interface,
Collections,
How to pass URL in java & verify response,
Diff b/w set & list,
Diff b/w explicit wait and implicit wait,
Interface of WebDriver class,
what WebDriver returning,
TestNG annotations,
How to pass parameters using TestNG,
explain structure of testng xml,
how to run script in parallel,
How to run groups,
Mevan build command,
Diff b/w clean build and test in mevan,
explain Mevan Pom xml,
explain your project framework,
explain POM framework,
explain cucumber keywords,
How to write script for specific scenario and how system wiĺl identifies those steps,
Sql- Diff b/w inner join and left outter join,
Select max record from table, write sql script,
what is returning TestNG dataProvider,
How to run specific class in testng,
have u used continues integration,
Advantages & disadvantages of appium,
how to switch webview,
how appium works,
touch actions,
unhandled exception and handled exceptions difference,
What framework you use in your project.
Various annotations in testng.
A sample testng XML to run class 2 first and class 1 and 3 should be dependent on class 2.
How you execute a method first out of 3 methods in a class.
How you connect to a database. Write code.
What is inner join. Write a sample query.
How do u sort an arraylist.
What is generics.
Difference between abstract and interface class.
What is xpath.
Write an xpath for dynamically changing id like hcl1234,hcl2457,hcl6542.
How do you add a dependency in maven project. Write the syntax
Write a script to read the excel and print the cell values.
What is Reflection and where do u use?
What is Implicit and Explicit wait and write the syntax for it.
What is the use of Debugger in Java?
How to upload a file using windows file exporer pop up and explain the different ways in detail?
how to handle multiple popups
Write program to read excel value and search for particular value in the excel value in the excel and return the output
write a program for get alist of value from drop down
Different between single and double slash in xpath?