Greens Technologys phone
Greens Technologys Whatsapp
Blog

Selenium Interview Questions


(5.0)  |   85,984 Ratings

33) What are Soft Assert and Hard Assert in Selenium?

Soft Assert: Soft Assert collects errors during @Test Soft Assert does not throw an exception when an assert fails and would continue with the next step after the assert statement.
Hard Assert: Hard Assert throws an AssertExceptionimmediately when an assert statement fails and test suite continues with next @Test

34) What are the verification points available in Selenium?

In Selenium IDE, we use Selenese Verify and Assert Commands as Verification points In Selenium WebDriver, there is no built-in features for verification points. It totally depends on our coding style. some of the Verification points are

  • -To check for page title
  • -To check for certain text
  • -To check for certain element (text box, button, drop down, etc.)>

35) Is the FirefoxDriver a Class or an Interface?

FirefoxDriver is a Java class, and it implements the WebDriver interface

36) What is the super interface of WebDriver?

SearchContext

37) How would you test your own element locator?

“Find Button” of Selenium IDE is used to test the locator. Clicking on this button, you will see on screen if your element locator is right or wrong. Also, you can use “FirePath” plugin in FireFox

38) When AutoIT is used?

AutoIT is used to handle window GUI and non-HTML popups in the application.

39) What API is required for Database Testing in Selenium WebDriver?

JDBC (Java Database Connectivity) API is required for Database Testing in Selenium WebDriver.

40) What Java API is required for generating pdf reports?

Java API IText is required for generating pdf reports.

41) Explain why to choose Python over Java in Selenium.

Here are some points that favor Python over Java to use with Selenium:
  • Python is simpler and more compact compared to Java
  • Java uses traditional braces to start and ends blocks, whilePython uses indentation
  • Java employs static typing, whilePython is dynamically typed
  • Java programs tend to run slower compared toPython programs

42) How can you handle network latency using Selenium?

You can use driver.manage().timeouts().pageLoadTimeout(); for network latency

43) How can you run Selenium Server other than the default port 4444?


Selenium server could be run on java-jar selenium-server.jar-port other than its default port.

44) Explain how you can capture server side log Selenium Server?

To capture server side log in Selenium Server, you can use command: java –jar .jar –log selenium.log

45) What are the two modes of views in Selenium IDE?

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

46) What is Object Repository?

Object repository is an essential entity in any UI automation which allows a tester to store all object that will be used in the scripts in one or more centralized locations rather than scattered all over the test scripts.

47) What are the different exceptions you face in Selenium Webdriver?

  • WebDriverException
  • NoAlertPresentException
  • NoSuchWindowException
  • NoSuchElementException
  • TimeoutException

48) Selenium is a single testing tool, then why it is taken as a suite by professionals?

The tools available to work with selenium are specially designed to cater different testing requirements so it is taken as atesting package not only a single tool.

49) How to count a number of elements on a page?

To count a number of elements on a page, you first need to locate them and count the final size for the page.

50) Can you name the popular selenium tool used by large industries worldwide?

Selenium Web Driver is apopular testing tool used by big Companies today.

51) Explain about the waiting methods in selenium Web Driver?

The two popular waiting methods in selenium Web Driver are – implicit wait an explicit wait. Implicit waiting method is used when Web Driver is not able to find elements in the document, then it waits for thecertain time period for theelement to appear in the document. At the same time, the explicit waiting method is an advanced technique that allows developers to write custom codes whenever required.

52) Name the different type of mobile testing drivers supported in WebDriver?

These are iPhone, Android, and Opera Mobile Drivers etc.

53) Name the different type of annotations used in Selenium WebDriver?

The popular annotations used in Selenium WebDriver include After, Before, Test, Ignore, AfterClass, BeforeClass, and RunWith etc.

54) How can you modify test cases in Selenium IDE?

Obviously, test cases can be modified in Selenium IDE by table views or by looking up the source code.

55) How to add meta-data in JUnit selenium testing tool?

JUnit Annotations is a special process to add syntactic meta-data to Java code. Some of the popular examples of JUnit annotations include variables, parameters, classes, or methods etc

56) Selenium is a single testing tool, then why it is taken as a suite by professionals?

The tools available to work with selenium are specially designed to cater different testing requirements so it is taken as atesting package not only a single tool.

57) Name the programming languages that are used by Web Driver to write the test cases?

These are PHP, Python, Ruby, C#, PERL, Java etc.

58) Which selenium technology is useful for distributed data processing?

Selenium Grid is a popular technology used for distributed data process that distributes tests on multiple machines in parallel. In other, tests can be executed in parallel on different operating systems, different web browsers at the same time by using single script only. Distributed data processing in Selenium not only reduces overall execution time and feedback is also quick.

59) Why Selenium tools failsometimes?

Selenium testing is slow as compared to other automated testing tools. Another major problem complex ID generation where auto-generated ID can result into test case failure during playback.

60)Name the four parameters that have to be passed in Selenium?

These parameters are aPort number, Host, URL, and Browser etc.

61)How can I read test data from excels?

Test data can efficiently be read from excel using JXL or POI API.

Do not wait anymore! Call Us @ 89399 15577 to know more about Selenium training in chennai. You can also contact us by submitting the Quick Enquiry form on the right side of this page to know more about the Selenium Course in Chennai.

For Chennai Branches
Adyar - +91 89399 15577
OMR - +91 89399 25577
Velachery - +91 89399 15577
Tambaram - +91 89399 25577

QuickEnquiry



Our Reviews 5 Star Rating: Recommended - Best IT Training in Chennai

5  out of 5  based on 12263 ratings.

Google          5 Star Rating: Recommended - Best IT Training in Chennai

Facebook      5 Star Rating: Recommended - Best IT Training in Chennai

UrbanPro       5 Star Rating: Recommended - Best IT Training in Chennai

Sulekha         5 Star Rating: Recommended - Best IT Training in Chennai

Yet5              5 Star Rating: Recommended - Best IT Training in Chennai

Justdial          5 Star Rating: Recommended - Best IT Training in Chennai



Top Courses



RelatedTrainings