Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can not get text to be recognized in HTML field........
#1
Solved: 11 Years, 4 Months ago
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:
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
Reply


Messages In This Thread
Can not get text to be recognized in HTML field........ - by Wonka - 08-03-2010, 08:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  getting the value from the field learning 0 1,046 03-19-2019, 09:13 AM
Last Post: learning
  Telnet command not recognized Sanjana1987 1 2,060 09-20-2017, 03:16 PM
Last Post: Ankur
  Customized HTML reports in QTP azeem 11 49,495 12-31-2016, 02:57 PM
Last Post: chevronneraji
  [UFT] Get text into DIV through HTML tag robertosalemi 2 5,533 03-29-2016, 09:43 PM
Last Post: robertosalemi
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,907 09-13-2015, 12:06 AM
Last Post: ADITI1992

Forum Jump:


Users browsing this thread: 1 Guest(s)