Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to set value which is more than 255 length to text fileld
#1
Not Solved
hi,

I tired to enter the value which is 256 length by the following statement

Code:
browser("Test").Page("Test").WebEdit("Test"). Set "string 256 lenght"

- Error "Invalid parameter" gets displayed

How can we set the value which is 256 length to text field
Reply
#2
Not Solved
Hi Anbarasu,

Check the WebEdit("Test")'s 'max length' property is set to 255. If you set a string more that 'max length', QTP will through the error message.

If it is 'max length' is 255, you can't set a string with 256 length.
Reply
#3
Not Solved
S... U are rite..
But, how can we verify that the field is not accepting the data which exceeds its max length

On error we can skip this step and proceed to next step.. But how can we capture that "In correct parameter" gets displayed while executing the step (entering max length +1)
Reply
#4
Not Solved
How would you do it manually ?? I guess the application would throw a error message stating the length is long or something like that...Does it not ?

if you get that message then you can see for the text and determine.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,973 09-13-2015, 12:06 AM
Last Post: ADITI1992
  Find Combo Box length? AndyBSG 3 4,066 12-05-2014, 10:02 PM
Last Post: AndyBSG
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,751 08-13-2013, 08:37 PM
Last Post: excellentpawan
  set property not typing full text in "webedit" field auto_tester 7 9,470 08-09-2013, 06:21 PM
Last Post: Ankur
  Multiple Data Set With Different Child Data Set Suba 2 4,279 04-08-2011, 02:07 AM
Last Post: Suba

Forum Jump:


Users browsing this thread: 1 Guest(s)