obj("text").value="Networking.*find devices"    
likewise ..
Here try to give more unique property ..it will work,,,pls try ..

Else let me know..application path ..i l try at my end..if possible.

On Friday, July 8, 2016 at 6:33:03 PM UTC+2, [email protected] wrote:
>
> I tried this and it didn't work.
> .WinObject("Internet Explorer_Server").ClickOnText "Networking.*find 
> devices"
>
>
>
> So I tried the second method but count is always 0, therefor it fails.
>
> Dim obj1, obj, i, x, found, searchstring      
> Set obj = Description.Create()            
> obj("text").value="Networking.*find devices"           
>         
> Set obj1= .WinObject("Internet Explorer_Server").ChildObjects(obj)
>             
>  x=obj1.count                                         '  This returns 0
>             
>  searchstring = obj1(0)                       ' I just tried this to see 
> what the value is
>
> for i=0 to x
>   if instr(obj1(i),"Networking")>0 then
>      obj1(i).click
>   end if
> next
>
>
>
>
>
>
>
> On Friday, July 8, 2016 at 6:55:49 AM UTC-4, Vikash Mishra wrote:
>
>> Try this 
>>
>>
>> .WinObject("Internet Explorer_Server").ClickOnText "Networking.*find 
>> devices"
>>  or 
>>
>> create DP.
>> obj("GiveSomePropertyName").value="Networking.*find devices"
>> set obj1=.WinObject("Internet Explorer_Server").childobject(obj)
>> x=obj1.count
>> for i=0 to x //may be more the one object
>>   if instr(obj1(i),"Networking")>0 then
>>      obj1(i).click
>>   end if
>> next
>>
>> Let me its working or not..
>> On Thursday, July 7, 2016 at 8:30:54 PM UTC+2, [email protected] wrote:
>>>
>>>
>>>
>>> Hi
>>>
>>> All links without the special character are clicked but the system won't 
>>> click this link because it doesn't know what -- is?
>>>
>>>
>>>
>>> .WinObject("Internet Explorer_Server").ClickOnText "Networking — find 
>>> devices"
>>>
>>>
>>> How do I write this statement?
>>>
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>

-- 
-- 
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.

Reply via email to