I am trying to enter some text into an HTML field in my application.
Using the following Set command (code below) inserts the text "TEST", but the HTML field does not recognize the text. The text gets set but it acts like a copy and paste. The field allows 254 characters and when "TEST" is set the field thinks there is no characters in it.
Code example:
So I decided to try to use SendKeys but I cant seem to get it to work with my application. I cant seem to get 12345 displayed into the application??
Code example:
Any ideas on why SendKeys does not work for me? or if anyone has another way I can SET the text in the HTML field? The field will allow 254 characters but when I do the SET in QTP the HTML field still thinks there is 254 available characters in the field so a message box appears stating "No text has been entered".
The application I am using is PeopleSoft 9.0
Using the following Set command (code below) inserts the text "TEST", but the HTML field does not recognize the text. The text gets set but it acts like a copy and paste. The field allows 254 characters and when "TEST" is set the field thinks there is no characters in it.
Code example:
Code:
Browser("Browser").Page("GeneralInformation").PSFrame("ContractHeader").WebEdit("txtAssign").Set ("Test")
So I decided to try to use SendKeys but I cant seem to get it to work with my application. I cant seem to get 12345 displayed into the application??
Code example:
Code:
Set WshShell = CreateObject("Wscript.Shell")
Browser("Browser").Page("General Information").PSFrame("Contract Header").WebEdit("txtAssign").Click
WshShell.SendKeys "12345"
Any ideas on why SendKeys does not work for me? or if anyone has another way I can SET the text in the HTML field? The field will allow 254 characters but when I do the SET in QTP the HTML field still thinks there is 254 available characters in the field so a message box appears stating "No text has been entered".
The application I am using is PeopleSoft 9.0