-
Notifications
You must be signed in to change notification settings - Fork 23
Description
I need to figure out the label of a component when it's wrapped within a FormLayoutElement
/FormItemElement
. For that, I need to examine the component's parent. This function seems to do the trick:
public static TestBenchElement getParent(TestBenchElement element) {
final TestBenchElement parent = (TestBenchElement)
element.getCommandExecutor().executeScript("return arguments[0].parentNode;", element.getWrappedElement());
return parent;
}
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done / Pending Release