Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random Variable
#1
Not Solved
Hi,

I am using Random Number for parameterization and have specified range of values from 100,000 to 1,000,000. Every time I execute the script I am getting the Error Mesage as:
Cannot identify the specified item of the PriceLow object. Confirm that the specified item is included in the object's item collection.
Code:
"Browser("xxx").Page("xxxx").WebList("PriceLow").Select RandomNumber("Low")".

It works fine without Random Number parameterization.
Please help me on this?

Thanks,
Kiran
Reply
#2
Not Solved
what is RandomNumber("Low") ie what is the return value and that value must be present in the list box if not you will get this error.all you want to do is make sure the variable RandomNumber (which is the function name) gets a value in the list box

Regards
Reply
#3
Not Solved
Thanks for your reply kishore.
In th list box the value is in form "$100,000" ,"$150,000".....
We need to insert $ sign in Random Number. I tried it and it does not take any other character other than numbers. I have given range from 100000 to 600000.
I dont know much about scripting, can we do it in scripting?

Thanks
Kiran
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Create a random number starting with an alphabet QTPmate 4 4,193 07-31-2014, 09:29 AM
Last Post: QTPmate
  Random Values from Drop-Down profqa 5 6,025 12-06-2013, 09:01 AM
Last Post: basanth27
  Creating Random String SomeIntern 0 5,082 08-21-2013, 09:10 PM
Last Post: SomeIntern
  Random Number generator and verification problem jinnah 4 10,416 09-28-2012, 04:03 AM
Last Post: jinnah
  How to choose a random no from list alwarselvam 0 3,173 12-24-2011, 08:28 AM
Last Post: alwarselvam

Forum Jump:


Users browsing this thread: 1 Guest(s)