Commit 44a50fc
Improve mobile element highlighting and rectangle accuracy (#4480)
Enhances reliability of UI element highlighting and rectangle drawing, especially for Android automation. Ensures up-to-date element details are used, validates and refreshes element bounds before drawing overlays, and preserves correct element identity for web highlights. Adds error handling and makes driver highlight requests more robust, addressing issues with invalid rectangles and incorrect element selection in live spy and mobile scenarios.
Co-authored-by: tanushah <tanushah@amdocs.com>1 parent a9a2987 commit 44a50fc
4 files changed
Lines changed: 77 additions & 28 deletions
File tree
- Ginger
- GingerCoreNET/Drivers/CoreDrivers/Mobile/Appium
- Ginger
- ApplicationModelsLib/POMModels
- AutomatePageLib/AddActionMenu
- LiveSpy
- WindowExplorer/Common
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
279 | 284 | | |
280 | 285 | | |
281 | 286 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
| |||
Lines changed: 43 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
1441 | 1442 | | |
1442 | 1443 | | |
1443 | 1444 | | |
1444 | | - | |
| 1445 | + | |
1445 | 1446 | | |
1446 | 1447 | | |
1447 | 1448 | | |
| |||
1482 | 1483 | | |
1483 | 1484 | | |
1484 | 1485 | | |
1485 | | - | |
| 1486 | + | |
1486 | 1487 | | |
1487 | 1488 | | |
1488 | 1489 | | |
1489 | 1490 | | |
1490 | 1491 | | |
1491 | 1492 | | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
1492 | 1513 | | |
1493 | 1514 | | |
1494 | 1515 | | |
| |||
1597 | 1618 | | |
1598 | 1619 | | |
1599 | 1620 | | |
1600 | | - | |
1601 | | - | |
| 1621 | + | |
1602 | 1622 | | |
1603 | | - | |
1604 | | - | |
| 1623 | + | |
| 1624 | + | |
1605 | 1625 | | |
1606 | | - | |
| 1626 | + | |
| 1627 | + | |
1607 | 1628 | | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
1611 | | - | |
1612 | | - | |
| 1629 | + | |
1613 | 1630 | | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
1617 | 1645 | | |
1618 | | - | |
1619 | | - | |
1620 | | - | |
1621 | | - | |
1622 | 1646 | | |
1623 | 1647 | | |
1624 | 1648 | | |
| |||
Lines changed: 21 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1794 | 1794 | | |
1795 | 1795 | | |
1796 | 1796 | | |
1797 | | - | |
1798 | | - | |
1799 | | - | |
| 1797 | + | |
| 1798 | + | |
1800 | 1799 | | |
1801 | 1800 | | |
1802 | 1801 | | |
1803 | 1802 | | |
1804 | 1803 | | |
1805 | | - | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
1806 | 1807 | | |
1807 | 1808 | | |
1808 | 1809 | | |
1809 | 1810 | | |
1810 | | - | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
1811 | 1815 | | |
1812 | 1816 | | |
1813 | 1817 | | |
| |||
2932 | 2936 | | |
2933 | 2937 | | |
2934 | 2938 | | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
2935 | 2949 | | |
2936 | 2950 | | |
2937 | 2951 | | |
| |||
3088 | 3102 | | |
3089 | 3103 | | |
3090 | 3104 | | |
3091 | | - | |
3092 | 3105 | | |
3093 | 3106 | | |
3094 | 3107 | | |
| |||
3398 | 3411 | | |
3399 | 3412 | | |
3400 | 3413 | | |
| 3414 | + | |
| 3415 | + | |
3401 | 3416 | | |
3402 | 3417 | | |
3403 | 3418 | | |
| |||
0 commit comments