I already can got all these elements with script below:
List<WebElement> containers=CustomKeywords.'com.myproject.utils.WebUIUtil.findElementByXpath'("//*[@class='section-container section']")
for(WebElement container : containers){
//I want to execute javascript here to add css property for first container only
//using WebUI.executeJavaScript
//is there any suggestion?
//
break
}
I am honor bound to tell you (and anyone reading this in the future) I do NOT recommend this solution. While it works, it is considered bad practice to modify the AUT like this.