From: Ahmed A. <asa...@ya...> - 2016-03-09 10:15:59
|
Cool! >> why the implementation of getByXPath is demanding I use the wildcards for the searches instead of being able to specify the elements. It doesn't demand, but it is easier. You can also use "div/span[last()-1]" or "/html/body/span/div/input", etc. Keep in mind, you always need to know the exact HTML (generated by HtmlUnit or by real browser, which may differ), to have relevant XPath expressions. Ahmed From: Stephen Paulsen <st...@lo...> To: htm...@li...; Ahmed Ashour <asa...@ya...> Sent: Tuesday, March 8, 2016 8:19 PM Subject: Re: [Htmlunit-user] Nested getByXPath Has Me All Confused AT LONG LAST... This works: Ahmed, I question why the implementation of getByXPath is demanding I use the wildcards for the searches instead of being able to specify the elements. But, for now, as long as it works, I'm going to run with it. Thank you all for the input and suggestions. |