适配robotid
This commit is contained in:
parent
836e95f98d
commit
feacb96345
|
@ -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": [
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue