Hi, in my process I use a do while to search a specific line in a web page. I use a counter which iterates the elements, and the counter is also variable in my selectors. I have a variable who is 1 if the element was find and 0 if the element was not find. I want to stay in the do while until the element is find or when the counter reach 10 tries.
My condition looks like this:
(Elementfound<>1) OR (Counter<>10)
But the process just go on and on even the counter reaches 10.
In the do while I also have an if that verify if the elements found in the web page are those who need to be searched. So for if the condition is : ValueSupplierMeti.Equals(Supplier) AND ValueVAMeti.Equals(VA) AND ValueCugItemMeti.Equals(CugItem).
The first time it worked the element was find with first group of data, the next time he just run forever.
Also I tested the selectors and they work fine, they see all the data.
But I managed to resolve this by putting another if condition to the else branch. If Counter>10 then Articolfound to become 1. so in the do while exit condition will be just “Aricolfound.Equals(0)”. I don’t know why it doesn’t work with two conditions in do while condition field