Online Exam Quiz

questionQuestion  1 to 30

Which TestNG annotation executes only once before all tests?

  • @BeforeMethod
  • @BeforeTest
  • @BeforeClass
  • @BeforeSuite
Mark for review

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

  • FluentWait
  • WebDriverWait
  • Timer
  • Clock
Mark for review

Which interface contains the click() method?

  • WebDriver
  • WebElement
  • By
  • Selector
Mark for review

Which Selenium tool supports record and playback?

  • WebDriver
  • RC
  • Selenium IDE
  • Grid
Mark for review

Which Selenium class is used for performing keyboard and mouse actions?

  • WebDriver
  • WebElement
  • Actions
  • Robot
Mark for review

Which tool helps in managing browser drivers automatically?

  • Jenkins
  • Maven
  • WebDriverManager
  • IntelliJ
Mark for review

What is the parent interface of WebDriver?

  • WebElement
  • SearchContext
  • BrowserContext
  • DriverInterface
Mark for review

Which function is used in PageFactory?

  • init()
  • initElements()
  • startElements()
  • generateElements()
Mark for review

Which framework is useful for managing test data?

  • TestNG
  • Maven
  • DataProvider
  • Log4j
Mark for review

Which of these is NOT part of a hybrid framework?

  • Keyword-driven
  • Data-driven
  • Module-driven
  • Browser stack
Mark for review

Selenium is primarily used for:

  • Unit Testing
  • API Testing
  • UI Automation
  • Load Testing
Mark for review

Which of the following is a WebDriver interface method?

  • start()
  • navigate()
  • open()
  • link()
Mark for review

Which option is best for data-driven testing in Selenium?

  • Manual testing
  • Java files
  • Excel/CSV
  • API testing
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

What kind of framework is most reusable in Selenium?

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

What is FluentWait used for in Selenium?

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

Which of the following interacts with HTML elements?

  • Actions
  • WebElement
  • Robot
  • WebDriverWait
Mark for review

How do you verify if a checkbox is selected?

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

Which language is NOT supported by Selenium WebDriver?

  • Java
  • Python
  • PHP
  • COBOL
Mark for review

How do you handle file uploads in Selenium?

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

How do you skip a test in TestNG?

  • @Ignore
  • @Skip
  • @Test(enabled=false)
  • @test(disable=true)
Mark for review

Which Selenium component supports test parallelization?

  • IDE
  • RC
  • Grid
  • WebElement
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 check the number of open tabs in Selenium?

  • driver.getWindowHandles().size()
  • driver.tabCount()
  • driver.getTabs()
  • countTabs()
Mark for review

In Maven, which file defines dependencies?

  • pom.xml
  • build.gradle
  • dependencies.xml
  • config.json
Mark for review

Which of these tools is NOT required for Selenium WebDriver automation?

  • WebDriver
  • IDE
  • Browser Driver
  • Postman
Mark for review

How do you scroll down a web page in Selenium?

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

Which locator is considered fastest in Selenium?

  • By.cssSelector
  • By.name
  • By.id
  • By.xpath
Mark for review

What is the role of DesiredCapabilities in Selenium?

  • Launching browsers
  • Setting browser properties
  • Logging errors
  • Formatting output
Mark for review

What is the purpose of navigate().to()?

  • Scroll page
  • Refresh page
  • Go to a URL
  • Switch tab
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