• +91 9723535972
  • info@interviewmaterial.com

Selenium Interview Questions and Answers

Selenium Interview Questions and Answers

Question - 81 : - Explain how you can capture server side log Selenium Server?

Answer - 81 : -

To capture server side log in Selenium Server, you can use command

java –jar .jar –log selenium.log

Question - 82 : - Other than the default port 4444 how you can run Selenium Server?

Answer - 82 : -

You can run Selenium server on java-jar selenium-server.jar-port other than its default port

Question - 83 : - How Selenium grid hub keeps in touch with RC slave machine?

Answer - 83 : -

At predefined time selenium grid hub keeps polling all RC slaves to make sure it is available for testing.  The deciding parameter is called “remoteControlPollingIntervalSeconds” and is defined in “grid_configuration.yml”file

Question - 84 : - Using Selenium how can you handle network latency ?

Answer - 84 : -

To handle network latency you can use driver.manage.pageloadingtime for network latency

Question - 85 : - To enter values onto text boxes what is the command that can be used?

Answer - 85 : -

To enter values onto text boxes we can use command sendkeys()

Question - 86 : - How do you identify an object using selenium?

Answer - 86 : -

To identify an object using Selenium you can use

isElementPresent(String locator)

isElementPresent takes a locator as the argument and if found returns a Boolean

Question - 87 : - In Selenium what are Breakpoints and Startpoints?

Answer - 87 : -

  • Breakpoints: When you implement a breakpoint in your code, the execution will stop right there. This helps you to verify that your code is working as expected.
  • Startpoints : Startpoint indicates the point from where the execution should begin. Startpoint can be used when you want to run the testscript from the middle of the code or a breakpoint.

Question - 88 : - Mention why to choose Python over Java in Selenium?

Answer - 88 : -

Few points that favor Python over Java to use with Selenium is,

  • Java programs tend to run slower compared to Python programs.
  • Java uses traditional braces to start and ends blocks, while Python uses indentation.
  • Java employs static typing, while Python is dynamically typed.
  • Python is simpler and more compact compared to Java.

Question - 89 : - Mention what are the challenges in Handling Ajax Call in Selenium Webdriver?

Answer - 89 : -

The challenges faced in Handling Ajax Call in Selenium Webdriver are

  • Using “pause” command for handling Ajax call is not completely reliable. Long pause time makes the test unacceptably slow and increases the testing time. Instead, “waitforcondition” will be more helpful in testing Ajax applications.
  • It is difficult to assess the risk associated with particular Ajax applications
  • Given full freedom to developers to modify Ajax application makes the testing process challenging
  • Creating automated test request may be difficult for testing tools as such AJAX application often use different encoding or serialization technique to submit POST data.

Question - 90 : - Mention what is IntelliJ?

Answer - 90 : -

Intellij is an IDE that helps you to write better and faster code for Selenium. Intellij can be used in the option to Java bean and Eclipse.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners