How to send Ctrl-A, Del in CDP Mode? #3821
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Methods such as |
Beta Was this translation helpful? Give feedback.
-
HI Michael, thanks for the tip. Turns out it was me using sd.cdp.press_keys that was the issue. For some reason, it does not work on this site. Just changing it to sb.cdp.type solved the problem. It does indeed clear out the old text. |
Beta Was this translation helpful? Give feedback.
Methods such as
sb.cdp.type(selector, text)
should automatically clear out text fields before typing in new text.If for some reason that didn't clear out the old text first, use the
PyAutoGUI
methods instead.