| || |
Issue with x-form-field objects
In our web page, all of the objects are defined as x-form-field x-form-text objects which are recorded as WebEdit's in QTP. The issue here is QTP is not recording on these objects at all, However when we manually add the objects to OR and perform click and set its working. But the challenge is whatever value is entered itís not retained in the object. As soon as we navigate away from the object the value is disappearing. Any idea on how to deal with these objects.
try toggling the replay type once
maybe you can try another way to set value instead of use "set".
Are you referring weblist(Select) objects? Can you please elaborate your issue
I presume you are handling dynamic objects if then try adding more object identification properties through object identification wizard.
Upon referencing material on the web I finally found a solution, (BTW, HP confirmed that they still don’t have official support for EXTJS objects) The normal click and set should work, however in my above post I have a combo or list item which is recognized as Webedit.
so when I write code to fire the .set event its not working, as such its not a real text box..its an object that seems to be like a list item wherein the user selects one item from there. But since these objects are added outside of recording, the object is now recognized as edit box..
Hence what I have done is
1) Added the "Arrow" displayed next to this box, and initiated mouse click on this arrow as a first step. The arrow is treated is Web element.
2) As soon as the list opened click one of the items inside the list-This object is treated as web element.
So instead of one .set statement I have implemented 2 lines
Browser.page.webelement.Webelement2.Click-Fow value inside the list.
The only disadvantage I can see with this is you cannot parameterize the value to click...since its a web element, (I don’t know if there is a way to parameterize Object's), so each time we have to select different item from the list we need to add that corresponding web element.
you can achieve this with descriptive programming refer below
yourtext = "your value" 'the value you need to parametrize
Browser.page.webelement("class:=class of the webelement","innertext:="&yourtext).click 'Class of the webelement - Spy the object and find the class of the webelement (or) any other unique identifier