Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt
#9
Solved: 10 Years, 9 Months, 1 Week ago
Hi,
I got solution and now it works fine.


'**************************************************

Step 1. Create a function
Step 2. Click on Label Webelement (so that list pop can open)
Step 3. Click on Webelement (The value to be select)


Code:
fnDivSelectList sDefaultValue,sValueToSelect

Function fnDivSelectList(sDefaultValue,sValue)
           '++++++++++++++++++++++++++++++++++++++
' Function Description:  This function will   select the value from a list (Not Weblist ,but list under DIV  as a Webelement)
' Author : Pradeep
' Date : 26- Feb-2013
' Input parameter : Default value of List,Value to be select
' Output :  
' Remarks :
'++++++++++++++++++++++++++++++++++++++
    Set  olistLabel=Browser("title:=.*").Page("title:=.*").WebElement("html tag:=LABEL","innertext:="&sDefaultValue)
    olistLabel.click

    Set oListValue=Browser("title:=.*").Page("title:=.*").WebElement("html tag:=LI","class:=ui-selectonemenu-item.*","innertext:="& sValue)    
    oListValue.click


    Set olistLabel=Nothing
    Set oListValue=Nothing

End Function
'*************************************************

It solved my problem.
Reply


Messages In This Thread
RE: QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt - by pradeep singh - 02-27-2013, 04:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to recognize objects in SilverLight application through QTP Guest877 1 2,516 08-03-2018, 08:33 AM
Last Post: Manisha
  Business Components Parameterization YogeshCallappa 0 1,513 06-07-2017, 04:32 PM
Last Post: YogeshCallappa
  When trying to recognize the object in QTP, each object is recognized as “WinObject:S geetasarvadnya 2 3,485 10-28-2015, 12:34 PM
Last Post: vinod123
  UFT 12.50 unable to recognize child objects from a Dialog Class in Firefox jesusisaac 1 3,587 08-20-2015, 11:39 PM
Last Post: ADITI1992
  Problem Firing events on Flex components endpoint 0 2,206 09-10-2014, 06:52 PM
Last Post: endpoint

Forum Jump:


Users browsing this thread: 1 Guest(s)