For example one can get WebElementObject
like so:
el = WebExecute[{"OpenPage" -> "mathematica.stackexchange.com",
"LocateElements" -> "XPath" -> "/html/body/header[2]/div/a"}][[2,1]]
Right now it seems the only way to extract element attributes (e.g. href for <a>
tag) with WebExecute
framework, is to write some JavascriptExecute
query. Is there a more straight forward solution?