- Which of the following is a popular web automation tool?
View Answer
Correct answer: A — Selenium
- Cypress tests are written in which language?
View Answer
Correct answer: C — JavaScript
- Selenium WebDriver supports automation for:
View Answer
Correct answer: A — Multiple browsers
- Which Selenium method is used to click a button?
View Answer
Correct answer: A — element.click()
- Cypress automatically waits for:
View Answer
Correct answer: A — DOM elements to load
- Selenium locators include:
View Answer
Correct answer: A — ID, Name, XPath, CSS
- Cypress supports running tests in:
View Answer
Correct answer: A — Headless mode
- Selenium Grid is used for:
View Answer
Correct answer: A — Distributed test execution
- Which of the following is NOT a Selenium locator?
View Answer
Correct answer: D — By.mock
- Cypress uses which command to visit a URL?
View Answer
Correct answer: A — cy.visit()
- What will be printed?
1 import org.openqa.selenium.WebDriver; 2 import org.openqa.selenium.chrome.ChromeDriver; 3 public class EduinqSelenium { 4 public static void main(String[] args) { 5 WebDriver driver = new ChromeDriver(); 6 System.out.println("Eduinq Selenium Test"); 7 driver.quit(); 8 } 9 } View Answer
Correct answer: A — Eduinq Selenium Test
- Cypress command to get an element by CSS selector is:
View Answer
Correct answer: A — cy.get()
- Selenium supports programming languages like:
View Answer
Correct answer: A — Java, Python, C#, Ruby
- Cypress supports assertions using:
View Answer
Correct answer: A — Chai and Mocha
- Selenium IDE is used for:
View Answer
Correct answer: A — Record and playback of tests
- Cypress supports mocking network requests using:
View Answer
Correct answer: A — cy.intercept()
- Selenium Grid enables:
View Answer
Correct answer: A — Parallel test execution
- Cypress supports screenshots using:
View Answer
Correct answer: A — cy.screenshot()
- Selenium WebDriver is an interface for:
View Answer
Correct answer: A — Browser automation
- Cypress supports video recording using:
View Answer
Correct answer: A — Built-in functionality
- Which of the following is true about Selenium?
View Answer
Correct answer: A — It automates browsers
- Cypress supports retrying assertions automatically:
View Answer
Correct answer: A — True
- Selenium supports locating elements using:
View Answer
Correct answer: A — XPath
- Cypress supports running tests in CI using:
View Answer
Correct answer: A — cypress run
- Selenium supports handling alerts using:
View Answer
Correct answer: A — driver.switchTo().alert()
- Cypress supports waiting for elements using:
View Answer
Correct answer: A — cy.wait()
- Selenium supports taking screenshots using:
View Answer
Correct answer: A — TakesScreenshot interface
- Cypress supports stubbing functions using:
View Answer
Correct answer: A — cy.stub()
- Selenium supports handling multiple windows using:
View Answer
Correct answer: A — driver.getWindowHandles()
- Cypress supports environment variables using:
View Answer
Correct answer: A — cypress.json
- What will be printed?
1 describe('Eduinq Cypress Test', () => { 2 it('prints message', () => { 3 cy.log('Eduinq Automation'); 4 }); 5 }); View Answer
Correct answer: A — Eduinq Automation
- Selenium supports implicit waits using:
View Answer
Correct answer: A — driver.manage().timeouts().implicitlyWait()
- Cypress supports explicit waits using:
View Answer
Correct answer: A — cy.wait(time)
- Selenium supports handling frames using:
View Answer
Correct answer: A — driver.switchTo().frame()
- Cypress supports fixtures using:
View Answer
Correct answer: A — cy.fixture()
- Selenium supports executing JavaScript using:
View Answer
Correct answer: A — JavascriptExecutor
- Cypress supports clearing cookies using:
View Answer
Correct answer: A — cy.clearCookies()
- Selenium supports maximizing browser window using:
View Answer
Correct answer: A — driver.manage().window().maximize()
- Cypress supports clearing local storage using:
View Answer
Correct answer: A — cy.clearLocalStorage()
- Selenium supports navigating back using:
View Answer
Correct answer: A — driver.navigate().back()
- Cypress supports navigating to previous page using:
View Answer
Correct answer: A — cy.go('back')
- Selenium supports navigating forward using:
View Answer
Correct answer: A — driver.navigate().forward()
- Cypress supports navigating forward using:
View Answer
Correct answer: A — cy.go('forward')
- Selenium supports refreshing the page using:
View Answer
Correct answer: A — driver.navigate().refresh()
- Cypress supports reloading the page using:
View Answer
Correct answer: A — cy.reload()
- Selenium supports closing the current window using:
View Answer
Correct answer: A — driver.close()
- Selenium supports quitting the entire browser session using:
View Answer
Correct answer: A — driver.quit()
- Cypress supports clearing cookies and local storage together using:
View Answer
Correct answer: A — cy.clearCookies(); cy.clearLocalStorage()
- Selenium supports selecting dropdown options using:
View Answer
Correct answer: A — Select class
- Which of the following best describes test automation tools?
View Answer
Correct answer: A — They automate browser and application testing