Commit 07b7fd08 authored by Thomas Briner's avatar Thomas Briner
Browse files

add page reload to handle slow vm system under test

parent 6daaa044
......@@ -42,6 +42,7 @@ public class Page implements Constants {
}
public int getNofObjectsInCart() {
driver.get(driver.getCurrentUrl());
List<WebElement> badge = driver.findElements(cartBadgeLocator);
if (badge.size() > 0) {
return Integer.parseInt(badge.get(0).getText());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment