Selenium being one of the best automation testing tool for web apps, is used by almost every company and these companies don’t seem to stop hiring for testing job roles. Here are a few questions to get your preparation started to crack your next interview in automation testing.
3. Q
A&
rockinterview.in
Automation testing professionals are so much in
demand, and Selenium being one of the best
automation testing tool for web apps, is used by
almost every company and these companies don’t
seem to stop hiring for testing job roles.
4. rockinterview.in
HERE ARE FEW QUESTIONS
TO GET YOUR PREPARATION
STARTED TO CRACK YOUR
NEXT INTERVIEW IN
AUTOMATION TESTING.
5. Q
Arockinterview.in
WHAT IS AN XPATH?
Answer:
XPath is used to locate the elements.
Using XPath, we could navigate through
elements and attributes in an XML
document to locate web elements such
as textbox, button, checkbox, Image etc.,
in a web page.
6. Q
Arockinterview.in
WHAT IS THE DIFFERENCE
BETWEEN ASSERT AND
VERIFY IN SELENIUM?
Answer:
Assert: In simple words, if the assert condition
is true then the program control will execute
the next test step but if the condition is false,
the execution will stop and further test step
will not be executed.
Verify: In simple words, there won’t be any halt
in the test execution even though the verify
condition is true or false.
7. Q
Arockinterview.in
WHAT IS SELENIUM IDE
& SELENESE?
Answer:
Selenium IDE (Integrated Development
Environment) is a Firefox plugin. It is the
simplest framework in the Selenium Suite.
It allows us to record and playback the scripts.
Selenese is the language which is used to write
test scripts in Selenium IDE.
8. Q
Arockinterview.in
WHAT ARE THE VERIFICATION
POINTS AVAILABLE IN SELENIUM?
Answer:
In Selenium IDE, we use Selenese Verify and
Assert Commands as Verification points
In Selenium WebDriver, there is no built-in
features for verification points. It totally
depends on our coding style. some of the
Verification points are:
To check for page title
To check for certain text
To check for certain element (text box, button, drop down, etc.)
9. Q
Arockinterview.in
WHICH AUTOMATION TOOLS
CAN BE USED FOR POST-
RELEASE VALIDATION WITH
CONTINUOUS INTEGRATION?
Answer:
Automation tools could be used for
post-release validation with continuous
integration: CruiseCont, Hudson, Jenkins,
Quick Build.
10. Q
Arockinterview.in
WHAT IS A RELATIVE XPATH?
Answer:
Relative XPath means that user can start
from the middle of the HTML DOM structure
and no need to write long XPath. Example
of Relative XPath - //input[@id='email'].
11. Q
Arockinterview.in
GIVE AN EXAMPLE OF THE
LANGUAGES SUPPORTED
BY WEBDRIVER.
Answer:
Java, C#, Python, and Ruby, are all
supported directly by the development
team. There are also PHP and Perl
WebDriver implementations.
12. Q
Arockinterview.in
HOW A TEXT WRITTEN
IN A TEXT FIELD COULD
BE CLEARED?
Answer:
A text written in a text field could be
deleted by using the clear() method.
13. Q
Arockinterview.in
HOW CAN WE HANDLE
WEB-BASED POP-UP?
Answer:
There are four methods of the effective
Web-based pop-up handling:
String getText() method returns the text
displayed on the alert box
Void accept() method clicks on the “Ok” button
as soon as the pop-up window appears
Void dismiss() method clicks on the “Cancel”
button as soon as the pop-up window appears
Void send Keys(String stringToSend) method enters
the specified string pattern into the alert box
14. Q
Arockinterview.in
WHAT IS ROBOT API?
Answer:
Robot API is used to control keyboard or
mouse to interact with OS windows like
Download pop-up, Alerts, Print Pop-ups, etc.
or native Operation System applications like
Notepad, Skype, Calculator, etc.
15. Q
A&
rockinterview.in
TO PREPARE FOR YOUR NEXT INTERVIEW, PRACTICE
WITH INDUSTRY EXPERTS IN REAL-TIME WITH OUR
ROCK INTERVIEW APP.
Hope you enjoyed reading our compilation of the top trending Selenium
Interview Questions.
However, the answers are not exhaustive and we recommend a detailed
preparation plan for assuring a top job in the automation testing space.