Thanks George the index thing worked for me too.  
 
 
 
 

On Thursday, December 5, 2013 8:02:31 AM UTC+5:30, george wrote:

> Have you tried using index or location
>
> depends where the webdedit is located, usually it starts at "index:=0" 
> than 1,2...
>
> I used examples from here and it worked for me.
>
> http://relevantcodes.com/descriptive-programming-dp-concepts-3-ordinal-identifiers-demo/
>
>  
>
>
>
> On Wednesday, December 4, 2013 10:30:14 AM UTC-5, Vineet Sharma wrote: 
>>
>>  Hi,
>>
>>  
>> I’m trying to enter value into the calendar text box using descriptive 
>> programming. Please see below the code that I’m using.
>>  
>>
>>  
>>
>> *Browser("title:=ARTUsers").Page("title:=ARTUsers").Frame("name:= 
>> actionIFrame").WebEdit("type:=text","html 
>> tag:=INPUT","name:=$PpyWorkPage$pPAClaimDetailsV5").Set "123456"*
>>
>>  
>>
>> Now the thing that I have noticed that, no matter what property value I 
>> use inside WebEdit() in above code, the QTP is not able to recognize the 
>> object. I have used almost every property value apart from outerhtml on 
>> which QTP thows a syntax error since it contains the double quotes. Refer 
>> to the attached screenshot
>>
>>  
>>
>> However, it works perfectly fine when I record textbox and playback. But 
>> can somebody please suggest that how descriptive programming approach would 
>> work here ?
>>
>>  
>>
>> Attaching the object spy snapshot of this textbox.
>>
>>  
>>
>>  
>>
>>  
>> Thanks
>> Vineet
>>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to