YouTube Icon

Interview Questions.

Top 100+ Selenium Interview Questions And Answers - Jun 01, 2020

fluid

Top 100+ Selenium Interview Questions And Answers

Question 1. How Do You Verify An Object Presented In Multiple Pages?

Answer :

Check on every page

assertTrue(selenium.IsElementPresent(locator));
Question 2. How Do You Capture An Element Loading After The Page Load?

Answer :

provide a time to test the detail( in seconds) Like :

public void waitForElementPresent(String detail, int timeout) throws Exception 

for (int 2d = zero;; second++)

if (2nd >= timeout)
fail("Timeout.Unable to discover the Specified detail"+element);
try 

   if (selenium.IsElementPresent(detail)) destroy;
 
seize (Exception e)  
Thread.Sleep(one thousand);


SILK TEST Interview Questions
Question three. What Is Selenium ?

Answer :

Selenium is a portable software program checking out framework for net applications.
The assessments can be written as HTML tables or coded in some of famous programming languages and may be run directly in maximum modern internet browsers.
Selenium operations are enormously flexible, allowing many options for locating UI factors and evaluating expected test outcomes against real software behavior.
Selenium may be deployed on Windows, Linux, and Macintosh.
Selenium is used for UAT (User Acceptance Test)
Question 4. Why And When To Automate?

Answer :

Frequent regression trying out
Repeated test case Execution is needed
User Acceptance Tests
Faster Feedback to the builders
Reduce the Human Effort
Test identical software on more than one environments
QTP Tutorial
Question 5. What Are The Components Of Selenium ?

Answer :

Selenium IDE
Selenium Remote Control
Selenium Grid
QTP Interview Questions
Question 6. Explain About Selenium-ide ?

Answer :

Selenium IDE is an integrated improvement surroundings for Selenium exams.
Operates as a Firefox upload-on and offers an interface for growing and running individual take a look at cases or whole test suites.
Selenium-IDE has a recording feature, in order to maintain account of person actions as they're executed and store them as a reusable script to play again.
It additionally has a context menu (proper-click) integrated with the Firefox browser, which lets in the person to choose from a listing of assertions and verifications for the selected location.
Offers complete enhancing of test instances.
Although it's far a Firefox best add-on, tests created in it can additionally be run in opposition to different browsers through using Selenium-RC & specifying the name of the test suite at the command line.
Question 7. What Are The Features Of Selenium Ide ?

Answer :

Record and playback
Intelligent area choice will use IDs, names, or XPath as wished
Auto entire for all commonplace Selenium instructions
Walk via test instances and take a look at suites.
Debug and set breakpoints
Save texts as HTML, Ruby scripts, or different formats
Support for Selenium person-extensions.Js report
Option to robotically assert the name of each page
Rollup not unusual commands
 

JMeter Tutorial JMeter Interview Questions
Question eight. What Is Selenium-rc (remote Control) ?

Answer :

Selenium-RC gives an API (Application Programming Interface) and library for each of its supported languages: HTML, Java, C#, Perl, PHP, Python, and Ruby. Selenium-RC lets in the test automation developer to apply a programming language for optimum flexibility and extensibility in growing take a look at common sense.

For instance, if the application under test returns a end result set, and if the automatic check program desires to run exams on every detail in the result set, the programming languages generation aid can be used to iterate through the result set, calling Selenium instructions to run assessments on each item.

Question 9. Explain About Selenium-grid ?

Answer :

Selenium-Grid lets in the Selenium-RC strategy to scale for take a look at suites or test suites to be run in a couple of environments.

With Selenium-Grid a couple of times of Selenium-RC are running on numerous running gadget and browser configurations, each of those when launching register with a hub. When assessments are despatched to the hub they may be then redirected to an available Selenium-RC, as a way to release the browser and run the test.

This lets in for going for walks checks in parallel, with the entire take a look at suite theoretically taking simplest as long to run as the longest individual take a look at.

Automation Testing Interview Questions
Question 10. What Are The Selenese Commands In Selenium ?

Answer :

clicking a link - click on or clickAndWait commands
coming into values - type command
choosing options from a drop-down listbox - pick out command
clicking checkboxes or radio buttons - click command
Software testing Tutorial
Question 11. What Is Test Runner ?

Answer :

Test Runner permits you to run the take a look at case in a browser loaded with the Selenium-Core TestRunner. Test runner is invoked via clicking the underneath Shown button within the IDE.

Software checking out Interview Questions
Question 12. What Are The Running Options In Selenium ?

Answer :

Run a Test Case: Click the Run button to run the presently displayed test case.
Run a Test Suite: Click the Run All button to run all the test cases within the presently loaded test suite.
Stop and Start: The Pause button can be used to forestall the take a look at case at the same time as it's miles walking. The icon of this button then adjustments to suggest the Resume button. To maintain click on Resume.
Stop inside the Middle: Set a breakpoint in the check case to cause it to forestall on a particular command. This is useful for debugging your test case. To set a breakpoint, pick out a command, right-click, and from the context menu choose Toggle Breakpoint.
Start from the Middle: We can set the IDE to start jogging from a specific command in the middle of the take a look at case. This also is used for debugging. To set a start point, pick a command, right-click on, and from the context menu pick Set/Clear Start Point.
Run Any Single Command: Double-click on any unmarried command to run it through itself. This is useful whilst writing a unmarried command. It lets you right now test a command you are constructing, while you are not positive if it's far accurate. You can double-click it to peer if it runs efficaciously. This is likewise to be had from the context menu.
 

SILK TEST Interview Questions
Question thirteen. What Are The Assertion Statements In Selenium ?

Answer :

assertTextPresent : This will assert if the text is gift within the page.
AssertText: This will assert if a particular detail is having the precise text.
AssertTitle: This will assert if the web page is having a right identify.
AssertValue: This will assert if a Text container or take a look at container has a selected price
assertElementPresent: This will assert if a particular UI Element is present in the web page.
JUnit Tutorial
Question 14. Explain Selenium Waitfor Commands ?

Answer :

waitForPageToLoad : This command will make the script to attend until the page loads.Syntax is waitForPageToLoad(timeout); Timed out is the most time the script will watch for the web page to load.
WaitForAlert : This command will wait for the alert message to seem
waitForTable: This command will await the Web desk to completely load within the web page
waitForTitle: This command will for the page Title to seem on the browser.
Other waitFor instructions : Selenium has several different wait command like waitForText,waitForPopup and so on. These commands are generically referred to as Synchronization commands
Question 15. What Are The Advantages And Disadvantages Of Selenium ?

Answer :

Advantages

Supports C#, Java, PHP, Perl, Python
Supported on Windows, Linux and Mac OS
Highly lively developer network - backed by Google
Powerful methods to locate elements (Xpath, CSS, DOM)
Disadvantages

Challenges strolling on browsers other than Firefox
Difficulty to automate AJAX
Limitations to automate Applets, MS and Desktop Applications
JUnit Interview Questions
Question 16. What Is Selenium Ide?

Answer :

Selenium IDE is an included improvement environment for Selenium tests. It is carried out as a Firefox extension, and has a recording function, if you want to preserve account of user movements as they're executed and keep them as a reusable script to play lower back. Selenium-IDE additionally gives full editing of check instances for greater precision and control.

TestNG Tutorial
Question 17. Selenium Test A Application On Iphone Mobile Safari Browser?

Answer :

Selenium can deal with Mobile Safari browser. There is experimental Selenium IPhone Driver for walking tests on Mobile with Safari on the iPhone and iPad and iPod Touch.

TestNG Interview Questions
Question 18. Can Selenium Test An Application On Android Browser?

Answer :

Selenium can handle Android browser.

QTP Interview Questions
Question 19. How To Start The Selenium Server From Your Language Class?

Answer :

strive 
seleniumServer = new SeleniumServer();
seleniumServer.Begin();
 trap (Exception e) 
e.PrintStackTrace();

SAP Testing Tutorial
Question 20. But My Tests Need Me To Exercise Objects Outside Browser, How Do I Achieve It?

Answer :

You can use Robot magnificence in java to reap this, however it'd be dirty answer even if you get via this.

SAP Testing Interview Questions
Question 21. What Are The Technical Challenges With Selenium?

Answer :

As  Selenium is a loose ware open source trying out device. There are many challenges with Selenium.

Selenium supports most effective net primarily based applications.
It doesn’t help any non web primarily based (Like Win 32, Java Applet, Java Swing, .Net Client Server and many others) packages.
When you compare selenium with QTP, Silk Test, Test Partner and RFT, there are many challenges in terms of maintainability of the take a look at cases.
Since Selenium is a freeware tool, there may be no direct support if one is in hassle with the assist of applications.
There is not any item repository idea in Selenium, so maintainability of the items could be very high
There are many challenges if one should engage with Win 32 windows even whilst you are operating with Web based programs.
Bitmap contrast isn't always supported with the aid of Selenium.
Any reporting related skills, you want to depend on 0.33 party gear.
You need to analyze anybody of the native language like (.Net, Java, Perl, Python, PHP, Ruby) to paintings efficiently with the scripting side of selenium.
Question 22. How To Run Test Case Recorded Using Selenium Ide In Other Browsers?

Answer :

Running test case recorded with the help of Selenium Remote Control.

QUnit Testing Tutorial
Question 23. What Is The Selenium's Recording Language?

Answer :

Selenium’s recording language is “HTML”.

Selenium WebDriver Interview Questions
Question 24. What Are The Steps To Run Automation Using Selenium?

Answer :

The very primary steps are:

Record the take a look at steps using selenium-IDE.
Modify the script in line with the checking out wishes. Add validation factors, Java Scripts, Time-out and so forth.
Run the check.
View the result after test run complete analyze.
JMeter Interview Questions
Question 25. What Are The Capabilities Of Selenium Ide?

Answer :

Selenium IDE (Integrated Development Environment) works much like business tools like QTP, Silk Test and Test Partner etc. The beneath factors describes nicely approximately Selenium IDE.

Selenium IDE is a Firefox upload-on.
Selenium IDE can help recording the clicks, typing, and different actions to make a check instances.
Using Selenium IDE, a tester can play returned the check instances in the Firefox browser.
Selenium IDE supports exporting the test cases and suites to Selenium RC.
Debugging of the take a look at instances with step-through-step may be carried out.
Breakpoint insertion is possible.
Page abstraction capability is supported by means of Selenium IDE.
Selenium IDE can helps an extensibility functionality permitting the use of accessories or user extensions that make bigger the functionality of Selenium IDE.
Question 26. Describe Technical Problems That You Had With Selenium Tool?

Answer :

As with another form of test automation gear like SilkTest, HP QTP, Watir, Canoo Webtest, Selenium allows to file, edit, and debug exams cases. However there are several troubles that significantly affect maintainability of recorded test cases, every so often Quality Assurance Engineers complain that it takes greater time to preserve automated take a look at instances than to perform manual trying out; but this is an problem with all automatic testing equipment and most likely related to mistaken trying out framework layout. Another hassle is complex ID for an HTML detail. If IDs is vehicle-generated, the recorder check cases might also fail all through playback. The paintings around is to apply XPath to discover required HTML element. Selenium supports AJAX without problems, but QA Tester have to be aware that Selenium does now not understand while AJAX motion is completed, so ClickAndWait will not paintings. Instead QA tester should use pause, however the snowballing impact of numerous 'pause' commands might honestly sluggish down total trying out time of check instances. The high-quality solution might be to apply waitForElement.

Selenium IDE Interview Questions
Question 27. What Test Can Selenium Do?

Answer :

Selenium may be used for the useful, regression, load checking out of the internet primarily based programs. The automation device may be carried out for post launch validation with continuous integration gear like Jenkins, Hudson, QuickBuild or CruiseControl.

Automation Testing Interview Questions
Question 28. What Is The Price Of Selenium License Per Server?

Answer :

Selenium is open source software, released beneath the Apache 2.Zero license and can be downloaded and used without charge.

Question 29. How Much Does Selenium License Cost Per Client Machine?

Answer :

Selenium is open supply software, released below the Apache 2.0 license and can be downloaded and used with out price.

QUnit Testing Interview Questions
Question 30. Where To Download Selenium?

Answer :

Selenium can be downloaded and hooked up free of charge from seleniumhq.Org

Question 31. What Is The Latest Version Of Selenium?

Answer :

The latest variations are Selenium IDE 1.3.Zero, Selenium Server (formerly the Selenium RC Server) 2.8.0, Selenium Client Drivers Java 2.8.0, Selenium Client Drivers C# 2.8.Zero, Selenium Client Drivers Ruby 2.8.0, Selenium Client Drivers Python 2.8.1, Selenium Grid 1.Zero.Eight.

Question 32. What Are The Limitations Of Selenium Ide?

Answer :

Selenium IDE has many remarkable capabilities and is a fruitful and well-prepared check automation device for growing take a look at cases, in the equal time Selenium IDE is lacking certain critical capabilities of a trying out tool: conditional statements, loops, logging functionality, exception handling, reporting functionality, database testing, re-execution of failed assessments and screenshots taking capability. Selenium IDE would not for IE, Safari and Opera browsers.

Performance Testing Interview Questions
Question 33. What Does Side Stand For?

Answer :

Selenium IDE. It became a very intricate interview question.

Software testing Interview Questions
Question 34. Why Do I Get "permission Denied" Error During Execution Of Selenium Tests?

Answer :

The number one purpose of permission denied errors is equal foundation policy restrict from java script. To triumph over this error you may use browsers with elevated security privileges. In case of Firefox you should use *chrome and in case of IE you must use *iehta as browser for operating with Selenium.

Question 35. Is There A Way For Me To Know All Available Options When I Start Selenium Server?

Answer :

If you want to peer all alternatives to be had even as starting Selenium server you then ought to use option “-h” whilst beginning Selenium server

Java –jar .Jar –h

It could show you all the alternatives which you could use even as beginning the Selenium server.

Question 36. What Are The Locators Available In Selenium?

Answer :

ID
Name
Filters
DOM
CSS
Xpath
JUnit Interview Questions
Question 37. What Is Selenium Webdriver?

Answer :

Selenium WebDriver is a tool for writing computerized assessments of web sites. It is an API call and ambitions to mimic the behaviour of a real consumer, and as such interacts with the HTML of the application. Selenium WebDriver is the successor of Selenium Remote Control which has been formally deprecated.

Question 38. I Have Created My Own Firefox Profile; Can I Execute My Test Scripts On It

Answer :

You may want to create your own firefox profile due to the fact Selenium constantly created a clean firefox profile at the same time as executing the assessments and none of your FF settings and plug-in are taken into consideration with this smooth profile. If you want to execute assessments on FF with your settings then you need to create custom profile for FF.

To be able to execute assessments on a custom firefox profile you ought to specify its course while beginning Selenium server. For example in case your new profile is stored at “amazing location” for your listing then you definately have to begin Selenium server as following–

Java –jar .Jar -firefoxProfileTemplate "extraordinary vicinity"

Question 39. How Does Selenium Rc Stand With Other Commercial Tools?

Answer :

The biggest benefit of Selenium RC is that it's far clearly unfastened and has great help of languages and browsers (almost always). Selenium lags when it comes to test reporting as Selenium does no longer have any in constructed reporting however this can be without problems carried out.

Question 40. What Are Heightened Privileges Browsers?

Answer :

Firefox and IE have browser modes which aren't constrained by means of java script’s equal beginning coverage. These browsers are known as browsers with expanded security privileges. In case of Firefox it's far referred to as chrome (It’s not the Google browser) and in case of IE it is known as iehta

TestNG Interview Questions
Question 41. I Am Not Able To Use "style" Attribute To Locate Element With Ie Browser?

Answer :

This is due to the fact IE expects attribute values to be in caps even as other browsers assume it to be lower case letters. Hence

//tr[@style="background-color:yellow"] works with different browsers
//tr[@style="BACKGROUND-COLOUR:yellow"] works with IE

Question 42. How Many Testing Framework Can Qa Tester Use In Selenium Rc?

Answer :

Testing frameworks are not required, however they can be useful if QA Tester wants to automate test cases. Selenium RC supports Bromine, JUnit, NUnit, RSpec (Ruby), Test::Unit (Ruby), TestNG (Java), unittest (Python).

SAP Testing Interview Questions
Question 43. How To Developer Selenium Test Cases?

Answer :

Using the Selenium IDE, QA Tester can report a take a look at to recognize the syntax of Selenium IDE commands, or to test the fundamental syntax for a specific form of consumer interface. Keep in mind that Selenium IDE recorder isn't always smart as QA Testers need it to be. Quality guarantee group must never recall Selenium IDE as a "document, store, and run it" tool, all of the time expect transforming a recorded check instances to make them maintainable within the future.

Question 44. What Programming Language Is Best For Writing Selenium Tests?

Answer :

The internet applications can be written in Java, Ruby, PHP, Python or some other web framework. There are certain blessings for the use of the same language for writing test cases as application beneath check. For instance, if the team have already got the experience with Java, QA Tester should usually get the piece of advice even as studying Selenium test instances in Java. Sometimes it is higher to pick out easy programming language with a view to in the long run supply better success. In this example QA testers can adopt easier programming languages, as an example Ruby, much faster comparing with Java, and may become emerge as specialists as soon as possible.

Question forty five. Have You Read Any Good Books On Selenium?

Answer :

There are several superb books overlaying Selenium automation tool, you can take a look at the review at Best Selenium Books: Top Recommended web page.

Question forty six. Do You Know Any Alternative Test Automation Tools For Selenium?

Answer :

Selenium appears to be the mainstream open source tool for browser side trying out, however there are many options. Canoo Webtest is a notable Selenium opportunity and it is probably the fastest automation device. Another Selenium opportunity is Watir, but that allows you to use Watir QA Tester has to study Ruby. One greater alternative to Selenium is Sahi, but is has puzzling interface and small developers community.

Question forty seven. Compare Hp Qtp Vs Selenium?

Answer :

When QA team considers obtaining test automation to help in testing, one of the most important decisions is what technologies or equipment to apply to automate the checking out. The most apparent method may be to appearance to the software program market and examine a few test automation equipment. Read Selenium vs QTP evaluation

Question forty eight. What Are The Technical Challenges With Selenium?

Answer :

As you know Selenium is a free ware open source testing device. There are many demanding situations with Selenium.

Selenium Supports best internet based totally packages
It doesn’t help any non web primarily based (Like Win 32, Java Applet, Java Swing, .Net Client Server and so on) packages
When you compare selenium with QTP, Silk Test, Test Partner and RFT, there are many demanding situations in terms of maintainability of the take a look at cases
Since Selenium is a freeware device, there may be no direct guide if one is in problem with the aid of programs
There isn't any object repository concept in Selenium, so maintainability of the objects is very excessive
There are many challenges if one should interact with Win 32 home windows even when you are running with Web primarily based programs
Bitmap evaluation isn't supported by Selenium
Any reporting related capabilities, you need to rely upon 0.33 party gear
You want to study someone of the local language like (.Net, Java, Perl, Python, PHP, Ruby) to paintings correctly with the scripting side of selenium
Question 49. How To Test Ajax Application With Selenium?

Answer :

Ajax interview questions could be hard for novice inside the take a look at automation, but will be effortlessly cracked with the aid of Selenium Tester with a applicable revel in. Read the exact technique at Testing Ajax applications with Selenium in the right manner

Question 50. How Can I Learn To Automate Testing Using Selenium?

Answer :

Don't be amazed if the interviewer asks you to explain the method for learning Selenium. This interviewer desires to hear how you can innovative software check automation procedure the enterprise. Most probable they may be seeking out software program professional with an amazing Selenium enjoy, who can do Selenium education for group contributors and get the crew started with test automation. I wish this Selenium educational can be useful in the preparation for this Selenium interview question.

Question 51. While Trying To Execute My Tests With Firefox I Encountered Following Error "firefox Refused Shutdown While Preparing A Profile". How Do I Solve It?

Answer :

This message really approach that Selenium is not capable of launch FF browser as it's miles already strolling in your device. To overcome this you need to close all running times of FF browser.

You ought to also check your system system if there's any hidden FF profile going for walks which is not seen on display. You should kill all FF strategies and following this your tests have to run clean

Question fifty two. What Is The Use Of Context Menu In Selenium Ide?

Answer :

It permits the user to pick from a listing of assertions and verifications for the chosen region.

Question 53. How Do You Select The 2d Item In A List Box Or Drop Down?

Answer :

selenium.Pick out(selectLocator, optionLocator)
selectLocator – a locator for the choose element
optionLocator – a locator for the option detail

Question fifty four. What Are The Advantage And Features Of Selenium Ide?

Answer :

Intelligent field selection will use IDs, names, or XPath as wished
It is a document & playback device and the script format may be written in various languages such as C#, Java, PERL, Python, PHP, HTML
Auto whole for all commonplace Selenium commands
Debug and set breakpoints
Option to automatically assert the title of every page
Support for Selenium user-extensions.Js file
 

Question 55. What Are The Disadvantage Of Selenium Ide Tool?

Answer :

Selenium IDE tool can best be utilized in Mozilla Firefox browser.
It isn't playing a couple of home windows whilst we report it.
Question 56. How Do I Upload A File Using Selenium? I Need To Upload A Word File During Test Execution.

Answer :

If you are the use of Firefox then you can use “kind” command to kind in a File Input box of add record. But kind operation does now not paintings with IE and you will need to use “Robot” class in java to paintings make file upload work.

Question fifty seven. What Is The Difference Between Single And Double Slash In Xpath?

Answer :

/

start choice from the file node
lets in you to create 'absolute' path expressions
example “/html/body/p” matches all the paragraph factors
//

start selection matching everywhere within the docume
lets in you to create 'relative' direction expressions
instance. “//p” suits all of the paragraph elements
 

Question 58. What You Say About The Flexibility Of Selenium Test Suite?

Answer :

Selenium checking out suite is incredibly bendy. There are a couple of methods to add functionality to Selenium framework to customize check automation. As as compared to different test automation tools, it's far Selenium’s strongest feature. Selenium Remote Control help for a couple of programming and scripting languages allows the take a look at automation engineer to build any common sense they need into their automated testing and to apply a favored programming or scripting language of one’s desire.

Also, the Selenium testing suite is an open source challenge wherein code can be changed and enhancements can be submitted for contribution.

Question 59. What Is The Cost Of Selenium Test Suite?

Answer :

Selenium take a look at suite a fixed of open source software program device, it's far freed from fee.

Question 60. What Browsers Are Supported By Selenium Remote Control?

Answer :

The test automation professional can use Firefox, IE 7/8, Safari and Opera browsers to run assessments in Selenium Remote Control.

Question 61. What Programming Languages Can You Use In Selenium Rc?

Answer :

C#, Java, Perl, PHP, Python, Ruby

Question 62. What Are The Advantages And Disadvantages Of Using Selenium As Testing Tool?

Answer :

Advantages: Free, Simple and powerful DOM (report item version) stage checking out, may be used for non-stop integration; super match with Agile tasks.

Disadvantages: Tricky setup; dreary mistakes analysis; cannot test client server packages.

Question 63. What Is Difference Between Qtp And Selenium?

Answer :

Only web programs can be checking out using Selenium trying out suite. However, QTP may be used for testing client server applications. Selenium supports following net browsers: Internet Explorer, Firefox, Safari, Opera or Konqueror on Windows, Mac OS X and Linux. However, QTP is restrained to Internet Explorer on Windows.

QTP makes use of scripting language implemented on top of VB Script. However, Selenium check suite has the ability to use many languages like Java, .Net, Perl, PHP, Python, and Ruby.

Question sixty four. What Is Difference Between Borland Silk Test And Selenium?

Answer :

Selenium is absolutely free take a look at automation tool, whilst Silk Test is not. Only web packages may be testing the use of Selenium checking out suite. However, Silk Test may be used for testing customer server packages. Selenium supports following internet browsers: Internet Explorer, Firefox, Safari, Opera or Konqueror on Windows, Mac OS X and Linux. However, Silk Test is limited to Internet Explorer and Firefox.

Silk Test makes use of 4Test scripting language. However, Selenium take a look at suite has the flexibility to apply many languages like Java, .Net, Perl, PHP, Python, and Ruby.

Question 65. What Is The Difference Between An Assert And A Verify With Selenium Commands?

Answer :

Effectively an “assert” will fail the take a look at and abort the current test case, while a “verify” will fail the take a look at and preserve to run the take a look at case.

Question 66. If A Selenium Function Requires A Script Argument, What Would That Argument Look Like In General Terms?

Answer :

StoreEval(script, variable) and storeExpression(expression, variableName)

Question sixty seven. If A Selenium Function Requires A Pattern Argument, What Five Prefixes Might That Argument Have?

Answer :

glob, regexp, specific, regexpi

Question 68. What Is The Regular Expression Sequence That Loosely Translates To "some thing Or Nothing?"

Answer :

(.* i.E., dot famous person) This -person collection may be translated as “zero or extra occurrences of any character” or greater definitely, “some thing or not anything.

Question 69. What Is The Globbing Sequence That Loosely Translates To Anything Or Nothing?

Answer :

(*) which interprets to “in shape whatever,” i.E., nothing, a single man or woman, or many characters.

Question 70. What Does A Character Class For All Alphabetic Characters And Digits Look Like In Regular Expressions?

Answer :

[0-9] matches any digit
[A-Za-z0-9] matches any alphanumeric character
[A-Za-z] matches any alphabet individual

Question 71. What Does A Character Class For All Alphabetic Characters And Digits Look Like In Globbing?

Answer :

[0-9] matches any digit
[a-zA-Z0-9] matches any alphanumeric character
[a-zA-Z] fits any alphabet man or woman

Question seventy two. What Must One Set Within Side In Order To Run A Test From The Beginning To A Certain Point Within The Test?

Answer :

Set Toggle BreakPoint.

Question 73. What Does A Right-pointing Green Triangle At The Beginning Of A Command In Side Indicate?

Answer :

Play Entire Test Suite

Question 74. Which Wildcards Does Side Support?

Answer :

*, [ ]

Question seventy five. What Regular Expression Special Character(s) Means "any Character?"

Answer :

(.*)

Question 76. What Distinguishes Between An Absolute And Relative Url In Side?

Answer :

Absolute URL: Its is base url and this constitute area address. Relative URL: (Absolute URL + Page Path). Open command makes use of Base URL (Absolute URL) to navigate web page.

Question seventy seven. How Would One Access A Selenium Variable Named "rely" From Within A Javascript Snippet?

Answer :

$matter

Question seventy eight. What Selenese Command Can Be Used To Display The Value Of A Variable In The Log File, Which Can Be Very Valuable For Debugging?

Answer :

echo()

Question seventy nine. If One Wanted To Display The Value Of A Variable Named Answer In The Log File, What Would The First Argument To The Previous Command Look Like?

Answer :

echo()

Question 80. Which Selenium Command(s) Simulates Selecting A Link?

Answer :

click, clickandWait, ClickAt, ClickAtandWait, DoubleClick, DoubleClickandWait, doubleClickAt,
doubleClickAtandWait

Question eighty one. Which Two Commands Can Be Used To Check That An Alert With A Particular Message Popped Up?

Answer :

The following commands are available within Selenium for processing Alerts:

getAlert()
assertAlert()
assertAlertNotPresent()
assertAlertPresent()
storeAlert()
storeAlertPresent()
verifyAlert()
verifyAlertNotPresent()
verifyAlertPresent()
waitForAlert()
waitForAlertNotPresent()
waitForAlertPresent()
The AlertPresent() and AlertNotPresent() capabilities test for the existence or now not of an alert – regardless of it’s content. The Alert() functions allow the caller to specify a sample which ought to be matched. The getAlert() method also exists in Selenium RC, and returns the textual content from the preceding Alert displayed.

SELENIUM IDE Interview Questions and Answers

Question eighty two. What Do You Know About Selenium?

Answer :

Selenium is a collection of gear for net automation testing.

Selenium first got here to existence in 2004 whilst Jason Huggins changed into trying out an inner software at ThoughtWorks.

Selenium was a first rate tool, it wasn't without it’s drawbacks. Because of its Javascript based totally automation engine and the safety boundaries browsers observe to Javascript, different things became impossible to do.

Selenium Suite of initiatives consist of:

Selenium IDE
Selenium Core
Selenium 1 (called. Selenium RC or Remote Control)
Selenium 2 (referred to as. Selenium Webdriver)
Selenium-Grid

Question 83. What Are The Test Types Supported By Selenium?

Answer :

Selenium can be used for testing the web primarily based applications. The test kinds may be supported are:

useful,
regression,
load trying out
The automation tool can be carried out for post launch validation with continuous integration tools like:

Jenkins,
Hudson,
QuickBuild
CruiseCont
Question 84. What Are The Challenges With Selenium Ide?

Answer :

Selenium-IDE does not at once assist:

conditional statements
new release or looping
logging and reporting of check results
error managing, specifically unexpected errors
database checking out 6. Test case grouping
re-execution of failed checks
test case dependency
capture screenshots on check screw ups
Results Report generations
Question eighty five. Which Are The Browsers Supported By Selenium Ide?

Answer :

Selenium IDE supports best one browser Mozilla Firefox. The variations supported as of now are:

Mozilla Firefox 2.X
Mozilla Firefox 3.X

The versions now not supported as of now are:

in advance variations of Mozilla Firefox 2.X
Mozilla Firefox four.X

Question 86. How To Execute A Single Line Command From Selenium Ide?

Answer :

Single line command from Selenium IDE may be achieved in  ways

Right click on at the command in Selenium IDE and pick "Execute This Command"
Select the command in Selenium IDE and press "X" key on the keyboard
Question 87. How To Insert A Start Point In Selenium Ide?

Answer :

Start point Selenium IDE can be set in  methods

Right click at the command in Selenium IDE and select "Set / Clear Start Point"
Select the command in Selenium IDE and press "S" key at the keyboard
You can have simplest one start factor
If you have already set one start factor and you selected other command as start factor. Then the primary start factor will be removed and the new start point can be set
Question 88. How To Insert A Comment In Selenium Ide?

Answer :

Comments in Selenium IDE may be set in two approaches

Right click on at the command in Selenium IDE and choose "Insert New Comment"
If you need to remark an existing line. You want to observe the underneath referred to steps.
Select the source tab in IDE
Select the road which you want to remark
Assume that in case you want to comment a open command you need to put in writing like beneath mentioned code
<tr> 
<!-- 
<td>open&l/td>
<td>/node/304/edit&l/td>
<td></td>
-->
</tr>
Question 89. How To Insert A Breakpoint In Selenium Ide?

Answer :

Break point may be set in two methods in Selenium IDE

Right click at the command in Selenium IDE and select "Toggle BreakPoint"
Select the command in Selenium IDE and press "B" key on the keyboard
If you want to clean the ruin point over again Spress "B" key at the keyboard
You can set a couple of break points in Selenium IDE
Question ninety. How To Export The Tests From Selenium Ide To Selenium Rc In Different Languages?

Answer :

From selenium IDE the test cases can be exported into the languages

.Net,
Java,
Perl,
Python,
PHP,
Ruby
The underneath mentioned steps can explain a way to export the take a look at instances

Open the test case from Selenium IDE
Select File -> Export Test Case As
 

Question ninety one. 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 need to display a steady string.

The underneath referred to command may be used echo

ex: echo "The sample message" If you need to display the cost of a variable it is able to be written like under

echo $variable call

example: echo $var1

Note: Here var1 is the variable

 

Question ninety two. How Do You Set User Extensions In Selenium Ide?

Answer :

Open person-extensions.Js with an editor (Notepad, and so on.); it is determined in the seleniumcorescripts folder. If it does not exist, just create it.
If you want to, dedicate the user-extensions.Js document (like if you use subversion).
Open Selenium IDE and pick the Options menu after which Options... From that menu.
Make positive the path on your consumer-extensions.Js document is entered in the Selenium Core extensions subject (like seleniumcorescriptsuser-extensions.Js)
Press OK button on options
Restart the IDE to reflect your extensions.
Question ninety three. Define Selenium 2.X?

Answer :

It is the subsequent generation selenium. It is selenium server-web driver that replaces Selenium RC.

Question 94. What Is Needed To Be Good At Selenium?

Answer :

HTML basic expertise, net technology and net based checking out are obligatory. Other software development languages aren't wished. It is better to have know-how on JAVA script.

Question ninety five. From Where, You Can Download Selenium?

Answer :

Initially, go to reliable site of Selenium to get information approximately it. Different version can be downloaded from legit website online.

Question ninety six. My Application Uses Ajax Heavily How Do I Use Selenium Rc To Work With Ajax Operations?

Answer :

Ajax operations don’t reload a web page like normal shape submission but they make http requests in the back of the scene. You can not use waitForPageToLoad for such operations and instead must use conditional wait for alternate in country of application. This should as well mean waiting for presence of an element before continuing with take a look at operations. Consider following example in which type operation triggers Ajax operation that's accompanied by using conditional watch for presence of a text container

// kind operation brings element “q” on screen with out loading the page

selenium.Kind("elementLocator","testData");
// conditional anticipate element “q”
for(intsecond = zero;; 2nd++) 
if(2d >= 60) fail("timeout");
attempt if(selenium.IsElementPresent("q"))break;trap(Exception e)
Thread.Sleep(a thousand);

Question 97. Give The Steps For Running Automation Using Selenium?

Answer :

The simple steps are given under:

Record test steps through making use of selenium-IDE
Change the script in step with the necessities of testing. Add java scripts, validation factors, Time-out, etc.
Now, run check
Result may be viewed after studying check run
 

Question 98. Define Selenium Test Suite And How It Is Developed?

Answer :

The principal concept of software program checking out is to institution test instances as test suite. HTML documents containing links of test cases in selenium. To run test suite, selenium IDE plug-in known as Test runner is used.

Question 99. How To Run Test Case Traced By Employing Ide In Browsers?

Answer :

Selenium faraway manipulate is utilized in this situation.

Question a hundred. Give Ide's Main Parts And Components?

Answer :

Target
Command and
Value
Question a hundred and one. How Recorded Command Can Be Edited In Ide?

Answer :

First choose and select interested fee from drop-down.

Question 102. Give The Default Port Number Of Selenium Server?

Answer :

4444

Question 103. Give Major Components Of Selenium Testing Tools?

Answer :

Selenium RC
Selenium IDE
Selenium Grid
Question 104. In Selenium Ide, Give The Usage Of Context Menu?

Answer :

It lets in person to select from assertions and verifications list for selected specific area.

Question one zero five. Give Selenium Ide Tool Disadvantage?

Answer :

The selenium IDE device works handiest in Mozilla Firefox browser
Multiple windows aren't played when it's miles recorded.
Question 106. Did You Write Any User Extensions?

Answer :

User extensions are saved in a separate report that we will inform Selenium IDE or Selenium RC to use. Inside there the brand new function can be written in JavaScript.

Because Selenium core is advanced in JavaScript, growing an extension follows the standard rules for prototypal languages. To create an extension, we create a function inside the following design sample.

Selenium.Prototype.DoFunctionName = feature()
.


The "do" in front of the function name tells Selenium that this feature may be referred to as as a command for a step rather than an internal or private characteristic.




CFG