in reply to Selenium::Firefox: problem finding a child_element

Hello samberman, and welcome to the Monastery!

When I open the given url (in Google Chrome) and select “View page source,” a search finds no elements beginning <div class="pageView">. So, a suggestion: Have you tried printing the value of $parent before the call to initialize $child, to verify that the parent “pageView” node has actually been found?

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^2: Selenium::Firefox: problem finding a child_element
by samberman (Novice) on Dec 22, 2015 at 15:31 UTC

    Thank you for your response.

    If you "inspectElement" rather than view the page source, you'll see what I saw and it is in the $content variable. Ken, above actually had the answer to the query -- please check above, but if you look above, you'll see another small query.

    Also, how does one print the value of the element that I have in the variable, $parent?

    Thanks again -- Your time and information is truly appreciated.