in reply to Re^3: Selenium::Firefox: problem finding a child_element
in thread Selenium::Firefox: problem finding a child_element
Thank you once again.
After printing the element (on 2nd problem now), I realized that there was more than one of this type so I retrieved them as an array and went through until I found one with matching text. Then I looked more carefully at the child element and went to the root.... $child = $firefox->find_child_element($matched_parent, "./li/a/span[\@class='option']");
The one I want, "Near Mint" is the first one that should match all that. When I retrieve the text (get_text), it retrieves nothing, but when I click it, it did select it and that is what I am after. I may wish to experiment with find_child_elements to see if there is some data there to ensure a match, but for now; I have working code.
Thanks again. The perlmonks -- A valuable place for all of us!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Selenium::Firefox: problem finding a child_element ( xpathquote )
by Anonymous Monk on Dec 22, 2015 at 21:33 UTC |