- Is Selenium able to handle dynamic AJAX elements?
- Yes
- No
- Cant Say
Ans: 1 - How to use xpath for dynamic elements?
- Identify the pattern and modify xpath pattern
- Directly use the xpath?
- Both 1 and 2
- None of the above
Ans: 1 - Selenium can handle Javascript alerts.
- TRUE
- FALSE
Ans: 1 - Is Regular expression helps to identify dynamic elements?
- Yes
- No
- Not very compatible
Ans: 3 - How to check if any check box is checked or not?
driver.findElement(By.id(<>).Selected()
driver.findElement(By.id(<>).isSelected()
driver.findElement(By.id(<>).isChecked()
- All of the above
Ans: 2 - Can Selenium handle Alerts or Pop ups windows?
- Yes
- No
Ans: 1 - What is getWindowHandle method?
- Method will help to handle parent window
- Method will help to handle of opened windows other than parent
- Only handles alert
- None of the above
Ans: 2 - How to handle alert using selenium?
driver.switchto.popup()
driver.switchto
driver.switchto.alert()
- None of the above
Ans: 3 - What is Iterator?
- Iterator enables you to cycle through a collection, obtaining or removing elements
- It basically starts at the beginning of a collection
- When you want to know which things are in a certain collection, you iterate over the collection, which is just another term for going through all elements. This is what an Iterator does
- All of the above
Ans: 4 - After the popup actions, how to switch the driver back to the parent window?
browser.switchTo().window(parentWindowHandle);
browser.switchTo().alert();
- Both 1 & 2
- None of the above
Ans: 1
Dynamic Pages, Window Alerts, Pop-Ups
Popular Posts
- How To Explain Project In Interview Freshers and Experienced
- Selenium Frequently Asked Questions & Answers Part-6
- API/Webservices Testing using RestAssured (Part 1)
- Manual Testing Interview Questions & Answers-PART1
- Java Programs for Selenium
- How to use HashMap in Selenium WebDriver
- ETL Test Scenarios and Test Cases
- Python Interview Questions and Answers Part-1
- Manual & Automation Testing Free Video Tutorials | YouTube Playlists