The parameter is incorrect error when typing into a WebEdit

1 Star2 Stars3 Stars4 Stars5 Stars (26)
Loading ... Loading ...

Sometimes QTP throws a “The parameter is incorrect” error when setting a text in a WebEdit
Below is a test textbox to reproduce the issue
WebEdit with Max Length 4:

The error can be reproduced using below code

‘Will work fine
Browser("KnowledgeInbox").Page("KnowledgeInbox").WebEdit("txtMaxTest").Set "1234"
 
‘Will throw a parameter is incorrect error
Browser("KnowledgeInbox").Page("KnowledgeInbox").WebEdit("txtMaxTest").Set "12345"

There are two root causes of this issue
Root Cause #1
Trying [...]

Register or Login to read the full article...

Have questions related to this article? Want to request a new article? Use our forums to post your questions


Viewed 3,962 times

Related posts:

  1. Suscribe to Email

    Enter your email address:

    Delivered by FeedBurner