Check questions from 1 to 10 below:
Question set 21 to 30:
41. What’s the difference between soft and hard asserts?
Click here for answer with example
42. How would you upload a file via Selenium Webdriver? Know About Kubernetes
Let we have a button as "Choose File", so first need to identify this element as below
@FindBy(xpath="//span[contains(text(),'Activate')]")
public WebElement chooseFile;
Use sendkeys with the file path that you want to upload:
chooseFile.sendKeys("C:\\filetoupload")
43. What are the parameters do you have to meet for Selenium to pass a test?
There are four conditions (parameters) for Selenium to pass a test, as below:
URL, host, browser and port number.
Top API Interview Question 11-20
44. Have you worked on invocation count/thread count or any advanced TestNG annotation, if Yes then can you explain?
Click here for answer
45. Tell me two things that you can't automate using Selenium?
Captcha and Barcodes (Explore DevOps)
46. Explain some of the keywords that has been used in your project for BDD approach?
Click here for answer with example
47. What will happen if you run this command. driver.get(“www.google.com”) ?
As the given URL doesn’t contain http or https prefix so it will throw an exception.
So, it is required to pass HTTP or HTTPS protocol within driver.get() method.
driver.get(“https://www.google.com”);
Learn To Design FRAMEWORK From Scratch
48. What is Recovery Scenario in Selenium WebDriver?
Recovery Scenarios is done by using “Try Catch” block within Selenium WebDriver :.
try{
driver.get(“https://www.google.com“);
}
catch (Exception e){
e.printStackTrace();
}
49. Which Source code management tool you have used and tell me some of the basic commands that you have used?
50. Have you worked on database side for fetching data to validate in selenium tests, if Yes then can you tell me some of the basic queries that you have used in day to day work?
Click here for answer with 11 queries
**What are two classes that you use for Mouse and Keybord?**
Try to find the answer and do reply in comment section, will explain in next post.Keep reading
Subscribe my youtube channel: https://youtu.be/SmTbXizVzfU
- Selenium Interview Question SET-1
- Selenium Interview Question SET-2
- Selenium Interview Questions SET-3
- Selenium Interview Question SET-4
Top API Interview Question 1-10
For Online Training on SDET contact 9619094122, starting new batch from December Third week.
- Top 30 Selenium Webdriver Interview Q&A
- Top 20 API Testing Interview Q&ASelenium Interview Question SET-4