We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
So the Test Complete SetText function simply does not work at all.
I changed the code to set the Sys.Clipboard to the 4000+ text string and using the Keys("^a[Del]^v") works fine.
Thank you for trying, BMD
No, what I mean is set a text variable to some string that is 4000 characters long and just insert that into your field. There is no need to type 4000 characters separately every time. Insert the 4000 and then use Keys or SetText to try to type one more in and check to see if it worked.
Maybe this will help. The code below ONLY enters 'Keys input'. The 4000+ long string and 'SetText input' is NOT entered. The object is found as the .Click and the .Keys work just fine.
var PropNames = ["Name", "idStr", "VisibleOnScreen"];
var PropValues = ["Textarea(\"Comments\")", "Comments", true];
var Comments_TB = Sys.Browser(ProjectSuite.Variables.Browser).Find(PropNames,PropValues,20);
if ( Comments_TB.Exists )
{
Comments_TB.Click();
Comments_TB.Keys("^a[Del]Keys input");
Comments_TB.SetText(TheString);
Comments_TB.SetText("SetText input");
}
So the Test Complete SetText function simply does not work at all.
I changed the code to set the Sys.Clipboard to the 4000+ text string and using the Keys("^a[Del]^v") works fine.
Thank you for trying, BMD