Akhilesh:
My case was different. I had to enter a name in the WebEdit box and then
click on the arrow ("select_entity") to find the value, ("strEntity"), in
the dropdown and then tab off the WebEdit. The arrow was identified as a
WebElement.
I also tried ReplayType and FireEvent. Device Replay was successful for me.
The following were hard coded:
browser name
webEdit editname
My arrow was a webElement and had constant name
All I had to pass was, what page I was on, pg, and the string to find,
strEntity.
Function enterEntity(pg,strEntity)
'' dr.presskey 28 => enter
'' dr.presskey 15 => tab
Set dr = CreateObject("Mercury.DeviceReplay")
Set oEntity = Browser(name).page(pg).WebEdit(editname).Object
If err.number <> 0 Then
print "Error: " & err.Description
If err.Description = "Object is disabled" Then
' do nothing or print a message
End If
Else
oEntity.value = strEntity
Browser(name).page(pg).WebElement("select_entity").Click
wait(5)
dr.PressKey 15
wait(1)
End If
Set dr= Nothing
End Function ''// enterEntity
While my WebEdit was my object, perhaps you can make your dropdown the
object and set the value in that manner.
hth
Parke
On Mon, Nov 10, 2014 at 5:23 AM, Akhilesh Sinha <[email protected]>
wrote:
> Thanks for the reply friends.....but I cannot set value directly as u guyz
> stated... :( Its Dojo Framework Still doing R&D on it....once i get result
> ...will be posting
>
>
> On Tuesday, 21 October 2014 20:09:43 UTC+5:30, udayanem wrote:
>>
>>
>> You can try the work around method by setting runtime property, like below
>> B().P().Webedit().Object.innertext="Whatever value you want to provide"
>> 'if innertext didnt workout try some other property like name or value
>>
>> Try and let us know whether it works out or not.
>>
>> Thanks,
>> Uday
>> QTP / UFT Videos <https://www.youtube.com/user/AnemUday/videos>
>>
>>
>> On Tuesday, 7 October 2014 20:17:25 UTC+5:30, Akhilesh Sinha wrote:
>>>
>>> Hello friends...
>>>
>>> I am trying to click on a WebEdit but getting popup like Object is
>>> disable.
>>> I have already tried ReplayType and fireevent"onkeydown","onkeydown"
>>> and Settoproperty "disabled" 0.
>>>
>>> Scenario is that our intelligent developers have set dropdown as WebEdit
>>> and that too diable.The arrow button is also webedit. In order to set any
>>> data I need to click on Arrow Webedit then select the record in dropdown.
>>> (fyi ... dev framework is dojo)
>>> But in IE 11 UFT 11.53 is clicking on WebEdit without any issue. Issue
>>> is with IE 8 9 10.
>>>
>>> Is there any way to click on disabled webedit.
>>> Guyzz...Please help....
>>>
>>> Thanks
>>> Akhilesh K Sinha
>>>
>> --
> --
> 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/d/optout.
>
--
Parke
Cell: 770-842-0121
--
--
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/d/optout.