One logic i could think of is - you can use following selector in format
tbody[class!="day dayOff"]
Now the logic on how to achieve this kind of looping UI Elements would be like as below
1. Use Javascript function on webpage to count the number of elements equal to xpath //tbody[@class!="day dayOff"] using belos function code.
function ExecuteScript() {
var xpathResult = document.evaluate('//tbody[@class!="day dayOff"]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
// Return the number of elements found
return xpathResult.snapshotLength;
}
like below
the output of this function would be number of ui elements whose selectors would have tbody with class attribute not equal to day dayOff.
Now loop through the result variable after converting to a number format using convert text to number action and then using loop action as shown below
I am not sure what you are trying to do with each UI Elements having tbody tag containing class attribute not equal to day dayOff.- but here i have used a click action which will click on each ui element having selector as
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.