YouTube Icon

Interview Questions.

Top 50 Selenium Ide Interview Questions - Jul 28, 2022

fluid

Top 50 Selenium Ide Interview Questions

Q1. Which Is The Command Used For Displaying The Values Of A Variable Into The Output Console Or Log?

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 cited command can be used

echo <constant string>

ex: echo “The pattern message”

If you want to display the fee of a variable it may be written like under

echo $<variable name>>

ex: echo $var1

Note: Here var1 is the variable

Q2. Which Are The Languages Supported By Selenium Rc?

The languages supported by Selenium RC:

.Net,

Java (Junt three, Junt four, TestNG, Groovy)

Perl,

Python,

PHP,

Ruby

Q3. Does Selenium Support Mobile Internet Testing?

Selenium supports Opera. And opera is used in maximum of the Smart phones. So whichever Smart smartphone supports opera, selenium can be used to check. So, you can use Selenium RC to run the assessments on mobiles.

Q4. What Are The Types Of Assertions There In Selenium?

Selenium Assertions can be used in 3 modes:

assert – When an “assert” fails, the take a look at may be aborted. If you're executing check suite, the next state case will begin

confirm – When a “confirm” fails, the check will retain execution, logging the failure.

WaitFor – “waitFor” commands anticipate some circumstance to turn out to be real (which may be beneficial for testing Ajax packages). They will succeed straight away if the condition is already proper. However, they'll fail and halt the test if the situation does not come to be proper in the contemporary timeout putting

Q5. How To Insert A Start Point In Selenium Ide?

Start factor Selenium IDE can be set in  ways:

Right click on at the command in Selenium IDE and choose “Set / Clear Start Point”

Select the command in Selenium IDE and press “S” key at the keyboard

You will have best one begin point

If you have already set one begin point and you selected other command as begin factor. Then the primary begin point will be eliminated and the brand new begin point can be set

Q6. How To Insert A Break Point In Selenium Ide?

Break factor may be set in  approaches in Selenium IDE

Right click at the command in Selenium IDE and pick out “Toggle Break Point”

 Select the command in Selenium IDE and press “B” key on the keyboard

If you need to clean the smash factor over again Spress “B” key on the keyboard

You can set multiple destroy points in Selenium IDE

Q7. What Are The Important Features Of Selenium Ide?

 It has Record and Playback features to create and execute Test instances

User/Tester can type Test steps the usage of detail locators and Selenese instructions without the usage of Recording feature.

Debugging characteristic for debugging test cases.

It has an alternative of asserting title of each web page robotically.

Option to run single test or a couple of assessments(Test suite).

It has a function of exporting testcase/suite into distinct codecs like C#, Java, Ruby, Python

Q8. Which Are The Browsers Supported By Selenium Ide?

Selenium IDE helps handiest one browser Mozilla Firefox.

The versions supported as of now are:

Mozilla Firefox 2.X

Mozilla Firefox three.X

The variations no longer supported as of now are:

in advance versions of Mozilla Firefox 2.X

Mozilla Firefox 4.X

Q9. What Do You Know About Selenium?

Selenium is a collection of tools for internet automation testing. Selenium first got here to existence in 2004 while Jason Huggins became testing an inner application at Thought Works. Selenium turned into a top notch device, it wasn’t with out its drawbacks. Because of its JavaScript based totally automation engine and the security obstacles browsers follow to JavaScript, different things became not possible to do.

Selenium Suite of projects consists of:

Selenium IDE

Selenium Core

Selenium 1 (referred to as Selenium RC or Remote Control)

Selenium 2 (referred to as Selenium Web motive force)

Selenium-Grid

Q10. How Do You Add Check Points Or Verification Points In Selenium?

Check points or verification factors are known as Assertions in Selenium. The keywords with below referred to prefix could be used for adding check factors or verification factors.

Affirm

assert

waitFor

Q11. What Are The Capabilities Of Selenium Webdriver Or Google Webdriver Or Selenium 2.0?

One must use WebDriver while requiring progressed guide for

Mult-browser testing consisting of progressed functionality for browsers no longer well-supported with the aid of Selenium-1.@

Handling multiple frames, multiple browser windows, popups, and signals.

Page navigation.

Drag-and-drop.

AJAX-based UI elements.

Q12. What Selenese Command And Argument Can Be Used To Transfer The Value Of A Javascript Variable Into A Side Variable?

Use "keep" command

Q13. What Are The Capabilities Of Selenium Ide?

Selenium IDE (Integrated Development Environment) works just like business equipment like QTP, Silk Test and Test Partner and many others.

The beneath mentioned points describes nicely about Selenium IDE:

Selenium IDE is a Firefox upload-on.

Selenium IDE can help recording the clicks, typing, and different movements to make a check instances.

Using Selenium IDE A Tester can play lower back the check cases within the Firefox browser

Selenium IDE helps exporting the check instances and suites to Selenium RC.

Debugging of the check cases with step-by way of-step can be done

Breakpoint insertion is possible

Page abstraction capability is supported via Selenium IDE

Selenium IDE can support an extensibility functionality allowing using accessories or consumer extensions that increase the functionality of Selenium IDE

Q14. Can We Edit Recorded Selenium Ide Test Cases?

Yes, we will edit recorded Test instances, Add Steps, Delete steps, edit steps and Insert feedback.

Q15. How To Insert A Comment In Selenium Ide?

Comments in Selenium IDE may be set in  methods:

Right click on on the command in Selenium IDE and choose “Inert New Comment”

If you want to comment an present line. You want to follow the underneath cited steps.

Select the supply tab in IDE

Select the line that you want to comment

Assume that if you want to comment a open command you want to write like beneath stated code

<tr>

<!–

<td>open&l/td>

<td>/node/304/edit&l/td>

<td></td>

–>

</tr>

Q16. What Are The Important Selenium Ide Commands Or Selenese Commands?

Important Commands are:

Open, click on, kind, pick out, assertText, assertTitle, assertTextPresent, verifyText, verifyTextPresent, veriftTitle, waitForText, waitForTextPresent, waitForTitle, keep, storeText, storeTitle, test, uncheck, pause, mouseover, and so on...

Q17. What Is The Difference Between "assert" And "confirm" Commands?

When an "assert" command fails then test execution may be aborted.

When a "confirm" command fails then take a look at will keep execution and logging the failure.

Q18. How Do You Set User Extensions In Selenium Ide?

Open consumer-extensions.Js with an editor (Notepad, etc.); it’s discovered within the seleniumcorescripts folder. If it doesn’t exist, simply create it.

If you need to, devote the person-extensions.Js document (like in case you use subversion).

Open Selenium IDE and pick the Options menu after which Options… from that menu.

Make sure the course for your person-extensions.Js file is entered inside the Selenium Core extensions field (like seleniumcorescriptsuser-extensions.Js)

Press OK button on alternatives

Restart the IDE to reflect your extensions.

Note: After reopen, Selenium IDE may additionally show compilations mistakes if the consumer-extensions.Js report has any syntax mistakes.

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

Single line command from Selenium IDE may be accomplished in two approaches:

Right click on the command in Selenium IDE and select “Execute This Command”

Select the command in Selenium IDE and press “X” key at the keyboard

Q20. How Can One Get Side To Always Record An Absolute Url For The Open Command's Argument?

In the Selenium IDE alternatives, take a look at "Record Absolute URL" choice.

Q21. What Are Selenium Tests Normally Named (as Displayed At The Top Of Each Test When Viewed From Within A Browser)?

In the browser, the take a look at name in Selenium IDE could be displayed. 

Q22. How To Use Regular Expressions In Selenium?

Regular expressions in Selenium IDE may be used with the key-word – regexp: as a prefix to the value and styles wishes to be included for the anticipated values.

For example if you want to apply the regular expression for a command

Command: verifyText

Target: //font/font/b/font[1]

Value: Flight Confirmation # 2011-05-02451

in the above example Flight Confirmation is constantly converting every time you run the check case. So this may be written with a regular expression as noted under

Command: verifyText

Target: //font/font/b/font[1]

Value: regexp:Flight Confirmation # [0-9]four-[0-9]2-[0-9]5,10

Q23. What Is Selenium Grid?

Selenium Grid is part of Selenium suite of tasks. Selenium Grid transparently distribute your exams on more than one machines so you can run your tests in parallel, reducing down the time required for walking in-browser test suites. This will dramatically hurries up in-browser internet testing, giving you quick and accurate feedback you can depend upon to improve your internet software.

Q24. What Are The Challenges With Selenium Ide?

Selenium-IDE does not without delay guide:

Condition statements

Iteration or looping

Logging and reporting of take a look at consequences

Error coping with, in particular sudden errors

Database checking out

Test case grouping

Re-execution of failed tests

Test case dependency

Capture screenshots on test disasters

Results Report generations

Q25. What Is The Architecture Of Selenium Rc?

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 check the AUT by way of passing it your check script’s Selenium commands.

The diagram indicates 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 use of its JavaScript interpreter, executes the Selenium command, which efficiently, runs the test you specified in your Selenese take a look at script.

Q26. Which Are The Operating Systems Supported By Selenium?

Selenium IDE

Works in Firefox 2+ Start browser, run assessments Run exams

Operating Systems Supported:

Windows,

OS X

Linux

Solaris

Others whichever helps Firefox 2+

Selenium Remote Control

Used for starting browser and run exams

Operating Systems Supported:

Windows,

OS X

Linux

Solaris

Others

Selenium Core

Used for strolling assessments

Operating Systems Supported:

Windows,

OS X

Linux

Solaris

Others

Q27. 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?

$variableName

Q28. How To Export Selenium Ide Test Suite To Selenium Rc Suites?

From selenium IDE the check suites may be exported into the languages as noted underneath

.Net

Java

Perl

Python

PHP

Ruby

The under cited steps can explain a way to export the test suites:

Open the take a look at case from Selenium IDE

Select File -> Export Test Suite As

Q29. Which Are The Commands Used For Capturing The Bitmaps?

CaptureEntirePageScreenshot : Saves the complete contents of the cutting-edge window canvas to a PNG document. Contrast this with the captureScreenshot command, which captures the contents of the OS viewport (i.E. Whatever is currently being displayed at the reveal), and is implemented within the RC simplest. Currently this most effective works in Firefox when jogging in chrome mode, and in IE non-HTA the use of the EXPERIMENTAL “Snapsie” application. The Firefox implementation is normally borrowed from the Screengrab! Firefox extension. 

CaptureEntirePageScreenshotAndWait : Saves the whole contents of the modern window canvas to a PNG record. Contrast this with the captureScreenshot command, which captures the contents of the OS viewport (i.E. Anything is presently being displayed at the monitor), and is carried out in the RC only. Currently this most effective works in Firefox whilst strolling in chrome mode, and in IE non-HTA using the EXPERIMENTAL “Snapsie” software. The Firefox implementation is commonly borrowed from the Screengrab! Firefox extension.

Note: This command runs with only mozilla firefox whilst you run the checks from RC. Other browsers it's going to now not assist

Q30. If The Test Case Frame Contains Several Test Cases, How Can One Execute Just The Selected One Of Those Test Cases?

Users can use "Play cutting-edge test case" function of Selenium IDE

Q31. Which Browsers Can Selenium Ide Be Run In?

Selenium IDE is firefox ad on, so it runs on Firefox browser.

Q32. What Is Selenese?

Selenium set of instructions which can be used for going for walks the test are called as Selenese.

There are 3 forms of Selenese, the ones are:

Actions – used for acting the operations and interactions with the target elements

Assertions – used as test points

Accessors – used for storing the values in a variable

Q33. What Are The Regular Expression Patterns Available In Selenium?

Selenium regular expression styles provide the same big range of special characters that exist in JavaScript.

Below are a subset of those unique characters:

.: any single character

[ ]person magnificence: any unmarried person that appears within the brackets

*quantifier: 0 or more of the preceding man or woman (or group)

+quantifier: 1 or more of the previous individual (or group)

?Quantifier: zero or 1 of the previous character (or institution)

1,fivequantifier: 1 via 5 of the preceding character (or group)

character/institution on the left or the person/group at the right

( )grouping: frequently used with alternation and/or quantifier

Q34. When To Use Assert, Verify And Waitfor In Selenium?

Assert – If the predicted value is obligatory to hold with the following set of steps we are able to use Assert. As Assert aborts the test, if the anticipated fee doesn’t fit. It is right to apply for any obligatory exams.

Confirm – If the predicted fee is non-compulsory to hold with the following set of steps we are able to use Verify. As Verify maintains executing with the subsequent set of steps, if the predicted value doesn’t suit. It is ideal to apply for any non-compulsory tests.

WaitFor – If your take a look at desires to attend, if the expected value is not matching we use waitFor. We commonly use waitFor for AJAX kind of controls loading inside a page

Q35. How To Capture Bitmaps In Selenium?

Bitmaps are captured using the Selenium set of commands. There are  modes of taking pictures the bitmaps

Capture the bitmap for the entire web page – it captures the browser essential web page location of AUT

Capture the bitmap for the screen photographs – it captures the whole display shot just like the print scree that you give out of your keyboard

Selenium doesn’t support bitmap taking pictures for an detail on AUT.

Q36. How To Export The Tests From Selenium Ide To Selenium Rc In Different Languages?

From selenium IDE the check cases may be exported into the languages

.Net

Java

Perl

Python

PHP

Ruby

The below referred to steps can provide an explanation for a way to export the check cases:

Open the check case from Selenium IDE

Select File -> Export Test Case As

Q37. What Is Assertion In Selenium?

Assertion is nothing but a check or verification point.

Assertion verifies the state of the software conforms to what's expected.

Examples encompass “ensure the web page identify is X” and “verify that this checkbox is checked.

Q38. What Is Selenium Webdriver Or Google Webdriver Or Selenium 2.0?

WebDriver makes use of a extraordinary underlying framework from Selenium’s javascript Selenium-Core. It also affords an opportunity API with functionality not supported in Selenium-RC. WebDriver does now not depend on a javascript middle embedded inside the browser, consequently it could avoid some long-strolling Selenium limitations.

WebDriver’s purpose is to offer an API that establishes:

A properly-designed fashionable programming interface for internet-app checking out.

Improved consistency among browsers.

Additional functionality addressing checking out troubles not properly-supported in Selenium 1.@

The Selenium developers try to constantly improve Selenium. Integrating WebDriver is some other step in that procedure. The builders of Selenium and of WebDriver felt they might make huge gains for the Open Source check automation community be combining forces and merging their ideas and technologies. Integrating WebDriver into Selenium is the current result of these efforts.

Q39. How To Debug The Tests In Selenium Ide?

To debug or execute the test cases line by means of line.

Follow the underneath noted steps:

Insert a ruin From the vicinity wherein you need to execute grade by grade

Run the check case

Execution might be paused on the given ruin factor

Click at the step (Blue) button to maintain with the following assertion

Click on Run button, to maintain executing all of the commands at a time

Q40. When To Use Accessors In Selenium?

Accessors are generally used for storing the fee in a variable.

The variable can be used for following reasons:

To get the value from an detail and comparing with some dynamic value

To take a logical choice to execute the check steps

ex: if the value of the variable authentic execute step1 and step2 else step3 and step4

 To execute a few statements in a loop based totally at the value again by way of the detail

Q41. Why Selenium Rc Is Used?

Selenium-IDE does now not at once support:

circumstance statements

iteration

logging and reporting of test consequences

mistakes handling, particularly surprising errors

database checking out

test case grouping

re-execution of failed exams

take a look at case dependency

seize screenshots on test failures

The cause at the back of why Selenium-IDE does not aid the above mentioned necessities is IDE supports best HTML language. Using HTML language we can't achieve the above cited necessities. Because HTML does no longer help conditional, looping and external supply connectives.

To conquer the above mentioned troubles Selenium RC is used.

Since Selenium RC supports the languages .Net, Java, Perl, Python, PHP, and Ruby. In those languages we are able to write the programme to gain the IDE issues

Q42. What Is The Difference Between Captureentirepagescreenshot And Capturescreenshot?

CaptureEntirePageScreenshot :

This captures the AUT net web page simplest

This helps most effective mozilla firefox

Accepts  arguments. One is the report name to be saved and other argument is lower back floor shade

CaptureScreenShot :

This captures the System screen shot

This helps all the browsers whilst you run from Selenium RC

Accepts one argument. That is the record call to be stored.

Q43. What Regular Expression Special Character(s) Means "any Character?"

* symbol means any character

Q44. What Are The Test Types Supported By Selenium?

Selenium will be used for testing the web based programs.

The check sorts can be supported are:

Functional,

Regression,

Load trying out

The automation tool might be applied for publish release validation with non-stop integration gear like:

Jenkins,

Hudson,

Quick Build

CruiseCont

Q45. What Are The Types Of Text Patterns Available In Selenium?

There are three forms of patterns to be had in Selenium:

globbing

everyday expressions

exact

Q46. What Are The Limitations Of Selenium Ide?

The obstacles of Selenium IDE are:

Selenium IDE uses simplest HTML language

Conditional or branching statements execution like the usage of of if, pick statements isn't always viable

Looping statements using isn't always viable directly in Selenium HTML language in ide

Reading from external documents like .Txt, .Xls isn't possible

Reading from the external databases isn't viable with ide

Exceptional dealing with isn't there

A neat formatted Reporting isn't possible with ide

To do away with the above issues we use Selenium RC

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

That triangle suggests that test paused at that step, or will begin from that step.

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

Absolute URL approach the URL starts with http or https. Selenium IDE addes the argument in the open announcement and create an absolute URL

Relative URL method that in BaseURL, we will put the primary area, and in the open statment, user must positioned relative URL; 

For instance, if fundamental url is http://mysite.Com, inside the relative url, we will positioned http://beta.Mysite.Com in the open declaration.

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

We need to set a spoil point within the check, so the take a look at will pause on the break factor.

Q50. Which Are The Browsers Supported By Selenium Rc?

Supported browsers for Selenium RC encompass:

*firefox

*mock

*firefoxproxy

*pifirefox

*chrome

*iexploreproxy

*iexplore

*firefox3

*safariproxy

*googlechrome

*konqueror

*firefox2

*safari

*piiexplore

*firefoxchrome

*opera

*iehta

*custom




CFG