Real Time Automation Interview Questions - Part 7

In continuation with the latest series of Real Time Automation Interview Questions, we present you the part 7 of the course structure. Click on below links for previous parts.


Real Time Automation Interview Questions - Part 7

  • How many types of Webdriver APIs are available in Selenium?
    • Chrome  
    • Gecko  
    • Chromium  
    • Edge 
    • Html  
    • android
  • What are the different Selenium Webdriver Exceptions you have faced?
    • Webdriver exc, noalertpresent exc, nosuchwindow exc, nosuchelement exc, timeout exc
  • How do you scroll down a page using Javascript in Selenium?
  • How do you scroll down to a particular element?
    • //This will scroll the page till the element is found js.executeScript("arguments[0].scrollIntoView();", Element);
  • Which all files can be used as a data source for different frameworks?
    • .csv, .xml, .text etc
  • What are listeners in selenium?
    • Listener is defined as interface that modifies the default TestNG's behavior. 
    • As the name suggests Listeners "listen" to the event defined in the selenium script and behave accordingly. 
    • It is used in selenium by implementing Listeners Interface. It allows customizing TestNG reports or logs. 
    • There are two types of Selenium Listeners:  
      • WebDriver Listeners  
      • TestNG Listeners 
    • Link: https://www.guru99.com/listeners-selenium-webdriver.html
  • How do you take screenshots in selenium Webdriver? (Most important)
  • What do you mean by Webdriver?
    • Webdriver is an interface which is used to automate api of browser for testing.
  • How do you handle dropdown values?
    • From select class, via visible text, value, index.
  • How do you handle hidden elements in selenium webdriver?
    • JavascriptExecuter js = (JavascriptExecutor)driver; js.excuteScript(“document.getElementById(“<>”).value=’Hiddentext);

Comments

Popular posts from this blog

Azure Tutorials Series - Azure Networking

Coforge Interview Questions | Automation Testing profile

Testing in CI/CD