Check Selenium Interview questions from 1 to 10 below:
Check Selenium-SDET-UIAutomation Questions set 21 to 30:
Check Selenium-SDET-UIAutomation Questions set 41-50:
Q&A Set 41-50
Check Selenium-SDET-UIAutomation Questions set 51-70:
71. What is default time for implicit and explicit wait?
Implicit wait default time is zero.
Explicit wait default time is 500 ms
72. What is remote WebDriver client?
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.setCapability("browserVersion", "67");
chromeOptions.setCapability("platformName", "Windows XP");
WebDriver driver = new RemoteWebDriver(new URL("http://www.example.com"), chromeOptions);
driver.get("http://www.google.com");
driver.quit();
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
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?
Selenium 4 brings Relative Locators which are previously called as Friendly Locators. This functionality was added to help you locate elements that are nearby other elements. The Available Relative Locators are:
- above
- below
- toLeftOf
- toRightOf
- near
withTagName()
which returns a RelativeLocator.FirefoxProfile profile = new FirefoxProfile();
FirefoxOptions options = new FirefoxOptions();
options.setProfile(profile);
driver = new RemoteWebDriver(options);
****************************************************
Check Selenium Interviewquestions from 1 to 10 below:
Qus Set - 11 to 20
****************************************************
36. How to launch batch file from Selenium WebDriver?
Process batch = Runtime.getRuntime.exec("path of the batch file");
37. How to run selenium test from command line?
java -classpath ".;selenium-server-standalone-2.33.0.jar" SampleClass
38. What is the name of the super interface of the Webdriver?
Ans: SearchContext.
39. Explain some of the strategy you have followed while using xpath?
40. How to execute the testng test suite from the command line?
Ans: java -cp “C:\AutomationReinvented\testng \lib\*;C:\AutomationReinvented\testng\bin” org.testng.TestNG testng.xml
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();
26. How to drag and drop from source to destination?
ANS: Click Here For Answer
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?
Ans: Click Here For Answer
30. How to add a cookie?
Cookie cookie1 = new Cookie("test2", "cookie2");
Check Selenium-SDET-UIAutomation Questions set 41-50:
Q&A Set 41-50
Learn (API-Microservice)Testing+(CoreJava+UI)-SDET with Self Paced Videos and one LIVE Doubt Session
- To check API related topics and interview tips check below and keep reading:
Most Asked API Question For SDET
Want to learn more? ...Check below link for more interview question:
API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API
Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html
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/search/label/GIT
Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions
No comments:
Post a Comment