
Cypress - Modern Automation Testing from Scratch + Framework - Cypress Locator Strategies and How to Construct Them
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary method supported by Cypress for identifying elements on a webpage?
Xpath
Class Name Selectors
CSS Selectors
ID Selectors
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you write a CSS selector using an ID?
Using a slash followed by the ID name
Using a colon followed by the ID name
Using a hash followed by the ID name
Using a dot followed by the ID name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What should you do if a class name contains spaces when writing a CSS selector?
Leave the spaces as they are
Replace spaces with underscores
Replace spaces with dots
Remove the spaces
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to write a CSS selector using an attribute?
tagname:attribute=value
tagname[attribute=value]
tagname.attribute=value
tagname/attribute=value
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you traverse from a parent to a child element in CSS?
Using a slash
Using a dot
Using a space
Using a comma
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What tool can be used to verify CSS selectors in Chrome?
HTML Inspector
CSS Validator
Chrome Path plugin
JavaScript Console
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What additional feature does Cypress provide for verifying locators?
HTML Inspector
JavaScript Console
CSS Validator
Test Runner
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?