Open Valeska84 opened 5 years ago
I'm trying to create a custom multifield for a project using AEM 6.3 and locators in the bb version I'm using (Bobcat 1.5.0, core, touch-ui and junit) do not match.
On multifield class, the following list is always empty:
**@FindBy(css = ".coral-Multifield-item") private List<MultifieldItem> items;**
Not sure if I'm not replacing the locator for the correct one, and also not getting how do you cast from WebElement to MultifieldItem.
The error Im getting is Caught exception: null java.util.NoSuchElementException in the following line cfg.stream().forEach(entry -> itemsIterator.next().setValue(entry)); (line 65: https://github.com/Cognifide/bobcat/blob/5ea116baa4b9901003959f9047ba574c5ab67f65/bb-aem-touch-ui/src/main/java/com/cognifide/qa/bb/aem/touch/pageobjects/touchui/dialogfields/Multifield.java)
I'm trying to create a custom multifield for a project using AEM 6.3 and locators in the bb version I'm using (Bobcat 1.5.0, core, touch-ui and junit) do not match.
On multifield class, the following list is always empty:
Not sure if I'm not replacing the locator for the correct one, and also not getting how do you cast from WebElement to MultifieldItem.
The error Im getting is Caught exception: null java.util.NoSuchElementException in the following line cfg.stream().forEach(entry -> itemsIterator.next().setValue(entry)); (line 65: https://github.com/Cognifide/bobcat/blob/5ea116baa4b9901003959f9047ba574c5ab67f65/bb-aem-touch-ui/src/main/java/com/cognifide/qa/bb/aem/touch/pageobjects/touchui/dialogfields/Multifield.java)