When testing a reflex web app, is there a way to select a file if the rx.upload() component is used to select files to upload? #3323
aden-collector
announced in
General
Replies: 1 comment
-
Check out how we do it in reflex/integration/test_upload.py Lines 180 to 182 in 99d5910 reflex/integration/test_upload.py Line 192 in 99d5910 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been able to write pytest python code to test a reflex web app. I use the AppHarness module and am able to locate elements on a reflex web page and manipulate them (click object, etc.). I am trying to test uploading of files on the app. The app uses the rx.upload() component to select the files to upload. I am unable to use a web component identifier (xpath, etc.) to select a file. Are there any workarounds to select a file for testing like triggering an event or running a javas script function?
Beta Was this translation helpful? Give feedback.
All reactions