• +91 9723535972
  • info@interviewmaterial.com

Selenium Interview Questions and Answers

Selenium Interview Questions and Answers

Question - 61 : - Explain what can cause a Selenium IDE test to fail?

Answer - 61 : -

  • When a locator has changed and Selenium IDE cannot locate the element
  • When element Selenium IDE waiting to access did not appear on the web page and the operation timed out
  • When element Selenium IDE was trying to access was not created

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

Answer - 62 : -

  • Insert a break point from the location where you want to execute step by step
  • Run the test case
  • At the given break point execution will be paused
  • To continues with the next step click on the Blue button
  • To run commands at a time click on run button

Question - 63 : - From Selenium IDE how you can execute a single line?

Answer - 63 : -

From Selenium IDE single line command can be executed in two ways

  • Select “Execute this command” by right clicking on the command in Selenium IDE
  • Press “X” key on the keyboard after selecting the command in Selenium IDE

Question - 64 : - In which format does source view shows your script in Selenium IDE ?

Answer - 64 : -

In Selenium IDE source view shows your script in XML format

Question - 65 : - Explain how you can insert a start point in Selenium IDE?

Answer - 65 : -

In two ways selenium IDE can be set

  • Press “S” key on the keyboard and select the command in Selenium IDE
  • In Seleniun IDE right click on the command and the select  “Set / Clear Start Point”

Question - 66 : - What if you have written your own element locator and how would you test it?

Answer - 66 : -

To test the locator one can use “Find Button” of Selenium IDE, as you click on it, you would see on screen an element being highlighted provided your element locator is right or or else an error message will be displayed

Question - 67 : - What is regular expressions? How you can use regular expressions in Selenium ?

Answer - 67 : -

A regular expression is a special text string used for describing a search pattern. In Selenium IDE regular expression can be used with the keyword- regexp: as a prefix to the value and patterns needs to be included for the expected values.

Question - 68 : - What are core extension ?

Answer - 68 : -

If you want to “extend” the defualt functionality provided by Selenium Function Library , you can create a Core Extension. They are also called “User Extension”. You can even download ready-made Core Extension created by other Selenium enthusiats.

Question - 69 : - How will you handle working with multiple windows in Selenium ?

Answer - 69 : -

We can use the command selectWindow to switch between windows. This command uses the title of Windows to identify which window to switch to.

Question - 70 : - How will you verify the specific position of an web element

Answer - 70 : -

You can use verifyElementPositionLeft & verifyElementPositionTop. It does a pixel comparison of the position of the element from the Left and Top of page respectively


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners