• +91 9723535972
  • info@interviewmaterial.com

Selenium Interview Questions and Answers

Selenium Interview Questions and Answers

Question - 51 : - From your test script how you can create html test report?

Answer - 51 : -

To create html test report there are three ways

  • TestNG:  Using inbuilt default.html to get the HTML report. Also XLST reports from ANT, Selenium, TestNG combination
  • JUnit: With the help of ANT
  • Using our own customized reports using XSL jar for converting XML content to HTML

Question - 52 : - Explain how you can insert a break point in Selenium IDE ?

Answer - 52 : -

In Selenium IDE to insert a break point

  • Select “Toggle break point” by right click on the command in Selenium IDE
  • Press “B” on the keyboard and select the command in Selenium IDE
  • Multiple break points can be set in Selenium IDE

Question - 53 : - Explain in Selenium IDE how can you debug the tests?

Answer - 53 : -

  • Insert a break point from the location from where you want to execute test step by step
  • Run the test case
  • At the given break point execution will be paused
  • To continue with the next statement click on the blue button
  • Click on the “Run” button to continue executing all the commands at a time

Question - 54 : - What is Selenese and what are the types of Selenese ?

Answer - 54 : -

Selenese is a selenium set of command which are used for running the test

There are three types of Selenese

  • Actions: It is used for performing the operations and interactions with the target elements
  • Assertions: It is used as a check points
  • Accessors: It is used for storing the values in a variable

Question - 55 : - Explain what are the limitations of Selenium IDE?

Answer - 55 : -

The limitations of Selenium IDE

  • Exceptional handling is not present
  • Selenium IDE uses only HTML languages
  • External databases reading is not possible with IDE
  • Reading from the external files like .txt, .xls is not possible
  • Conditional or branching statements execution like if,else,  select statements is not possible

Question - 56 : - What are the two modes of views in Selenium IDE ?

Answer - 56 : -

Either Selenium IDE can be opened as a pop up window or in side bar

Question - 57 : - In selenium IDE what are the element locators that can be used to locate elements on web page?

Answer - 57 : -

In selenium there are mainly 4 locators that are used

  • X-path locators
  • Css locators
  • Html id
  • Html name

Question - 58 : - In Selenium IDE how you can generate random numbers and dates for test data ?

Answer - 58 : -

In Selenium IDE you can generate random numbers by using Java Script

type

css=input#s

javascript{Math.random()}

And for

type

css=input#s

javascript{new Date()}

Question - 59 : - How you can convert any Selenium IDE tests from Selenese to another language?

Answer - 59 : -

You can use the format option of Selenium IDE to convert tests into another programming language

Question - 60 : - Using Selenium IDE is it possible to get data from a particular html table cell ?

Answer - 60 : -

You can use the “storeTable” command

Example store text from cell 0,2 from an html table

storeTable

Css=#table 0.2

textFromCell


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners