How to test Select widget? #4514
Unanswered
UlrichGoebel
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can use the name of the key e.g. Run the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to test a self written bib which implement a few special widgets.
I use
pytest
and to test aSelect
Widget:So what could I put in the second
click
to chose the first, second or third option?Onother way to test the
Select
coult be to simulate keystrokes instead of mouse clicks. Is there a possibility to simulate keys other then characters (likepilot.press('a')
), let's saySpace
,Down
,Up
Enter
, or evenCtrl-Up
and so on? In the docu for Pilot.press() I just found normalstr
as argument forpilot.press()
.Thank You for any hint.
Beta Was this translation helpful? Give feedback.
All reactions