This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Silk Workbench: SendKeys not working

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

  • Verified Answer

    +1  

    Hi

    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