Hi,
I’m wondering why my TC is failing only on Chrome, but not in other browsers.
int helper = 1
boolean test = false
while (test == false) {
if (WebUI.verifyElementVisibleInViewport(findTestObject('Variable product page/randomItem', [('randID') : helper]), 1, FailureHandling.OPTIONAL)) {
helper += 1
} else {
test = true
helper -= 1
}
}
Goal is to check how many different certain elements there is on that web page by going them all through and going to else statement when reached the element that is not visible (or present, tried that too)
On firefox that works just fine, but everytime on Chrome TC fails. It goes through the TC, but in the end it marks it failed.