cheezy/page-object — Issue #58: Problem with list elements when having an unordered list inside another
Author: emilioicai
Created: 2012-02-06 16:21:21+00:00
State: open

When trying to go through all the list items inside an unordered list I noticed that Unordered List Object is not recognizing if the li elements belong to that ul or to another ul inside.

i.e:

A

B

C

A and B are childs of the first ul but C should not be. Currently the unordered list Object is including C in the list of the children for the first ul.

I think the problem may be related to the way the childs are retrieved in selenium:

def child_xpath
".//child::li"
end

Is this something which can be fixed in the page Object itself?

Thanks