Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding a Visual ID - creating a function
#1
Not Solved
Anyone ever tried this? I want to create a visual identifier that I would add to an object so it can be correctly identified by by QTP.

I have a list of items:

+123 Smith John123 John123@smith.com
+234 Smith John234 John234@smith.com
+345 Smith John345 John345@smith.com
+112 Smith John112 John112@smith.com

I am adding another row to this list. But, I don't know where in the list it will appear - 1st, last or in between. I need to click the '+' to expand the nested information. The '+' objects are identical except for the Ordinal Identifier - Index. Unfortunately, I can't use that either. I have not found that number to be stable. Each time I have run the test, I see a different number.

My proposed solution is to use the email address which I set as a variable early in the script as a visual identifier for the '+'.

I created the '+' object in the repository as well as an email object on this page.

My plan is to use the SETTO to make the email address as the innertext of the webelement. Then, using scripting, set the email object as the visual identifier of the '+' saying the email is to the right and inline with the '+'

Does this make any sense to anyone? Any better ideas?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question adding two conditions into a while statement lotos 4 4,765 11-10-2017, 04:49 AM
Last Post: lotos
  Need help in creating dynamic object string using Childobjects Keshub Mathur 0 1,473 09-11-2017, 05:52 PM
Last Post: Keshub Mathur
  Uft: Adding a property to all ojects into Repository ProTester 0 1,234 06-09-2017, 12:48 AM
Last Post: ProTester
  Calling a Function in Function Library when function is defined in an Action jitenderkkr 0 2,750 11-27-2014, 12:53 PM
Last Post: jitenderkkr
  HAVING PROBLEM IN CREATING OBJECT OF TEST BATCH RUNNER mayankchauhan 0 3,302 04-04-2014, 05:29 PM
Last Post: mayankchauhan

Forum Jump:


Users browsing this thread: 1 Guest(s)