robocorp / rpaframework

Collection of open-source libraries and tools for Robotic Process Automation (RPA), designed to be used with both Robot Framework and Python
https://www.rpaframework.org/
Apache License 2.0
1.13k stars 217 forks source link

`RPA.JavaAccessBridge` Adjust `clear` to select all text in field for `Type Text` keyword #1038

Open raivolink opened 1 year ago

raivolink commented 1 year ago

Request from https://robocorp.zendesk.com/agent/tickets/3583.

Since the Clear parameter is True, the function performs a double click in the textbox for selecting the entire text and then performs the write operation. However, it is observed that, if the Text Box contains a string of words, the double click just selects the word instead of the entire string. Due to this write operation is performed on the selected word instead of the entire string

Please update the JAB Type Text function to do the following send key steps instead of double-clicking to clear the Text. Home -> Shift + End -> Delete (the sendkeys are to be done once the locator is clicked and before doing the write operation).

raivolink commented 1 year ago

Additional comment from Zendesk: _Further checking the “typetext” function in the “JavaAccessBridge.py”, it is observed that in addition to the “double click” action, the clear condition uses “CTRL+A and Delete” to clear the text from the textbox. However, in the JAVA application the “CTRL+A and Delete” does not work, instead “Home -> Shift+End -> Delete” works