适配robotid
This commit is contained in:
parent
836e95f98d
commit
feacb96345
|
@ -9,7 +9,7 @@
|
||||||
"type": "chrome",
|
"type": "chrome",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"url": "file://${workspaceFolder}/test/deepseek_html_20250425_ef9a56.html",
|
"url": "file://${workspaceFolder}/test/deepseek_html_20250425_ef9a56.html",
|
||||||
"webRoot": "${workspaceFolder}",
|
"webRoot": "${workspaceFolder}/src//chrome",
|
||||||
"runtimeExecutable": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
|
"runtimeExecutable": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
|
||||||
"userDataDir": "${workspaceFolder}/.chrome-debug",
|
"userDataDir": "${workspaceFolder}/.chrome-debug",
|
||||||
"runtimeArgs": [
|
"runtimeArgs": [
|
||||||
|
|
|
@ -1300,6 +1300,12 @@ function addAllXpathAttributesBbased(attribute, tagName, element) {
|
||||||
xpathArray.push([1, 'Id is unique:', id])
|
xpathArray.push([1, 'Id is unique:', id])
|
||||||
}
|
}
|
||||||
; break;
|
; break;
|
||||||
|
case 'robotid':
|
||||||
|
let robotid = item.value
|
||||||
|
if (robotid != null) {
|
||||||
|
xpathArray.push([1, 'RobotId is unique:', robotid])
|
||||||
|
}
|
||||||
|
; break;
|
||||||
case 'class':
|
case 'class':
|
||||||
let className = getClassBasedXpath(element, tagName)
|
let className = getClassBasedXpath(element, tagName)
|
||||||
if (className != null) {
|
if (className != null) {
|
||||||
|
|
Loading…
Reference in New Issue