Why did you not try the code above? If I do
li_elements = children(dv[1])
li_vals = [ getattr(li, "value") for li in li_elements ]
I get exactly what you asked for and I only had to rename the variable containing the parent.
Why did you not try the code above? If I do
li_elements = children(dv[1])
li_vals = [ getattr(li, "value") for li in li_elements ]
I get exactly what you asked for and I only had to rename the variable containing the parent.