Top 100+ Selenium Ide Interview Questions And Answers
Question 1. What Do You Know About Selenium?
Answer :
Selenium is a collection of equipment for internet automation checking out. Selenium first came to life in 2004 while Jason Huggins turned into trying out an inner software at Thought Works. Selenium became a exceptional tool, it wasn’t without its drawbacks. Because of its JavaScript primarily based automation engine and the safety limitations browsers observe to JavaScript, various things have become impossible to do.
Selenium Suite of initiatives includes:
Selenium IDE
Selenium Core
Selenium 1 (called Selenium RC or Remote Control)
Selenium 2 (known as Selenium Web motive force)
Selenium-Grid
Question 2. What Are The Technical Challenges With Selenium?
Answer :
As you realize Selenium is a loose ware open source trying out device. There are many challenges with Selenium.
Selenium Supports simplest net based totally applications
It doesn’t guide any non net based totally (Like Win 32, Java Applet, Java Swing, .Net Client Server and so on) programs
When you compare selenium with QTP, Silk Test, Test Partner and RFT, there are many demanding situations in phrases of maintainability of the test cases
Since Selenium is a freeware tool, there's no direct assist if one is in problem with the guide of applications
There isn't any object repository idea in Selenium, so maintainability of the items is very excessive
There are many demanding situations if one need to have interaction with Win 32 windows even when you are running with Web primarily based applications
Bitmap assessment isn't always supported via Selenium
Any reporting related skills, you need to rely upon third birthday celebration tools
You need to research someone of the native language like (.Net, Java, Perl, Python, PHP, Ruby) to paintings correctly with the scripting side of selenium
SILK TEST Interview Questions
Question 3. What Are The Test Types Supported By Selenium?
Answer :
Selenium could be used for trying out the web primarily based packages.
The check kinds may be supported are:
Functional,
Regression,
Load testing
The automation device can be applied for submit launch validation with non-stop integration equipment like:
Jenkins,
Hudson,
Quick Build
CruiseCont
Question four. What Are The Capabilities Of Selenium Ide?
Answer :
Selenium IDE (Integrated Development Environment) works much like industrial tools like QTP, Silk Test and Test Partner etc.
The below stated factors describes nicely about Selenium IDE:
Selenium IDE is a Firefox upload-on.
Selenium IDE can support recording the clicks, typing, and different actions to make a test cases.
Using Selenium IDE A Tester can play returned the take a look at instances inside the Firefox browser
Selenium IDE helps exporting the take a look at cases and suites to Selenium RC.
Debugging of the take a look at instances with step-with the aid of-step may be completed
Breakpoint insertion is feasible
Page abstraction functionality is supported through Selenium IDE
Selenium IDE can help an extensibility functionality allowing the use of add-ons or consumer extensions that expand the functionality of Selenium IDE
QTP Tutorial
Question 5. What Are The Challenges With Selenium Ide?
Answer :
Selenium-IDE does not without delay help:
Condition statements
Iteration or looping
Logging and reporting of test outcomes
Error handling, in particular unexpected mistakes
Database testing
Test case grouping
Re-execution of failed tests
Test case dependency
Capture screenshots on check screw ups
Results Report generations
QTP Interview Questions
Question 6. Which Are The Browsers Supported By Selenium Ide?
Answer :
Selenium IDE helps simplest one browser Mozilla Firefox.
The versions supported as of now are:
Mozilla Firefox 2.X
Mozilla Firefox 3.X
The variations no longer supported as of now are:
in advance versions of Mozilla Firefox 2.X
Mozilla Firefox four.X
Question 7. How To Execute A Single Line Command From Selenium Ide?
Answer :
Single line command from Selenium IDE can be done in two ways:
Right click at the command in Selenium IDE and select “Execute This Command”
Select the command in Selenium IDE and press “X” key on the keyboard
Selenium Tutorial Manual Testing Interview Questions
Question eight. How To Insert A Start Point In Selenium Ide?
Answer :
Start point Selenium IDE can be set in two ways:
Right click on the command in Selenium IDE and pick “Set / Clear Start Point”
Select the command in Selenium IDE and press “S” key on the keyboard
You will have best one begin point
If you've got already set one begin factor and you selected other command as begin point. Then the primary start point might be eliminated and the brand new start factor may be set
Question 9. How To Insert A Comment In Selenium Ide?
Answer :
Comments in Selenium IDE can be set in two methods:
Right click on on the command in Selenium IDE and choose “Inert New Comment”
If you want to remark an existing line. You need to observe the underneath mentioned steps.
Select the source tab in IDE
Select the road that you want to comment
Assume that if you want to remark a open command you want to put in writing like under mentioned code
<tr>
<!–
<td>open&l/td>
<td>/node/304/edit&l/td>
<td></td>
–>
</tr>
Selenium Interview Questions
Question 10. How To Insert A Break Point In Selenium Ide?
Answer :
Break factor can be set in two methods in Selenium IDE
Right click on the command in Selenium IDE and choose “Toggle Break Point”
Select the command in Selenium IDE and press “B” key on the keyboard
If you need to clear the destroy point once again Spress “B” key at the keyboard
You can set more than one destroy points in Selenium IDE
JMeter Tutorial
Question 11. How To Debug The Tests In Selenium Ide?
Answer :
To debug or execute the take a look at cases line by using line.
Follow the underneath stated steps:
Insert a spoil From the area in which you want to execute little by little
Run the take a look at case
Execution could be paused on the given spoil factor
Click on the step (Blue) button to preserve with the next assertion
Click on Run button, to hold executing all of the instructions at a time
JMeter Interview Questions
Question 12. How To Export The Tests From Selenium Ide To Selenium Rc In Different Languages?
Answer :
From selenium IDE the take a look at instances may be exported into the languages
.Net
Java
Perl
Python
PHP
Ruby
The underneath noted steps can give an explanation for how to export the take a look at instances:
Open the check case from Selenium IDE
Select File -> Export Test Case As
SILK TEST Interview Questions
Question thirteen. How To Export Selenium Ide Test Suite To Selenium Rc Suites?
Answer :
From selenium IDE the check suites can be exported into the languages as noted beneath
.Net
Java
Perl
Python
PHP
Ruby
The below cited steps can provide an explanation for how to export the check suites:
Open the take a look at case from Selenium IDE
Select File -> Export Test Suite As
Software trying out Tutorial
Question 14. Which Is The Command Used For Displaying The Values Of A Variable Into The Output Console Or Log?
Answer :
The command used for displaying the values of a variable into the output console or log – echo
If you want to show a steady string.
The underneath stated command can be used
echo <constant string>
ex: echo “The sample message”
If you need to show the cost of a variable it can be written like under
echo $<variable name>>
ex: echo $var1
Note: Here var1 is the variable
Question 15. Which Are The Browsers Supported By Selenium Rc?
Answer :
Supported browsers for Selenium RC include:
*firefox
*mock
*firefoxproxy
*pifirefox
*chrome
*iexploreproxy
*iexplore
*firefox3
*safariproxy
*googlechrome
*konqueror
*firefox2
*safari
*piiexplore
*firefoxchrome
*opera
*iehta
*custom
Automation Testing Interview Questions
Question sixteen. Which Are The Operating Systems Supported By Selenium?
Answer :
Selenium IDE
Works in Firefox 2+ Start browser, run tests Run tests
Operating Systems Supported:
Windows,
OS X
Linux
Solaris
Others whichever supports Firefox 2+
Selenium Remote Control
Used for starting browser and run checks
Operating Systems Supported:
Windows,
OS X
Linux
Solaris
Others
Selenium Core
Used for walking assessments
Operating Systems Supported:
Windows,
OS X
Linux
Solaris
Others
JUnit Tutorial
Question 17. What Is Selenium Rc?
Answer :
Selenium-RC is the answer for assessments that need a bit extra than just simple browser actions and a linear execution. Selenium-RC leverages the full electricity of programming languages, developing exams which can do things like study and write external documents, make queries to a database, ship emails with check reviews, and almost whatever else a consumer can do with a normal utility.
You will need to apply Selenium-RC each time your test requires logic no longer supported by using walking a script from Selenium-IDE
Software checking out Interview Questions
Question 18. Why Selenium Rc Is Used?
Answer :
Selenium-IDE does no longer immediately aid:
situation statements
new release
logging and reporting of check results
error managing, mainly unexpected errors
database trying out
check case grouping
re-execution of failed checks
check case dependency
seize screenshots on test screw ups
The motive in the back of why Selenium-IDE does now not assist the above stated necessities is IDE supports simplest HTML language. Using HTML language we can't attain the above referred to requirements. Because HTML does no longer support conditional, looping and outside source connectives.
To conquer the above mentioned issues Selenium RC is used.
Since Selenium RC helps the languages .Net, Java, Perl, Python, PHP, and Ruby. In these languages we are able to write the programme to gain the IDE troubles
QTP Interview Questions
Question 19. Which Are The Languages Supported By Selenium Rc?
Answer :
The languages supported by means of Selenium RC:
.Net,
Java (Junt three, Junt four, TestNG, Groovy)
Perl,
Python,
PHP,
Ruby
TestNG Tutorial
Question 20. What Is Selenium Grid?
Answer :
Selenium Grid is a part of Selenium suite of projects. Selenium Grid transparently distribute your tests on more than one machines so you can run your checks in parallel, cutting down the time required for strolling in-browser check suites. This will dramatically quickens in-browser internet checking out, giving you quick and correct feedback you could depend on to improve your internet software.
JUnit Interview Questions
Question 21. What Is Selenium Webdriver Or Google Webdriver Or Selenium 2.Zero?
Answer :
WebDriver makes use of a specific underlying framework from Selenium’s javascript Selenium-Core. It also offers an opportunity API with capability not supported in Selenium-RC. WebDriver does no longer rely upon a javascript center embedded inside the browser, consequently it is able to keep away from some long-strolling Selenium barriers.
WebDriver’s intention is to provide an API that establishes:
A properly-designed fashionable programming interface for internet-app testing.
Improved consistency between browsers.
Additional functionality addressing testing troubles no longer well-supported in Selenium 1.0.
The Selenium builders attempt to constantly improve Selenium. Integrating WebDriver is another step in that technique. The developers of Selenium and of WebDriver felt they might make vast gains for the Open Source check automation community be combining forces and merging their thoughts and technologies. Integrating WebDriver into Selenium is the modern-day end result of these efforts.
Question 22. What Are The Capabilities Of Selenium Webdriver Or Google Webdriver Or Selenium 2.Zero?
Answer :
One have to use WebDriver while requiring improved support for
Mult-browser trying out such as progressed capability for browsers not properly-supported through Selenium-1.0.
Handling a couple of frames, more than one browser windows, popups, and indicators.
Page navigation.
Drag-and-drop.
AJAX-based totally UI factors.
SAP Testing Tutorial
Question 23. What Is The Architecture Of Selenium Rc?
Answer :
The Selenium Server which launches and kills browsers, and acts as an HTTP proxy for browser requests.
Client libraries for various programming languages, every of which instructs the Selenium Server in how to test the AUT by using passing it your take a look at script’s Selenium instructions.
The diagram shows the client libraries talk with the Server passing each Selenium command for execution. Then the server passes the Selenium command to the browser the use of Selenium-Core JavaScript commands. The browser, the usage of its JavaScript interpreter, executes the Selenium command, which efficaciously, runs the take a look at you laid out in your Selenese take a look at script.
TestNG Interview Questions
Question 24. Does Selenium Support Mobile Internet Testing?
Answer :
Selenium supports Opera. And opera is utilized in most of the Smart telephones. So whichever Smart phone helps opera, selenium can be used to check. So, you may use Selenium RC to run the checks on mobiles.
Manual Testing Interview Questions
Question 25. Does Selenium Support Google Android Operating System?
Answer :
Yes, Selenium Web Driver or Google Web Driver or Selenium 2.Zero supports Android Operating System. There are numerous libraries written to support Android Operating System.
QUnit Testing Tutorial
Question 26. What Are The Types Of Text Patterns Available In Selenium?
Answer :
There are 3 sorts of styles available in Selenium:
globbing
normal expressions
exact
SAP Testing Interview Questions
Question 27. How To Use Regular Expressions In Selenium?
Answer :
Regular expressions in Selenium IDE can be used with the key-word – regexp: as a prefix to the price and patterns wishes to be covered for the anticipated values.
For example in case you want to use the regular expression for a command
Command: verifyText
Target: //font/font/b/font[1]
Value: Flight Confirmation # 2011-05-02451
within the above example Flight Confirmation is continuously changing whenever you run the check case. So this can be written with a everyday expression as stated underneath
Command: verifyText
Target: //font/font/b/font[1]
Value: regexp:Flight Confirmation # [0-9]four-[0-9]2-[0-9]5,10
Selenium Interview Questions
Question 28. What Are The Regular Expression Patterns Available In Selenium?
Answer :
Selenium normal expression patterns provide the same wide array of special characters that exist in JavaScript.
Below are a subset of those unique characters:
.: any unmarried man or woman
[ ]person magnificence: any unmarried person that looks in the brackets
*quantifier: zero or more of the previous man or woman (or organization)
+quantifier: 1 or more of the preceding person (or group)
?Quantifier: 0 or 1 of the previous man or woman (or institution)
1,fivequantifier: 1 via five of the preceding man or woman (or groupalternation: the individual/organization on the left or the character/organization on the right
( )grouping: regularly used with alternation and/or quantifier
Question 29. What Is Selenese?
Answer :
Selenium set of commands that are used for strolling the check are known as as Selenese.
There are 3 forms of Selenese, the ones are:
Actions – used for performing the operations and interactions with the goal elements
Assertions – used as test points
Accessors – used for storing the values in a variable
Selenium WebDriver Interview Questions
Question 30. How Do You Add Check Points Or Verification Points In Selenium?
Answer :
Check factors or verification factors are called Assertions in Selenium. The key phrases with under mentioned prefix could be used for adding test factors or verification factors.
Confirm
assert
waitFor
Question 31. What Is Assertion In Selenium?
Answer :
Assertion is not anything but a test or verification factor.
Assertion verifies the kingdom of the software conforms to what's predicted.
Examples include “make sure the page title is X” and “verify that this checkbox is checked.
Question 32. What Are The Types Of Assertions There In Selenium?
Answer :
Selenium Assertions may be used in 3 modes:
assert – When an “assert” fails, the check might be aborted. If you are executing check suite, the following state case will start
affirm – When a “affirm” fails, the take a look at will hold execution, logging the failure.
WaitFor – “waitFor” commands wait for some circumstance to turn out to be actual (which may be beneficial for checking out Ajax programs). They will be triumphant right away if the condition is already authentic. However, they may fail and halt the check if the condition does no longer grow to be true within the modern timeout placing
QUnit Testing Interview Questions
Question 33. When To Use Assert, Verify And Waitfor In Selenium?
Answer :
assert – If the anticipated fee is mandatory to retain with the subsequent set of steps we can use Assert. As Assert aborts the take a look at, if the predicted price doesn’t in shape. It is ideal to apply for any obligatory checks.
Verify – If the expected fee is non-compulsory to maintain with the subsequent set of steps we are able to use Verify. As Verify keeps executing with the subsequent set of steps, if the predicted fee doesn’t suit. It is good to apply for any non-obligatory checks.
WaitFor – If your check needs to wait, if the predicted value isn't always matching we use waitFor. We commonly use waitFor for AJAX sort of controls loading inside a page
JMeter Interview Questions
Question 34. What Is An Accessor In Selenium?
Answer :
Accessor is one of the kind of Selenese.
Accessors are used for storing the cost of a goal in a variable.
Ex:
storeTitle – Stores the name of a window in a variable
storeText – Stores the target element text in a variable
Accessors also are used for evaluating the result and storing the bring about a variable
Ex: storeTextPresent – Evaluates whether or not the text is present inside the modern-day window. If the text is present shops real in the variable else shops false
Ex: storeEementPresent – Evaluates whether the element is gift inside the current window. If the detail is present stores proper in the variable else stores fake
Question 35. When To Use Accessors In Selenium?
Answer :
Accessors are often used for storing the value in a variable.
The variable can be used for following motives:
To get the fee from an detail and evaluating with some dynamic price
To take a logical decision to execute the check steps
ex: if the value of the variable real execute step1 and step2 else step3 and step4
To execute some statements in a loop based at the cost again through the detail
Question 36. How To Capture Bitmaps In Selenium?
Answer :
Bitmaps are captured the use of the Selenium set of instructions. There are two modes of shooting the bitmaps
Capture the bitmap for the whole web page – it captures the browser foremost page vicinity of AUT
Capture the bitmap for the screen shots – it captures the complete display screen shot just like the print scree which you provide from your keyboard
Selenium doesn’t aid bitmap taking pictures for an detail on AUT.
Automation Testing Interview Questions
Question 37. Which Are The Commands Used For Capturing The Bitmaps?
Answer :
captureEntirePageScreenshot : Saves the whole contents of the cutting-edge window canvas to a PNG report. Contrast this with the captureScreenshot command, which captures the contents of the OS viewport (i.E. Whatever is presently being displayed at the screen), and is applied in the RC best. Currently this best works in Firefox whilst going for walks in chrome mode, and in IE non-HTA using the EXPERIMENTAL “Snapsie” software. The Firefox implementation is by and large borrowed from the Screengrab! Firefox extension.
CaptureEntirePageScreenshotAndWait : Saves the complete contents of the modern-day window canvas to a PNG file. Contrast this with the captureScreenshot command, which captures the contents of the OS viewport (i.E. Whatever is currently being displayed at the screen), and is carried out inside the RC best. Currently this only works in Firefox while strolling in chrome mode, and in IE non-HTA using the EXPERIMENTAL “Snapsie” software. The Firefox implementation is ordinarily borrowed from the Screengrab! Firefox extension.
Note: This command runs with simplest mozilla firefox while you run the exams from RC. Other browsers it'll now not assist
Question 38. What Is The Difference Between Captureentirepagescreenshot And Capturescreenshot?
Answer :
captureEntirePageScreenshot :
This captures the AUT net web page simplest
This helps handiest mozilla firefox
Accepts arguments. One is the report call to be saved and different argument is lower back ground colour
CaptureScreenShot :
This captures the System display shot
This helps all of the browsers whilst you run from Selenium RC
Accepts one argument. That is the record name to be stored.
Question 39. How Do You Set User Extensions In Selenium Ide?
Answer :
Open person-extensions.Js with an editor (Notepad, and so forth.); it’s determined in the seleniumcorescripts folder. If it doesn’t exist, simply create it.
If you need to, devote the user-extensions.Js record (like if you use subversion).
Open Selenium IDE and choose the Options menu after which Options… from that menu.
Make positive the direction on your user-extensions.Js report is entered within the Selenium Core extensions field (like seleniumcorescriptsuser-extensions.Js)
Press OK button on options
Restart the IDE to mirror your extensions.
Note: After reopen, Selenium IDE may additionally show compilations mistakes if the user-extensions.Js document has any syntax mistakes.
Question 40. What Are The Limitations Of Selenium Ide?
Answer :
The obstacles of Selenium IDE are:
Selenium IDE uses most effective HTML language
Conditional or branching statements execution like using of if, pick out statements isn't feasible
Looping statements the use of isn't viable immediately in Selenium HTML language in ide
Reading from external files like .Txt, .Xls isn't always feasible
Reading from the external databases isn't always viable with ide
Exceptional managing isn't always there
A neat formatted Reporting isn't feasible with ide
To do away with the above troubles we use Selenium RC
Software testing Interview Questions
Question forty one. If The Test Case Frame Contains Several Test Cases, How Can One Execute Just The Selected One Of Those Test Cases?
Answer :
Users can use "Play present day check case" feature of Selenium IDE
Question 42. What Are Selenium Tests Normally Named (as Displayed At The Top Of Each Test When Viewed From Within A Browser)?
Answer :
In the browser, the test call in Selenium IDE could be displayed.
JUnit Interview Questions
Question 43. How Can One Get Side To Always Record An Absolute Url For The Open Command's Argument?
Answer :
In the Selenium IDE options, take a look at "Record Absolute URL" choice.
Question 44. What Selenese Command And Argument Can Be Used To Transfer The Value Of A Javascript Variable Into A Side Variable?
Answer :
Use "shop" command
Question 45. How Would One Access The Value Of A Side Variable Named Name From Within A Javascript Snippet Used As The Argument To A Selenese Command?
Answer :
$variableName
Question 46. What Distinguishes Between An Absolute And Relative Url In Side?
Answer :
Absolute URL manner the URL starts with http or https. Selenium IDE addes the argument in the open assertion and create an absolute URL
Relative URL way that in BaseURL, we will put the principle area, and within the open statment, consumer have to positioned relative URL;
For example, if most important url is http://mysite.Com, within the relative url, we can put http://beta.Mysite.Com in the open assertion.
Question forty seven. What Must One Set Within Side In Order To Run A Test From The Beginning To A Certain Point Within The Test?
Answer :
We want to set a wreck point within the check, so the check will pause at the spoil point.
Question 48. What Does A Right-pointing Green Triangle At The Beginning Of A Command In Side Indicate?
Answer :
That triangle shows that test paused at that step, or will begin from that step.
Question forty nine. Which Browsers Can Selenium Ide Be Run In?
Answer :
Selenium IDE is firefox advert on, so it runs on Firefox browser.
Question 50. What Regular Expression Special Character(s) Means "any Character?"
Answer :
* symbol way any individual
Question fifty one. What Are The Important Features Of Selenium Ide?
Answer :
It has Record and Playback functions to create and execute Test cases
User/Tester can kind Test steps the usage of detail locators and Selenese commands with out the use of Recording feature.
Debugging feature for debugging take a look at cases.
It has an alternative of declaring name of every web page routinely.
Option to run unmarried test or a couple of tests(Test suite).
It has a feature of exporting testcase/suite into one-of-a-kind codecs like C#, Java, Ruby, Python
Question fifty two. How To Install Selenium Ide?
Answer :
Steps to Download and Install Selenium IDE:
Launch Firefox browser, down load selenium IDE from the Seleniumhq.Org website.
Firefox will shield you from putting in upload ons from surprising places, so we are able to need to click "Allow" to continue with the installation.
Install a couple of objects to guide Java, Ruby, Python etc... Formats.
Restart Firefox browser.
After Firefox reboots then we can use Selenium IDE.
Question 53. How To Export Test Cases From Selenium Ide To Selenium Webdriver?
Answer :
Open the Test case in Selenium IDE,
File menu
Save Test suite As
Select the language you need to export your test and provide the name to save it.
Question 54. What Are The Important Selenium Ide Commands Or Selenese Commands?
Answer :
Important Commands are:
Open, click, type, pick, assertText, assertTitle, assertTextPresent, verifyText, verifyTextPresent, veriftTitle, waitForText, waitForTextPresent, waitForTitle, keep, storeText, storeTitle, take a look at, uncheck, pause, mouseover, etc...
Question fifty five. Can We Edit Recorded Selenium Ide Test Cases?
Answer :
Yes, we will edit recorded Test instances, Add Steps, Delete steps, edit steps and Insert remarks.
Question 56. How To Execute Selenium Test Case Step By Step?
Answer :
Using Breakpoints and Step command we are able to execute Selenium Test case step by step.
Question fifty seven. What Is The Difference Between "assert" And "verify" Commands?
Answer :
When an "assert" command fails then take a look at execution will be aborted.
When a "affirm" command fails then take a look at will keep execution and logging the failure.
Question fifty eight. What Is The Default Format Of Selenium Ide Test Case?
Answer :
.Html
Question fifty nine. How To Create Test Cases Using Selenium Ide?
Answer :
Using Recording function we are able to generate Test cases in any other case we will kind Test steps the usage of Element locators and Selenese instructions.

