Top 30 Selenium Interview Questions and Answers for SDET

Поділитися
Вставка
  • Опубліковано 19 лип 2024
  • Here you will learn
    Top 30 Selenium Interview Questions and Answers for SDET.
    1. What are the different types of locators in Selenium ?
    2. Explain the difference between single and double slash in X-path?
    3. What is the difference between verify and assert commands?
    4. How will you launch the browser using WebDriver?
    5. What is the major difference between driver.close() and driver.quit()?
    6. What are the types of waits supported by WebDriver?
    7. Mention the types of navigation commands ?
    8. What is the difference between setSpeed() and sleep() methods ?
    9. Explain what is the difference between find element () and find elements () ?
    10. What are the different exceptions you had in Selenium web driver?
    11. How to handle multiple windows in Selenium ?
    12. What is the difference between getWindowhandle() and getwindowhandles() ?
    13. How to handle frames in Selenium ?
    14. How to handle Alerts in Selenium WebDriver ?
    15. How to handle a dropdown in Selenium WebDriver? How to select a value from dropdown?
    16. How to handle keyboard and mouse actions using Selenium ?
    17. How to take screenshots in WebDriver?
    18. How to upload a file in Selenium WebDriver?
    19. What is Selenese and what are the types of Selenese ?
    20. what are the challenges in Handling Ajax Call in Selenium Webdriver?
    21. How can we handle windows based pop up?
    22. What is the difference between type keys and type commands ?
    23. What are the technical challenges in Selenium ?
    24. Explain how you can handle colors in web driver?
    25. Explain how you can login into any site if it’s showing any authentication popup for password and username?
    26. How can you Handle Cookies in Selenium?
    27. What is same origin policy? How you can avoid same origin policy?
    28. What is Object Repository ?
    29. What is POM (Page Object Model)?
    30. What is selenium grid and how it works ?
    Additional Info
    Link for SDET/QA Interview Full Play List ► bit.ly/3frBpQZ
    Link for API Testing Full Play List ► bit.ly/2BY0vHu
    Link for Cypress Tutorial Full Play List ► bit.ly/3iMdi2a
    Link for Web-services Full Play List ► bit.ly/3bfK0Ef
    Link for Protractor Testing Full Play List ► bit.ly/2ztlEIK
    Link for Java Programs for Software Testers Full Play List ► bit.ly/2ZGeBFC
    Link for Java Tutorial Full Play List ► bit.ly/2Z3tP8L
    Link for Selenium Tutorial Full Play List ► bit.ly/3vFR9X5
    Link for TestNG Full Play List ► bit.ly/3jGJ3YT
    Please subscribe to our channel ► bit.ly/2UIvFcm
    and press the bell icon to get updates on latest tutorial.
    #softwaretestingandautomation #subhasishmishra #softwaretesting #selenium #apitesting #java #restassuredapiautomation #testng #sql #unix #automationtesting #softwaretestinginterviewquestionandanswers #testautomation

КОМЕНТАРІ • 24

  • @gangadharrajanala1564
    @gangadharrajanala1564 2 роки тому +2

    Thanks for the most Informational video. You have covered each area and we can explore more knowledge on them.
    GREAT JOB💯💯👍👍👏👏

  • @guptajanmejai
    @guptajanmejai 3 роки тому +2

    Thanks for sharing this video , very helpful for the interview keep doing the good work and add more important interview questions as per the market.

  • @vinoddhale2428
    @vinoddhale2428 2 роки тому +1

    Thanks sir for sharing this video.... it's really helpful

  • @gaya353
    @gaya353 3 роки тому +2

    Very helpful Subhasish... Thanks

  • @ssvjewellery2283
    @ssvjewellery2283 11 місяців тому +1

    Very useful thankew

  • @meryembor5099
    @meryembor5099 11 місяців тому +1

    Thank you

  • @Labordorrocks
    @Labordorrocks 3 місяці тому +1

    Thanks much

  • @bhabanisankarparida6459
    @bhabanisankarparida6459 Рік тому +5

    Everything is good but the colour you used that is painful for eyes. So need to use white background that will better for everyone.

  • @sonaliganguly2543
    @sonaliganguly2543 3 роки тому +1

    Thank you Subhasish for this very useful video ,but the piece of code for handling multiple windows in selenium(Qs. 11) is not very clear. Can you please paste the code in comment section .It will really be helpful for me.

    • @SoftwareTestingAndAutomation
      @SoftwareTestingAndAutomation  3 роки тому +2

      Please find below piece of code.
      public class MultipleWindowsClass {
      @Test
      public void testMultipleWindows() throws InterruptedException{
      System.setProperty("webdriver.gecko.driver", System.getProperty("user.dir")+"\\src\\test\\java\\drivers\\geckodriver.exe");
      // To open browser
      WebDriver driver=new FirefoxDriver();
      // To maximize browser
      driver.manage().window().maximize();
      // To open Naukri website with multiple windows
      driver.get("www.naukri.com/");
      // It will return the parent window name as a String
      String mainWindow=driver.getWindowHandle();
      // It returns no. of windows opened by WebDriver and will return Set of Strings
      Set set =driver.getWindowHandles();
      // Using Iterator to iterate with in windows
      Iterator itr= set.iterator();
      while(itr.hasNext()){
      String childWindow=itr.next();
      // Compare whether the main windows is not equal to child window. If not equal, we will close.
      if(!mainWindow.equals(childWindow)){
      driver.switchTo().window(childWindow);
      System.out.println(driver.switchTo().window(childWindow).getTitle());
      driver.close();
      }
      }
      // This is to switch to the main window
      driver.switchTo().window(mainWindow);
      }
      }

    • @sonaliganguly2543
      @sonaliganguly2543 3 роки тому

      @@SoftwareTestingAndAutomation Thank you so much

  • @ankitkumarbehera4163
    @ankitkumarbehera4163 3 роки тому

    In every video us screen colour in changing . that's getting problem.