You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To interact correctly with MDSwitch widget, I needed to have a click and hold behavior in order to change its state: click_on and wait_click methods from client are not working in this case, so I found a tricky workaround for this that I would like to share:
I managed to do this using wait_drag client method, putting as selector the Thumb and as target the same, specifying a proper duration and timeout, in this way I was able to reproduce desired behavior.
To interact correctly with
MDSwitch
widget, I needed to have a click and hold behavior in order to change its state:click_on
andwait_click
methods from client are not working in this case, so I found a tricky workaround for this that I would like to share:I managed to do this using
wait_drag
client method, putting as selector the Thumb and as target the same, specifying a proper duration and timeout, in this way I was able to reproduce desired behavior.Here it is the code I wrote:
Maybe it could be useful to implement a
click_hold_on
or await_click_hold
method inside client that can use this "trick".What do you think?
The text was updated successfully, but these errors were encountered: