capture dynamic value present in a pop up window in ajax true client
currently i am facing difficulty in capturing the dynamic value in pop window. Actually in my web application, every time after creating an issue, a pop window comes on top right corner of the screen showing "issue name with ID" like "PerfID 23" and every time i create the issue the issue ID increased by 1. In that pop window, i have to click on that "PerfID 23" link to open the issue. one more thing ,the pop up mesasge only last for 3 second on the screen. i recorded the script but while replying it not able to click on the "PerfID23" link, because its the ID number gets increased by 1.
So how to solve this issue kindly help me out.
Re: capture dynamic value present in a pop up window in ajax true client
You can try one of the following options
1. Use Improve Object Identification option
While TruClient is opened in Interactive mode run the script until the application shows the dynamic value you need to capture. Stop the script run. Record or manually add a step that clicks this dynamic value. Run the script again until the same point (in order to get a new value shown). At this point, open the object section of the step that needs to click on the dynamic value and choose Improve Object Identification. TruClient might remain with object identification method that does not rely on the dynamic value. If that works it is the best option to go with.
2. Use TruClient Descriptors object
Change the identification method of the object that has to deal with the dynamic value to Descriptors. Open the descriptors editor. See if you can disable the attribute that contains the dynamic value and still be able to successfully highlight the object. If TruClient is not able to locate the object after removing the dynamic value spy the object using the browser developr tools and look for attribiutes that can be added to TruClient descriptor in order to find the object uniquely but without the dynamic value.
See some examples for non automatic object identification as a reference.
Contact HPE support for further help if needed