Micro Focus QTP (UFT) Forums
QTP does not seem to support xhtml based java objects - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: QTP does not seem to support xhtml based java objects (/Thread-QTP-does-not-seem-to-support-xhtml-based-java-objects)



QTP does not seem to support xhtml based java objects - siva.kanukollu@yaho.com - 01-16-2013

hi

I am currently working on a java based cms tool which has xhtml based edit fields.

qtp identifies them as java objects but not as java edit due to which we are unable to

1.use set method to enter data(instead using type method which while running takes more time to enter a lengthy string)

2.to retrieve text present in the field as well with getroproperty("innertext")

tried mapping this java object to javaedit but it does not work

When I record, got the below code for text fields:

Code:
JavaWindow("Escenic Content Studio").JavaObject("XHTMLEditorUI_3").PressKey "r"
JavaWindow("Escenic Content Studio").JavaObject("XHTMLEditorUI_3").PressKey "s"
JavaWindow("Escenic Content Studio").JavaObject("XHTMLEditorUI_3").PressKey "t"
JavaWindow("Escenic Content Studio").JavaObject("XHTMLEditorUI_5").Click 70,10,"LEFT"
JavaWindow("Escenic Content Studio").JavaObject("XHTMLEditorUI_4").Click 69,13,"LEFT"
JavaWindow("Escenic Content Studio").JavaObject("XHTMLEditorUI_5").Click 67,7,"LEFT"
JavaWindow("Escenic Content Studio").JavaObject("XHTMLEditorUI_6").Click 54,93,"LEFT"
JavaWindow("Escenic Content Studio").JavaObject("XHTMLEditorUI_4").Click 83,14,"LEFT"
JavaWindow("Escenic Content Studio").JavaObject("XHTMLEditorUI_4").Click 83,14,"LEFT"

QTP does not seem to support xhtml based java objects.
Has anyone worked on this?

Appreciate a solution to this issue.

Thanks