Hi Professionals,
Now i have found my problem solution which was
faced due to The Web edit is embedded into the web element. So, we are
unable to spy the property of the web edit directly.
In this situation we need to click fisrt at webelement then perform set
operation on web edit.
Many thanks to Knowledge Inbox administartor.
My working code placed below....
Function Input_Text(f_value,f_txt,indx)
Set
myClientP=browser("name:="&environment("vClientManagementDetailsAdd_Title")).page("title:="&environment("vClientManagementDetailsAdd_Title"))
Set myo=description.Create()
myo("micclass").value="webedit"
myo("html tag").value="INPUT"
myo("default value").value=f_value
' myo("index").value=indx
If myClientP.Exist Then
myClientP.webelement("class:=dxic","index:="&indx,"html
tag:=TD").highlight
myClientP.webelement("class:=dxic","index:="&indx,"html tag:=TD").click
Setting.WebPackage("ReplayType") = 2
myClientP.webelement("class:=dxic","index:="&indx,"html
tag:=TD").webedit(myo).set f_txt
Setting.WebPackage("ReplayType") = 1
else
msgbox "page does not find"
End If
Set myo =nothing
Set myClientP=nothing
end function
Thanks...
Akhalesh
9555717928
On Fri, Dec 20, 2013 at 1:28 AM, Akhalesh Yadav <[email protected]
> wrote:
> No arun this is not the reason, max length is 100 and I tried 20 digit
> char ....
> On 20 Dec 2013 11:20, "QTP" <[email protected]> wrote:
>
>> Try put a msg box and see like "msgbox len( f_txt)" to ensure the
>> length.
>>
>> Always use trim( f_txt). If there is probability of space(" ") is
>> getting added.
>>
>> On Thursday, December 19, 2013 6:23:58 PM UTC+5:30, Akhalesh Yadav wrote:
>>>
>>> Hi Guys,
>>> i tried many times to set the values in webedit box using
>>> given code.
>>> Call Input_Text("Last Name","Smith")
>>> '--------------------------------------------------------
>>> Function Input_Text(f_value,f_txt)
>>> Set myClientP=browser("name:="&environment("
>>> vClientManagementDetailsAdd_Title")).page("title:="&environment("
>>> vClientManagementDetailsAdd_Title"))
>>> Set myo=description.Create()
>>> myo("micclass").value="WebEdit"
>>> myo("default value").value=f_value
>>>
>>> If myClientP.Exist Then
>>> myClientP.webedit(myo).Set f_txt
>>> else
>>> msgbox "page does not find"
>>> End If
>>>
>>> Set myo =nothing
>>> Set myClientP=nothing
>>> end function
>>> '- - - - - - - - - - - - -- - - - - - - - - - -- - -
>>> it focused at specified webedit feild but does not put the value as
>>> "Smith" in that feild and do not show also any error.
>>>
>>> Please revert soon, i will appreciate your help!....
>>>
>>> Thanks....
>>> Akhalesh
>>> --
>>> Akhalesh yadav
>>> +919555717928
>>> +919310680659
>>>
>> --
>> --
>> 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.
>>
>
--
Akhalesh yadav
+919555717928
+919310680659
--
--
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.