Given a modal dialog with an ID = "modal1" and a button in the modal with a class name = "modal1-butlon1", which line(s) of code will click on the modal button?
A)

B)

C)

D)

Suggested Answer: B
Get Premium CSeT-F Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
13 comments · newest first
BE
Bea
12 months ago
Not sure about these options, they seem off.
LA
Lashaunda
12 months ago
Definitely going with A!
VE
Velda
12 months ago
Wait, isn't the button class misspelled?
AV
Avery
1 year ago
I think it's actually Option C.
NA
Nakisha
1 year ago
Option B looks correct to me.
SH
Sherita
1 year ago
I think Option C looks familiar, but I can't recall if we need to include the modal ID in the selection. It’s a bit confusing!
OR
Ora
1 year ago
I feel like I might be mixing up the syntax for selecting elements. Was it `document.getElementById` or `document.querySelector` we used for classes?
GA
Gail
1 year ago
I remember practicing a similar question where we had to click a button inside a modal, and I think the right option should reference the modal ID first.
CL
Clarence
1 year ago
I think we need to use the correct selector for the button class, but I'm not sure if it's a dot or a hash for class names.
KI
Kimbery
1 year ago
I'm a little confused by the options. Graceful restart on all routers might work, but I'm not sure if that's the most optimal solution for this specific scenario. I'll need to review the high availability features more carefully.
LA
Lavonda
1 year ago
Okay, let me see here. I think the correct actions are to check the "Show as waterfall" option and use the Bar Offset property with the right expression. The other options don't seem directly relevant to creating the waterfall chart.
HO
Honey
1 year ago
Hmm, I'm a bit confused by the wording here. I'll need to re-read the question and options a few times to make sure I understand.
AS
Aswarthalakshmi
4 years ago
I think Answer is D not B, because we have locator called class_name not class. Please correct the answer