If a Robot script highlights and copies data to the clipboard with an InputKeys "^c" instruction for later use with the Clipboard.GetText()instruction, and once Robot has stopped and you want to edit a file in Robot, if I do a manual Copy and then a Paste, it pastes what it had
copied earlier during script execution instead of what a just copied manually. Has anyone seen this behavior?
Try using a GetProperty function and copy the returned value to the ClipBoard using the SQABasic function SetText you can then paste it from the clipboard as follows:
Dim Result As Integer
Dim sRtnValue As String
Window SetContext, "Caption=Software Quality Assurance Forums: Copy and Paste problem with Robot - Microsoft Internet Explorer", ""
Result = SQAGetPropertyAsString("Type=HTMLTable;Index=22"," innerText",sRtnValue)
If sRtnValue <> "" Then
sRtnValue = CStr(Result)
Automation Team Lead
Rental Quality Assurance