Browser testing with Splinter #1159
oTree-org
started this conversation in
Show and tell
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, one of my favorite tools for testing websites is Splinter, which provides a high-level API to test a website as a user would (following links, filling forms, etc), rather than making raw HTTP requests.
They have drivers for various clients (Django test client, Chrome, etc) but not Starlette yet. So here is an implementation of a driver allowing Splinter to be used in your Starlette tests. You can instantiate it as
StarletteSplinter(client)
, whereclient
is your Starlette test client.Beta Was this translation helpful? Give feedback.
All reactions