layout = page.addChildElement(Layout.Center()).addChildElement(Layout.Horizontal())
I wondered what the return value of .addChildElement was. I.e., I was
not sure if it were the Document instance or the Center instance.
So I went to the
[Documentation](http://www.webelements.in/Documentation) and tried to
search for `add` but that did not yield this method.
So I drilled down on Document and the docs were there but no return
value was listed for addChildElement().
So I went over to the code and Document inherits from Base which
appears to return the child element in most cases of the
implementation of .addChildElement here. So it looks like
this is nesting a centered layout with a horizontal.
However, the output HTML has 4 divs. So the question becomes how do 4
divs, all nested, get created for 2 Layout calls?
- T