@ Override public String [ ] getChildNodesValuesText ( ) throws WidgetException { WebElement we = new Element ( getByLocator ( ) ) . getWebElement ( ) ; List < WebElement > childNodes = we . findElements ( By . xpath ( "./*" ) ) ; String [ ] childText = new String [ childNodes . size ( ) ] ; int i = 0 ; for ( WebElement element : childNodes ) { childText [ i ] = element . getText ( ) ; i ++ ; } return childText ; }
Returns the text contained in the child nodes of the current element