Online Exam Quiz

questionQuestion  1 to 30

What is FluentWait used for in Selenium?

  • Performance testing
  • Wait with polling and conditions
  • Parallel execution
  • File download
Mark for review

How do you verify if a checkbox is selected?

  • checkbox.click()
  • checkbox.getText()
  • checkbox.isSelected()
  • checkbox.isDisplayed()
Mark for review

What is the use of driver.getWindowHandle()?

  • Get session ID
  • Get tab ID
  • Get current window ID
  • Get cookies
Mark for review

Which file must be downloaded to automate Firefox?

  • geckodriver.exe
  • chromedriver.exe
  • edge.exe
  • webdriver.jar
Mark for review

Which WebDriver method is used to refresh the browser?

  • refresh()
  • reload()
  • reopen()
  • update()
Mark for review

Which tool is commonly used with Selenium for reporting?

  • Maven
  • Jenkins
  • ExtentReports
  • Postman
Mark for review

Which WebDriver method closes all browser windows?

  • close()
  • quit()
  • exit()
  • end()
Mark for review

What is the major limitation of Selenium WebDriver?

  • It can't test web apps
  • No support for desktop apps
  • Can?t open browsers
  • Doesn?t support Java
Mark for review

What is the return type of findElements()?

  • WebElement
  • List
  • String
  • boolean
Mark for review

Which method checks if element is enabled?

  • isActive()
  • isDisplayed()
  • isEnabled()
  • isShown()
Mark for review

Selenium WebDriver is:

  • A GUI-based tool
  • A library for browser automation
  • A commercial testing tool
  • A build tool
Mark for review

How do you select an option from a dropdown in Selenium?

  • Using click()
  • Using getText()
  • Using Select class
  • Using mouse hover
Mark for review

Explicit waits are used to:

  • Wait for a specific condition
  • Stop execution permanently
  • Force browser refresh
  • Wait for script load
Mark for review

What is the purpose of driver.getPageSource()?

  • Returns CSS
  • Returns JS
  • Returns complete HTML source
  • Returns headers
Mark for review

Which of these is NOT handled by WebDriver directly?

  • Alerts
  • File uploads
  • Windows
  • Video streaming
Mark for review

What kind of framework is most reusable in Selenium?

  • Linear
  • Hybrid
  • Modular
  • Keyword-driven
Mark for review

What is Selenium?

  • A manual testing tool
  • A performance testing tool
  • A browser automation tool
  • A database testing tool
Mark for review

Selenium supports testing on:

  • Desktop apps only
  • Web apps only
  • Mobile apps only
  • Web and desktop apps
Mark for review

Which is NOT a valid WebDriver method?

  • getTitle()
  • get()
  • sendKeys()
  • setTimeout()
Mark for review

What is the parent interface of WebDriver?

  • WebElement
  • SearchContext
  • BrowserContext
  • DriverInterface
Mark for review

What type of XPath is considered more reliable?

  • Absolute XPath
  • Relative XPath
  • Full XPath
  • Deep XPath
Mark for review

Which Selenium command retrieves the page title?

  • getTitle()
  • getHeader()
  • getText()
  • getPage()
Mark for review

What is the purpose of sendKeys()?

  • Open the browser
  • Close the tab
  • Type into a field
  • Take a screenshot
Mark for review

Which listener tracks test method execution?

  • IExecutionListener
  • ITestListener
  • LogListener
  • TestCaseListener
Mark for review

Which tool is used with Selenium for cross-browser testing?

  • QTP
  • Postman
  • TestNG
  • BrowserStack
Mark for review

Selenium tests are most stable when using:

  • XPath locators
  • Absolute paths
  • IDs and CSS selectors
  • Image recognition
Mark for review

How do you scroll down a web page in Selenium?

  • pageDown()
  • driver.scroll()
  • JavaScriptExecutor
  • ScrollBy()
Mark for review

How do you handle file uploads in Selenium?

  • sendKeys()
  • clickUpload()
  • attachFile()
  • uploadFile()
Mark for review

What is the benefit of using PageFactory?

  • Improves runtime
  • Delays execution
  • Initializes web elements efficiently
  • Hides driver logs
Mark for review

Which class is used to wait until an element is visible?

  • FluentWait
  • WebDriverWait
  • Timer
  • Clock
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review