Search Header Logo

SELENIUM

Authored by rockstar rock

Computers

Professional Development

SELENIUM
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

  1. Which Selenium class is used to simulate keyboard actions?
    a) Actions
    b) Robot
    c) KeyboardActions
    d) KeyEvent

A

B

C

D

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

  1. How can you simulate pressing the "Enter" key using Selenium WebDriver in Java?
    a) sendKeys(Keys.ENTER)
    b) click(Keys.ENTER)
    c) type(Keys.ENTER)
    d) pressKey(Keys.ENTER)

A

B

C

D

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts


What is the default timeout for implicit waits in Selenium WebDriver?
a) 0 seconds
b) 5 seconds
c) 30 seconds
d) 10 seconds

A

B

C

D

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

  1. Which of the following is NOT a valid wait type in Selenium WebDriver?
    a) Implicit Wait
    b) Explicit Wait
    c) Fluent Wait
    d) Thread Wait

A

B

C

D

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

  1. What is the primary difference between implicit and explicit waits?
    a) Implicit waits are applied to specific elements, explicit waits apply globally
    b) Implicit waits wait for a maximum duration, explicit waits wait for a condition
    c) Explicit waits wait for a maximum duration, implicit waits wait for a condition
    d) There is no difference

A

B

C

D

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

  1. Which Java class is commonly used to handle virtual key events in Selenium?
    a) Actions
    b) KeyEvent
    c) Robot
    d) Keys

A

B

C

D

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

  1. How do you simulate pressing the "Ctrl + S" keys using the Robot class?
    a) robot.keyPress(KeyEvent.VK_S); robot.keyRelease(KeyEvent.VK_S);
    b) robot.keyPress(KeyEvent.VK_CONTROL); robot.keyPress(KeyEvent.VK_S); robot.keyRelease(KeyEvent.VK_S); robot.keyRelease(KeyEvent.VK_CONTROL);
    c) actions.sendKeys(Keys.CONTROL, "S").perform();
    d) sendKeys(Keys.CONTROL + "S")

A

B

C

D

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?