- 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
Pages
- Home
- Manual Testing Materials
- Manual Testing Tutorials
- Manual Testing Interview Questions & Answers
- ISTQB
- Selenium Using Java Tutorials
- Advanced Java
- Selenium with Python
- Automation Testing Materials
- SDET Essentials
- Cypress Tutorials
- API Testing
- RestAssured Tutorials
- Agile Methodology
- SQL For Testers
- Big Data Hadoop
- ETL Testing videos
- Websites for Automation Practice
- Resume Templates
- Downloads
- Career Guidance
- Mock Interviews
- Miscellaneous Topics
- Udemy Courses
- Online Training