首页 > 其他分享 >how to run XPath in Chrome console All In One

how to run XPath in Chrome console All In One

时间:2022-11-25 01:11:39浏览次数:67  
标签:XPath console Chrome html how meta

how to run XPath in Chrome console All In One

solutions

  1. $x() function
$x;
// ƒ $x() { [native code] }
$x(`/html/head/meta`);

// (28) [meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta, meta]

image

  1. 快捷键 Command + F

在 Elements Panel 搜索

image

  1. $$() function ❌
$$;
// ƒ $$() { [native code] }
$$(`/html/head/meta`);
// Uncaught DOMException: Failed to execute '$$' on 'CommandLineAPI': '/html/head/meta' is not a valid selector.

image

refs

https://stackoverflow.com/questions/22571267/how-to-verify-an-xpath-expression-in-chrome-developers-tool-or-firefoxs-firebug

https://cuiqingcai.com/202231.html



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载

标签:XPath,console,Chrome,html,how,meta
From: https://www.cnblogs.com/xgqfrms/p/16923975.html

相关文章