Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use ordinal identifiers in VB script
#1
Solved: 10 Years, 9 Months ago Wink 
Hi All,

I am a beginner in QTP. I am facing a problem in QTP. I need to make QTp to click on web check boxes inside a window. I could not find any unique property that QTP uses to identify the object. Here what we are doing is parameterizing a property and giving the input through an excel. So I need to find a property.But there is nothing. but I found the Ordinal properties(Index,Value)is different for all the check boxes.

Can anyone help me out here?And pls let me knw if i have to make more clear

Thanks
QTPLearner
Reply
#2
Solved: 10 Years, 9 Months ago
Hi,

you can use HTML DOM to get a easy solution for this.
Using source code of the page you have to write the script.
Reply
#3
Solved: 10 Years, 9 Months ago
Hi, If u know the index of the check box on which u have to work on then use DP to get the access to that check box and perfrom ur task.

Regards,
Sankalp
Reply
#4
Solved: 10 Years, 9 Months ago
Hi,
How to use an ordinal identifier in a script??
Can u provide an example??
Reply
#5
Solved: 10 Years, 9 Months ago
Hi,

If QTP recognizes the individual checkboxes only with the help of ordinal identfiers and if this ordinal identifiers has to be parameterized, how we will do it??

It would be a great help if someone could give an example

Thanks
Vivek
Reply
#6
Solved: 10 Years, 9 Months ago
Hi,

You can use the descriptive programming method to solve this problem.

Like:
Code:
Set checkbox=description.Create
checkbox("class")="WebCheckBox"
checkbox("index")=0(u can pass this value at run time also)

Browser("Google").Page("Google").WebCheckBox(checkbox).Click

I hope this will resolve your issue
Reply
#7
Solved: 10 Years, 9 Months ago
Hi Anurag,

Is there any other way other than descriptive programming.??
Thanks
Vivek
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Description about Types of Ordinal Identifier abhijit.airforce 1 2,369 12-27-2013, 02:57 PM
Last Post: Ankesh
  How to Set Ordinal Identifier at run time Amit Singh Chauhan 3 7,977 03-22-2012, 12:11 PM
Last Post: qtplearner88
  Browser Ordinal Identifier bfakruddin 2 3,151 01-09-2009, 12:05 PM
Last Post: bfakruddin

Forum Jump:


Users browsing this thread: 1 Guest(s)