Micro Focus QTP (UFT) Forums
QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt (/Thread-QTP-11-is-unable-to-recognize-prime-faces-components-for-ex-List-and-radio-butt)



QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt - pradeep singh - 02-26-2013

Hi

There is a Select List in my application (basically it is a prime faces components). When I spy on it, it shows me as a 'Webelement' not a standard 'Weblist'. I told this one to my manager that instead of prime faces components ,we should use default Select menu . He told me we have to use prime faces components and try to find the other solution for it.
So please guide me how to deal with this situation. Please find the attached image . This same case is also with Radio buttons.



Loaded Addins are:

ActiveX
Java
Visual Basic
Web



QTP version: 11

OS : Windows 7

Browser: IE 9





Waiting for your solution as soon as possible...
Thanks & Regards
Pradeep Singh


RE: QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt - basanth27 - 02-26-2013

Never Dealt with prime faces, but i think it is a known issue with QTP. How about click on the webelement and check the displayed dropdown. Is that recognized as a weblist?
If you dont find any valuable solution here, dont wait for long, talk to HP. There could be a patch or some kind of technical support.


RE: QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt - pradeep singh - 02-26-2013

Thanks for your quick reply...
Click on the webelement ,still displayed dropdown shown as webelement, not weblist.
Could you tell me please how to talk HP or what is the process for that ,if you know?


RE: QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt - basanth27 - 02-26-2013

Pradeep,
You will need a SAID # number. I believe since you are a corporate user, you will have one.
Step 1:
Register : https://ovrd.external.hp.com/rd/register
Step 2:
Post your query : http://support.openview.hp.com/

Hope this helps.


RE: QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt - supputuri - 02-26-2013

Hi Pradeep,

I don't know if you contacted HP or not. But we can handle this case... I have a solution.

let me know if you are still looking for help.


RE: QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt - ravnath123 - 02-26-2013

I have a doubt. If an application is developed in PHP, will the QTP support the Application without purchasing the licence.
As the QTP works good for ActiveX, Java, Visual Basic and Web applications.

One more doubt.
can we write the VB Script for printing the application form, which was developed in PHP


RE: QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt - basanth27 - 02-27-2013

If you have a solution please post it here, it will be helpful for the rest or any future joinee.


RE: QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt - Munna.Sarfraz - 02-27-2013

Hi,
As of now, QTP directly not recognizing to prime faces components, so don't wait long, Here is some work around so you may proceed your script development.

Suggested Approach : QTP recognize these object partially, so First you need to perform Click on Drop down list, Then Perform Click on options.
For more clarification, Refer to attached screenshot.

-Sarfraz


RE: QTP 11 is unable to recognize prime faces components ,for ex: List and radio butt - pradeep singh - 02-27-2013

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.