Update ScreenXmlParser to use startsWith for handling multi-line "Идентифицирован" content-desc
This commit is contained in:
parent
0480dba400
commit
277402f77e
@ -246,7 +246,9 @@ bool ScreenXmlParser::isSideMenu() {
|
||||
if (node.contentDesc == QString::fromUtf8("Выход")) {
|
||||
hasVyhod = true;
|
||||
}
|
||||
if (node.contentDesc == QString::fromUtf8("Идентифицирован")) {
|
||||
// На реальном экране content-desc = "Идентифицирован\nУспешно",
|
||||
// поэтому строгое равенство не проходит — используем startsWith.
|
||||
if (node.contentDesc.startsWith(QString::fromUtf8("Идентифицирован"))) {
|
||||
hasIdentified = true;
|
||||
}
|
||||
if (hasVyhod && hasIdentified) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user