Pages

Thursday, 25 June 2020

Top 30 Interview Questions on Automation Testing - Selenium for SDET/Automation QA?


Check Selenium Interview questions from 1 to 10 below:


Check Selenium-SDET-UIAutomation Questions set 11 to 20:
Qus Set - 11 to 20

Check Selenium-SDET-UIAutomation Questions set 21 to 30:
 
Check Selenium-SDET-UIAutomation Questions set 31 to 40:

 Question Set 31-40  

Check Selenium-SDET-UIAutomation Questions set 41-50:

Q&A Set 41-50

Check Selenium-SDET-UIAutomation Questions set 51-70:

Q&A Set 51-70


21. What are the element validation methods in selenium?

•    isEnabled() — determines if an element is enabled or not, returns a boolean.
•    isSelected() — determines if an element is selected or not, returns a boolean.
•    isDisplayed() — determines if an element is displayed or not, returns a boolean.

22. How to handle proxy in selenium for chrome?

ChromeOptions options = new ChromeOptions();// Create object Proxy class - Approach 1
Proxy proxy = new Proxy();
proxy.setHttpProxy("username:password.myhttpproxy:3337");
options.setCapability("proxy", proxy);
ChromeDriver driver = new ChromeDriver(options);

23. How to set the size of the window in selenium?

driver.manage().window().setSize(new Dimension(1024, 768));

24. How to fetch the size of window in Selenium?

Dimension size = driver.manage().window().getSize();
int width = size.getWidth();
int height = size.getHeight();

25. How to maximize the window in selenium?


driver.manage().window().maximize();

What are the new features in Selenium 4? VERY IMP 

Click Here For Detail Answer


26. How to drag and drop from source to destination?

      WebElement source = driver.findElement(By.xpath("//div[@id='draggable']"));
      WebElement destination = driver.findElement(By.xpath("//div[@id='droppable']"));
      Actions builder = new Actions(driver);
      builder.dragAndDrop(source,destination);
     
27. How to perform keyboard actions in selenium?

By using Robot class as below:
Robot robo = new Robot();
robo.keyPress(KeyEvent.VK_ENTER);

28. How to get all cookies and with name of the cookie?

driver.manage().getCookies();
driver.manage().getCookieNamed("APISID");

29. How to delete all cookies and with name of the cookie?

driver.manage().deleteCookieNamed("APISID");
driver.manage().deleteAllCookies();

30. How to add a cookie?

 Cookie cookie1 = new Cookie("test2", "cookie2");
 driver.manage().addCookie(cookie1);

REVISION:

73. What is the use of Driver in Selenium?


Responsible for controlling the actual browser. Most drivers are created by the browser vendors themselves. Drivers are generally executable modules that run on the system with the browser itself, not on the system executing the test suite.

74.What are the new features in Selenium 4? VERY IMP 

Click Here For Detail Answer

75. Explain some of the strategy to handle CAPTCHA?

There are two primary strategies to get around CAPTCHA checks:

  • Disable CAPTCHAs in your test environment
  • Add a hook to allow tests to bypass the CAPTCHA

76. What is page load strategy in Selenium?

Click Here For Answer


****************************************

TOP 15 BDD - CUCUMBER Interview Q&A


************************************************

✍️AUTHORLinkedIn Profile

************************************************

Learn (API-Microservice)Testing+ Selenium UI Automation-SDET with Self Paced Videos prepared by FAANG employees and LIVE Doubt Session 

SDET TRANING VIDEOS AVAILABLE with Live Doubt Session(course-1 below,API TRaining Videos With Class Notes and Coding Set) and (API+UI, both course-1 & 2 below) Check Training Page for Course Content or reach out @whatsapp +91-9619094122. 
This includes classnotes, 300+ interview questions, 3 projects, Java Coding question set for product companies along with career guidance from FAANG employees for Automation and SDET.

For more details whatsapp : https://lnkd.in/dnBWDM33

*************************************************

SeleniumWebdriver Automation Testing Interview Questions:

https://automationreinvented.blogspot.com/search/label/SeleniumWebdriver

API Testing Interview Question Set:

https://automationreinvented.blogspot.com/2022/03/top-80-api-testing-interview-questions.html

DevOps Interview Q&A:

https://automationreinvented.blogspot.com/2021/11/top-11-devops-interview-questions-and.html 

Kubernetes Interview Question Set

https://automationreinvented.blogspot.com/search/label/Kubernetes

Docker Interview Question Set

https://automationreinvented.blogspot.com/Docker

Linux Interview question Set

https://automationreinvented.blogspot.com/search/label/Linux

Automation Testing/SDET Framework Design

https://automationreinvented.blogspot.com/search/label/FrameworkDesign

Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java

GIT Interview Question Set:

https://automationreinvented.blogspot.com/2021/09/top-40-git-interview-questions-and.html

Coding Interview Question Set:

https://automationreinvented.blogspot.com/search/label/Coding%20Questions

Mobile Testing Interview Question Set:

https://automationreinvented.blogspot.com/search/label/Mobile%20Testing

Python Interview Question Set for QAE - SDET - SDE:

https://automationreinvented.blogspot.com/search/label/Python


 


8 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Thank you Sidharth..Very informative questions.

    ReplyDelete
  3. Very informative crisp and clear questions & Answers
    have doubt on 27 questions we can perform keyboard action via Actions class as well what is the difference to use Actions class & Robot class.

    ReplyDelete
  4. Very good site and good questions

    ReplyDelete
  5. I am doing automated testing training Thank you so much for sharing these questions it's really gonna help me.

    ReplyDelete