Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to select a option based on Random Q/A
#1
Not Solved
Hello expert,

I'm stuck in a scenario where our website asks user set of 2 questions based on his credit history. You can think of this as when you do your credit check Q/A. So that means all Q/A will be totally random. On our QA site we've provide a hint with the correct answer (refer to the attached screenshot). So the correct answer will have © at the end. Answers are all Radio buttons. My problem is I'm not sure what should be my approach to automate this process. Have anybody automated something like this in past. If yes then please help me out to automated it.

Many thanks in Advance.


Attached Files Image(s)
   
Reply
#2
Not Solved
Hi...
I was working for Equifax Smile ..in our QA region, the correct answers would have got selected automatically...so we had to simply submit the page...
ok..for your question...

1) for each set of radio group, you can get the text using GetROProperty.
2) look for © @ the end of the string. find the index and select.

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  VB Script - random string qtp_user22 5 26,888 06-19-2014, 04:54 PM
Last Post: roysam404
Question Achieving Visual Relation Identifier option using AOM scsvel 1 5,176 02-17-2012, 04:17 PM
Last Post: scsvel
Rolleyes How to select multiple choices from Multi-Select weblist blavanya 3 9,827 01-03-2012, 05:55 PM
Last Post: shivu.hanu
  QTP Webelement with Html tag as OPTION pjr 0 7,000 01-30-2011, 05:33 AM
Last Post: pjr
  Copying random length part of the string. unbeliever 5 4,836 01-07-2010, 02:55 PM
Last Post: unbeliever

Forum Jump:


Users browsing this thread: 1 Guest(s)