I need to test that items sorted by price:
List elements2 = driver.findElements(By.className("price")); for (W