diff --git a/ElectronJS/EasySpider_en.crx b/ElectronJS/EasySpider_en.crx index 203756b..49dec5c 100644 Binary files a/ElectronJS/EasySpider_en.crx and b/ElectronJS/EasySpider_en.crx differ diff --git a/ElectronJS/EasySpider_zh.crx b/ElectronJS/EasySpider_zh.crx new file mode 100644 index 0000000..0c54978 Binary files /dev/null and b/ElectronJS/EasySpider_zh.crx differ diff --git a/Extension/manifest_v3/src/content-scripts/global.js b/Extension/manifest_v3/src/content-scripts/global.js index 6a0a64e..bc787ac 100644 --- a/Extension/manifest_v3/src/content-scripts/global.js +++ b/Extension/manifest_v3/src/content-scripts/global.js @@ -57,13 +57,13 @@ export function getElementXPaths(element, parentElement = document.body) { paths.push(pre_xpath + `id("${element.id}")`); } if (element.className) { - paths.push(pre_xpath + "//" + element.tagName + "[@class='" + element.className + "']"); + paths.push(pre_xpath + "//" + element.tagName.toLowerCase() + "[@class='" + element.className + "']"); } if (element.name) { - paths.push(pre_xpath + "//" + element.tagName + "[@name='" + element.name + "']"); + paths.push(pre_xpath + "//" + element.tagName.toLowerCase() + "[@name='" + element.name + "']"); } if (element.alt) { - paths.push(pre_xpath + "//" + element.tagName + "[@alt='" + element.alt + "']"); + paths.push(pre_xpath + "//" + element.tagName.toLowerCase() + "[@alt='" + element.alt + "']"); } paths.push(getAbsoluteXPathWithReverseIndex(element)); console.log("ALL PATHS: " + paths);