GAQM Certified Professional Selenium Tester (CPST) Sample Questions:
1. Select the disadvantage of Selenium from the following:
A) The software it was developed with is browser-based and agile-adapted.
B) Does not support file upload from the local machine.
C) It is simple, easy to install, and easy to work with.
D) Run multiple tests at a time.
2. You need to group your Selenium tests using TestNG. How would you define and use test groups in TestNG?
A) Use the @Test(groups = "") annotation to define test groups.
B) Manually specify the test groups in the test classes.
C) Use the TestNG XML configuration file to specify test groups.
D) Use the mvn testng:test command to execute tests in specific groups.
3. Selenium automates:
A) Navigators
B) URLs
C) Browsers
D) None of the above
4. Which one is not the WebDriver's expected condition?
Note: WebDriver's ExpectedConditions class is used to test expected conditions.
A) titleIs()
B) frameToBeAvailableAndSwitchToIt()
C) elementToBeClickable()
D) isAlertPresent()
E) textToBePresentInElement()
5. Which wait is used in cases where the WebDriver cannot locate an object immediately because of its unavailability?
A) Target wait
B) Explicit wait
C) Fluent wait
D) Implicit wait
Solutions:
| Question # 1 Answer: B | Question # 2 Answer: A | Question # 3 Answer: C | Question # 4 Answer: D | Question # 5 Answer: D |

We're so confident of our products that we provide no hassle product exchange.


By Levi


