{"id":6844,"date":"2016-08-31T01:35:41","date_gmt":"2016-08-30T23:35:41","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=6844"},"modified":"2016-08-31T01:35:41","modified_gmt":"2016-08-30T23:35:41","slug":"using-xpath-expressions-in-javascript-within-a-web-browser","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2016\/08\/31\/using-xpath-expressions-in-javascript-within-a-web-browser\/","title":{"rendered":"using XPath expressions in JavaScript within a web browser"},"content":{"rendered":"<ul>\n<li>O_Reilly_Media&#8211;JavaScript_Web_Applications : chapter 9,\u00a0Testing and Debugging :\u00a0The Console :\u00a0Console Helpers<\/li>\n<li>Pragmatic_Bookshelf&#8211;Pragmatic_Guide_to_JavaScript : Take 4 :\u00a0Obtaining References to DOM\u00a0Elements :\u00a0<code>document.querySelectorAll('selectors')<\/code><\/li>\n<li><a href=\"http:\/\/js-xpath.sourceforge.net\">http:\/\/js-xpath.sourceforge.net<\/a> : explains \u2026<\/li>\n<li><a style=\"line-height: 1.75\" href=\"https:\/\/www.w3.org\/TR\/2004\/NOTE-DOM-Level-3-XPath-20040226\/\">https:\/\/www.w3.org\/TR\/2004\/NOTE-DOM-Level-3-XPath-20040226\/<\/a><\/li>\n<li><a href=\"https:\/\/www.w3.org\/TR\/2004\/NOTE-DOM-Level-3-XPath-20040226\/ecma-script-binding.html\">https:\/\/www.w3.org\/TR\/2004\/NOTE-DOM-Level-3-XPath-20040226\/ecma-script-binding.html<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/XPath\">https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/XPath<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Introduction_to_using_XPath_in_JavaScript\">https:\/\/developer.mozilla.org\/en-US\/docs\/Introduction_to_using_XPath_in_JavaScript<\/a>\u00a0!!!<\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/XPath\/Snippets\">https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/XPath\/Snippets<\/a><\/li>\n<li><a href=\"https:\/\/www.nczonline.net\/blog\/2009\/03\/17\/xpath-in-javascript-part-1\/\">https:\/\/www.nczonline.net\/blog\/2009\/03\/17\/xpath-in-javascript-part-1\/<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/google\/wicked-good-xpath\">https:\/\/github.com\/google\/wicked-good-xpath<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/10596417\/is-there-a-way-to-get-element-by-xpath-using-javascript-in-selenium-webdriver\">http:\/\/stackoverflow.com\/questions\/10596417\/is-there-a-way-to-get-element-by-xpath-using-javascript-in-selenium-webdriver<\/a><\/li>\n<li><a href=\"https:\/\/www.w3.org\/TR\/DOM-Level-3-XPath\/xpath.html\">https:\/\/www.w3.org\/TR\/DOM-Level-3-XPath\/xpath.html<\/a><\/li>\n<\/ul>\n<p>Firefox:<\/p>\n<ul>\n<li><a href=\"http:\/\/toolsqa.com\/selenium-webdriver\/xpath-firebug-firepath\/\">http:\/\/toolsqa.com\/selenium-webdriver\/xpath-firebug-firepath\/<\/a>\u00a0\u2013 &#8220;XPath, FireBug &amp; FirePath&#8221; \u2013 quite a nice environment to experiment with XPath expressions<\/li>\n<\/ul>\n<p>Microsoft:<\/p>\n<ul>\n<li><a href=\"https:\/\/blogs.windows.com\/msedgedev\/\">https:\/\/blogs.windows.com\/msedgedev\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>O_Reilly_Media&#8211;JavaScript_Web_Applications : chapter 9,\u00a0Testing and Debugging :\u00a0The Console :\u00a0Console Helpers Pragmatic_Bookshelf&#8211;Pragmatic_Guide_to_JavaScript : Take 4 :\u00a0Obtaining References to DOM\u00a0Elements :\u00a0document.querySelectorAll(&#8216;selectors&#8217;) http:\/\/js-xpath.sourceforge.net : explains \u2026 https:\/\/www.w3.org\/TR\/2004\/NOTE-DOM-Level-3-XPath-20040226\/ https:\/\/www.w3.org\/TR\/2004\/NOTE-DOM-Level-3-XPath-20040226\/ecma-script-binding.html https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/XPath https:\/\/developer.mozilla.org\/en-US\/docs\/Introduction_to_using_XPath_in_JavaScript\u00a0!!! https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/XPath\/Snippets https:\/\/www.nczonline.net\/blog\/2009\/03\/17\/xpath-in-javascript-part-1\/ https:\/\/github.com\/google\/wicked-good-xpath http:\/\/stackoverflow.com\/questions\/10596417\/is-there-a-way-to-get-element-by-xpath-using-javascript-in-selenium-webdriver https:\/\/www.w3.org\/TR\/DOM-Level-3-XPath\/xpath.html Firefox: http:\/\/toolsqa.com\/selenium-webdriver\/xpath-firebug-firepath\/\u00a0\u2013 &#8220;XPath, FireBug &amp; FirePath&#8221; \u2013 quite a nice environment to experiment with XPath expressions Microsoft: https:\/\/blogs.windows.com\/msedgedev\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-6844","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1Mo","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6844","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=6844"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6844\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=6844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=6844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=6844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}