Spring Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

CPST-001 Certified Professional Selenium Tester (CPST) Questions and Answers

Questions 4

What should be used for dynamically generated identifier

Options:

A.

Use XPath locator

B.

All of these

C.

Locate by ID and name attribute

D.

Depends upon the project

Buy Now
Questions 5

Which operating system supports Selenium installation and application on Edge web browser?

Options:

A.

MacOS

B.

Linux

C.

Windows

D.

All of the these

Buy Now
Questions 6

What is the command to access the alert?

Options:

A.

Alert alert = driver.switchTo().alert();

B.

alert = driver.switchTo().alert();

C.

Alert alert = driver.alert();

D.

alert = driver.alert();

Buy Now
Questions 7

You are running a batch of automated tests and want to capture screenshots of any failures for further analysis. How would you implement this?

Options:

A.

Use a third-party tool like Snagit to capture screenshots.

B.

Use the Selenium WebDriver's built-in screenshot capability to capture screenshots.

C.

Use a logging framework to capture screenshots and log them along with the test results.

D.

Use a custom screenshot utility to capture screenshots.

Buy Now
Questions 8

How does the SafariDriver is implemented?

Options:

A.

Plugin

B.

None of these

C.

Extensions

D.

RPC

Buy Now
Questions 9

If 'NULL', audio will NOT be recorded.

Options:

A.

True

B.

False

Buy Now
Questions 10

Name the Selenium API method that is used to execute JavaScript from Selenium RC?

Options:

A.

Execute Js API

B.

getEval API

C.

Execute .JS < selenium-server.jar >

D.

None of the above

Buy Now
Questions 11

Assert and Verify are used for:

Options:

A.

Validating the elements that are available on the application under test

B.

Validating the elements only on the current page

C.

It is not used for validating

D.

None of the above

Buy Now
Questions 12

How do you start Selenium RC?

Options:

A.

Start Selenium RC Server

B.

java -jar selenium-server-standalone- < version-number > .jar

C.

Start RC

D.

None of the above

Buy Now
Questions 13

Which of the following is NOT a step to run automation using Selenium?

Options:

A.

Record the scripts using Selenium IDE

B.

Run the test

C.

Modify the scripts according to the testing needs

D.

Viewing the results in the specified format

Buy Now
Questions 14

What is the project configuration file if setting up a Selenium-WebDriver project in Maven?

Options:

A.

pom.xhtml

B.

pom.json

C.

pom.html

D.

Opom.xml

Buy Now
Questions 15

Which of the following uses native JavaScript calls?

Options:

A.

Selenium Core

B.

Selenium Grid

C.

SIDE

D.

Selenium WebDriver

Buy Now
Questions 16

You need to run your Selenium tests in parallel using TestNG. How would you configure TestNG to run tests in parallel?

Options:

A.

Use the parallel="classes" attribute in the TestNG XML configuration file.

B.

Manually specify the test classes and methods to run in parallel in the TestNG configuration.

C.

Use the parallel="methods" attribute in the TestNG XML configuration file.

D.

Use the ©Parameters annotation to pass parameters for parallel execution.

Buy Now
Questions 17

The ---------- has a plug-in system that allows easy extension and customization.

Options:

A.

Selenium IDE

B.

Selenium WebDriver

C.

Selenium Grid

D.

Selenium Core

Buy Now
Questions 18

Which of the following is usually used for installing Selenium for C# project?

Options:

A.

Microsoft Azure

B.

ASP.NETMVC

C.

NuGet

D.

Npm

Buy Now
Questions 19

The attribute which can be used only at the class level is:

Options:

A.

threadPoolSize

B.

priority

C.

successPercentage

D.

singleThreaded

Buy Now
Questions 20

Which of the following WebDriver methods is used to select the option at a given index?

Options:

A.

selectIndex()

B.

selectedByIndex()

C.

selectByIndexes()

D.

selectByIndex()

Buy Now
Questions 21

The three modes in which we can use the Selenium Assertions are:

Options:

A.

Assert, Verify, and waitFor

B.

Assery, Verify, and Assertions

C.

Assert, VerifyAssertion, and waitFor

D.

assertAssertions, VerifyAssertions, and waitFor

Buy Now
Questions 22

The test language usually used in Selenium is ________________.

Options:

A.

PHP

B.

Python

C.

JavaScript

D.

None of the above

Buy Now
Questions 23

Which one is not the correct type of locater?

Options:

A.

XSD

B.

DOM

C.

ID

D.

Name

E.

CSS

Buy Now
Questions 24

The client libraries of Selenium RC instruct Selenium Server on:

Options:

A.

How to test the AUT

B.

How to test the AUT by using Selenium commands

C.

How to test the AUT by passing it your test scripts and Selenium commands

D.

How to test the test scripts and Selenium commands

Buy Now
Questions 25

Which of the following exceptions is not an ideal candidate to ignore via FluentWait?

Options:

A.

NoAlertPresentException

B.

ElementNotVisibleException

C.

TimeoutException

D.

NoSuchElementException

Buy Now
Questions 26

Which instance defines the maximum amount of time to wait for a condition to take place?

Options:

A.

FluentWait

B.

ExecWait

C.

ModWait

D.

ErrWait

Buy Now
Questions 27

Which method will close all windows opened by the WebDriver?

Options:

A.

exit

B.

close

C.

quit

D.

shutdown

Buy Now
Questions 28

How do you identify an object in Selenium?

Options:

A.

HTML code

B.

DOM with Firebug

C.

CSS

D.

Firepath

Buy Now
Questions 29

Which of the following steps is not mandatory to launch Firefox in Selenium 3?

Options:

A.

caps.setCapability("marionette", true);

B.

WebDriver driver = new FirefoxDriver();

C.

driver.get("http://www.google.com");

D.

DesiredCapabilities caps = new DesiredCapabilities();

E.

System.setProperty("webdriver.gecko.driver", "geckodriver path");

Buy Now
Questions 30

How to run the Selenium IDE test suite with user extensions using Selenium Remote Control?

Options:

A.

java -jar selenium-server.jar -userExtensions user-extensions.js -htmlSuite " <</i> browser > " " <</i> Selenium test suite file > " " <</i> results log file > " -timeout <</i> millise >

B.

java -jar selenium-server.jar user-extensions.js -htmlSuite " < browser > " " < base URL > " " < Selenium test suite file > " " < results log file > " -timeout < millise >

C.

java -jar selenium-server.jar -userExtensions user-extensions.js -htmlSuite " <</i> browser > " " <</i> base URL > " " <</i> Selenium test suite file > " " <</i> results log file > " -timeout <</i> millise >

D.

java -jar selenium-server.jar -userExtensions user-extensions.js -htmlSuite " < browser > " " < base URL > " " < Selenium test suite file > " " < results log file > " -timeout < millise >

Buy Now
Questions 31

How can you run tests on a specific node in Selenium Grid?

Options:

A.

By setting the remoteAddress capability in the DesiredCapabilities object

B.

By specifying the node's IP address and port in the test code

C.

By using the RemoteWebDriver class with the node's URL

D.

All of the above

Buy Now
Questions 32

What type of Wait objects keep alive until the WebDriver object dies?

Options:

A.

Explicit Wait

B.

Fluent Wait

C.

Implicit Wait

D.

All of the above

Buy Now
Questions 33

The Selenium RC is used < … complete the sentence … > ?

Options:

A.

To run tests in different browsers (except HtmlUnit) on different OS.

B.

To create tests with little or no prior knowledge in programming.

C.

To test a web application against Firefox only.

D.

To run a huge test suite, that can be executed in distributed environment.

Buy Now
Questions 34

How can you set the path to the Chrome driver executable in your Selenium WebDriver script using ChromeDriver?

Options:

A.

Using the setProperty method

B.

Using the setPath method

C.

Using the setExecutable method

D.

Using the setDriverExecutable method

Buy Now
Questions 35

Which of the following is an .Net test engine

Options:

A.

Junit

B.

IntelliJ

C.

NetBeans

D.

NUnit

Buy Now
Questions 36

You are testing a web application that requires handling browser navigation, such as forward and backward navigation. How would you configure Gecko Driver to handle browser navigation?

Options:

A.

Configure the browser.history_expire_days preference in your Firefox profile to control the expiration of browsing history.

B.

Use the navigate().to() method in Selenium to navigate to a specific URL.

C.

Use the history.forwardQ and history.backQ JavaScript methods to navigate forward and backward in the browser history.

D.

Use the navigate().forward() and navigate().back() methods in Selenium to navigate forward and backward in the browser history.

Buy Now
Questions 37

What are the different navigation methods of WebDriver?

Options:

A.

back(). bac ()

B.

moveto()

C.

forward()

D.

goto()

E.

refresh()

Buy Now
Questions 38

Selenium tests _____________.

Options:

A.

DOS applications

B.

Browser-based applications

C.

GUI applications

D.

None of the above

Buy Now
Questions 39

storeFooPresent(variable) does:

Options:

A.

Stores the text of the pop-up in a variable and returns true or false

B.

Stores the text of the pop-up into some default variable

C.

Stores the text of the pop-up in a variable

D.

Both A and B

Buy Now
Questions 40

How do you run the JUnit tests from the command line?

Options:

A.

java org.junit.runner. < test class name >

B.

Run JUnit < test name >

C.

java JUnitCore < test class name >

D.

java org.junit.runner.JUnitCore < test class name >

Buy Now
Questions 41

What is Selenium's recording language?

Options:

A.

Java

B.

C#

C.

Ruby

D.

HyperText Markup Language

Buy Now
Questions 42

The term AJAX expands to ______________.

Options:

A.

Asynchronous Java and XML

B.

Asynchronous JavaScript and XML

C.

Accumulated Java and XML

D.

None of the above

Buy Now
Exam Code: CPST-001
Exam Name: Certified Professional Selenium Tester (CPST)
Last Update: Apr 30, 2026
Questions: 143

PDF + Testing Engine

$63.52  $181.49

Testing Engine

$50.57  $144.49
buy now CPST-001 testing engine

PDF (Q&A)

$43.57  $124.49
buy now CPST-001 pdf