Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sort Order Check
#1
Not Solved
Code:
Set oDesc=Description.Create()
oDesc("micclass").value = "WebElement"
oDesc("class").Value = "order_details_main_boxes"
Set sLinks = Browser("ABC").Page("XYZ").ChildObjects(oDesc)
sLinkCount = sLinks.Count
For i = 0 to sLinkCount - 1
iName= sLinks(i).GetROProperty("innertext")
iOrderNumber =Left(iName, 7)
aSort(i) = iOrderNumber
PRINT aSort(i)
Next

Assume i have 3 orders for my user in the application.

so order numbers are stored in an array aSort(i) using the above code. (Note: webtable is not availble and so caputured orders by taking class value of webelement)

aSort(0) = 1
aSort(1) = 2
aSort(2) = 3

Now in the order page orders are displayed in the following order:

Order Column -- Link
2
3
1

Now if i use click method and click on Order Column link then orders will be displayed in descending order

Order Column
3
2
1

Need code to check whether they are displaying properly in descending order or not.

Again if i click on Order Column link it is displayed in ascending order. Need code to check whether it is displaying in ascending order or not.

Please help me in this regard.

Thanks.
Reply


Messages In This Thread
Sort Order Check - by automation2012 - 03-06-2013, 12:00 PM
RE: Sort Order Check - by automation2012 - 03-07-2013, 04:15 PM
RE: Sort Order Check - by automation2012 - 03-26-2013, 02:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Should I download every patch in order to UFT recognize the Chrome and FireFox browse jesusisaac 6 5,054 08-25-2016, 05:03 PM
Last Post: Ankesh
  Get numbers inside all webelements in webtable and sort them pradeep537 1 2,595 08-04-2016, 01:24 AM
Last Post: Ankur
  Automating SAP Sales Order Dwarak Calayampundi 0 1,627 06-09-2016, 09:28 AM
Last Post: Dwarak Calayampundi
  Sort multidimensional array SBsteven 8 8,745 03-14-2014, 02:49 PM
Last Post: anuj.bajaj
  sort two dimensional array. venkatesh9032 0 1,751 03-06-2014, 02:47 PM
Last Post: venkatesh9032

Forum Jump:


Users browsing this thread: 1 Guest(s)