Professional Documents
Culture Documents
Selenium Interview Questions
Selenium Interview Questions
inheritance
overloading
explicit wait:
visiblity of elements
javascript executer:
scrolling webpage
dropdown:
how many number of options how to find
in select class we can use get options as list
then use size in list to get it
Select s = new Select(driver.findElement(By.xpath("//select[@name=’selType’]")));
// getting the list of options in the dropdown with getOptions()
List <WebElement> op = s.getOptions();
int size = op.size();
TestNg: difference
hard--if a condition fails the next line will not get executed
soft--it will execute even if a condtion fails
then we will have result of failure as we give the assertAll
Hybrid:
combination data driven
using utility
module wise writting
jenkins:
Encapsulation:
abstract class:
if you have only one parameter id that is dynamic how to write xpath?
selenium grid
autolabs:
1]parallel testing in selenium:
selenium grid we can use
2]testNg advantages
3]sequence of annotations in testng
4]before test and before method difference
5]100 textcase beofre method will u do ur setup method?is it right approach--yes it
is right approach
because it is always good to keep our test cases independent of each other.If we
do before @test
we make it dependent when one test case fails the other dependent test cases will
be skipped.
6]best practices to write independent test cases?for best execution percentage
-->it should not be dependent
7]TDD vs BDD
8]who all will participate in BDD(po,qa,dev) and TDD
9]who is writting the feature file?
10]on what basis feature file is written?
11]what is diff between when,given,then,and---keywords
12]scenario
13]background and hooks term BDD
14]parallel execution of 1 feature file in testNG file
15]can u run parallel test in cucumber?
16]wwindow-->link -->getWindowHnadles,swithvTo--35.15
mthis overloading:
login(otp,userid pass,mobile nu)
payment method(card,upi,gpay)
search method(diif filters name,color,proce))