Hi,
I am trying to sendkeys CTRL A and DEL text in text field using below code and its not working.
Any tips or advise how to sendkeys please:
Code:
.DomTextField("//IFRAME[@id='field1edit']").TypeKeys("<CTRL A><DELETE>")
Thanks,
S
Cybersecurity
DevOps Cloud
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it! Learn more.
Hi,
I am trying to sendkeys CTRL A and DEL text in text field using below code and its not working.
Any tips or advise how to sendkeys please:
Code:
.DomTextField("//IFRAME[@id='field1edit']").TypeKeys("<CTRL A><DELETE>")
Thanks,
S
Hi Srikanth2021
The code should be:
.DomTextField("//IFRAME[@id='field1edit']").TypeKeys("<CTRL+A><DELETE>")
You could also just use the "ClearText()" method to delete the contents of the DomTextField.
Regards
Robert