适配robotid

This commit is contained in:
halliday 2025-05-06 20:38:37 +08:00
parent 836e95f98d
commit feacb96345
2 changed files with 7 additions and 1 deletions

2
.vscode/launch.json vendored
View File

@ -9,7 +9,7 @@
"type": "chrome",
"request": "launch",
"url": "file://${workspaceFolder}/test/deepseek_html_20250425_ef9a56.html",
"webRoot": "${workspaceFolder}",
"webRoot": "${workspaceFolder}/src//chrome",
"runtimeExecutable": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
"userDataDir": "${workspaceFolder}/.chrome-debug",
"runtimeArgs": [

View File

@ -1300,6 +1300,12 @@ function addAllXpathAttributesBbased(attribute, tagName, element) {
xpathArray.push([1, 'Id is unique:', id])
}
; break;
case 'robotid':
let robotid = item.value
if (robotid != null) {
xpathArray.push([1, 'RobotId is unique:', robotid])
}
; break;
case 'class':
let className = getClassBasedXpath(element, tagName)
if (className != null) {