ver Mar20th
fixed a bug in _create_pywinauto_node
This commit is contained in:
@@ -551,6 +551,8 @@ def _create_pywinauto_node(node: BaseWrapper, depth: int = 0, flag: Optional[str
|
|||||||
)
|
)
|
||||||
if node_role_name.strip() == "":
|
if node_role_name.strip() == "":
|
||||||
node_role_name = "unknown"
|
node_role_name = "unknown"
|
||||||
|
if not node_role_name[0].isalpha():
|
||||||
|
node_role_name = "tag" + node_role_name
|
||||||
|
|
||||||
xml_node = lxml.etree.Element(
|
xml_node = lxml.etree.Element(
|
||||||
node_role_name,
|
node_role_name,
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"type": "launch",
|
"type": "launch",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"command": [
|
"command": [
|
||||||
"google-chrome",
|
"C:\Program Files\Google\Chrome\Application\chrome.exe",
|
||||||
"--remote-debugging-port=1337"
|
"--remote-debugging-port=1337"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user