AJAX truclient pick check box list with same category
Question ID: 107288

0
0

Hello All,

AJAX Truclient Evalxpath to differentiate category and pick all same category checkboxes.

Below is evalpath i get when i check evalxpath for one value. similarly the evalxpath is same for other checkox with different check box value (i.e 8539fc082ed57f0591bc12b7e516a3680ef

evalXPath("//input[@type=\\"checkbox\\" and @value=\\"8539fc082ed57f0591bc12b7e516a3680ef6\\"]");

But i want to differentiate two(IN & OUT STOCKS) different categories, from below three stocks, i need to pick number of In stock category (IN stock changes with users, they are not constant) only.

In Stock Out Stock In Stock
Marked as spam
Posted by (Questions: 2, Answers: 0)
Asked on December 2, 2016 7:11 am
49 views
Answers (1)
0
Private answer

I recommend you use a loop and if then else statement to perfrom this task.

loop for the number of line of item in the list
if ''in stock''
then checkbox = true
go to next item in list
increment the loop
else //for out of stock item
go to next item in list
increment the loop
end loop when no more items in list and continue the script

OR if possible have the application sort for ''in stock item'' and then select all items.

Marked as spam
Posted by (Questions: 12, Answers: 384)
Answered on December 7, 2016 5:28 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top