Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow clicks to be intercepted #6

Open
timothyaveni opened this issue Jun 28, 2024 · 0 comments
Open

Allow clicks to be intercepted #6

timothyaveni opened this issue Jun 28, 2024 · 0 comments

Comments

@timothyaveni
Copy link
Contributor

many students ran into this -- they hid the radio button because they wanted to make it prettier, but now playwright complains.

what a student 'should' do in this case is:

  • make the overlaying element be the #clickable element. this is kind of the intended solution, but maybe not obvious if you didn't write the autograder
    • (this also either requires that the overlaying element be a <label> or that you establish some kind of handler setup so that the radio button gets checked)
  • or just use buttons instead of radio buttons, but now you need to reimplement state tracking and state visibility (though the latter you were probably going to have to reimplement to some extent anyway with some fancy css selector)

in either case, dealing with this issue is not really a learning objective for the assignment, so let's use { force: true } in the click

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant