How to select a option based on Random Q/A - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: How to select a option based on Random Q/A (/Thread-How-to-select-a-option-based-on-Random-Q-A) |
How to select a option based on Random Q/A - zerocool - 09-16-2011 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. RE: How to select a option based on Random Q/A - vIns - 09-16-2011 Hi... I was working for Equifax ..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. |