Thanks you for your suggest… but it take a long time because I have many items must be check lowest price and then key in their quantity on the web.
I have made a counter variable and assign it into the selector . But I don’t know how to determined the lowest price when selector run one by one price field and then key in into the quantity field.
– get the price assign it to a variable called lowestPrise
– get the second value, compare it with the first value
– if second value is lowest than the first then assign the second value to lowestPrise variable
– continue this procedure for all the value but it might need you to do it two loops.
so better scrape all the value using data scarping sort it get the lowest it will be faster than comparing the values one by one.
to find the element after getting the lowest you just need to get the index of the lowest price in the original table not the sorted one.
you can take a copy of the original data table
after sorting you will get the value
from the original data table you just need to get the index of the value
i guess as you said index of the selector will 0,1,2 like that you will get the same index value from the data table.
means index value in the web page and index in the data table will be same (just assumption)
I have made XAML file to sort ascending and I checked the result which written into the excel file is correct.
And now how to determine the index of lowest price ( EX : 0,1,2,3… )… I think it very hard.FILE.xaml (18.0 KB)