InterviewSolution
| 1. |
What Is Xpaths? |
|
Answer» XPaths are frowned upon in SAHI. XPaths are normally used to traverse data represented as XML. HTML structures are not REALLY data but UI representations and are PRONE to modification. XPaths starting from the root node are almost never useful. One has to then modify it using a REGULAR expression. When a script fails, the first suspect is normally the expression and not the AUT. This WASTES a good amount of tester’s time. There are also differences in XPath implementations which add to the tester’s troubles. XPaths are frowned upon in Sahi. XPaths are normally used to traverse data represented as XML. HTML structures are not really data but UI representations and are prone to modification. XPaths starting from the root node are almost never useful. One has to then modify it using a regular expression. When a script fails, the first suspect is normally the expression and not the AUT. This wastes a good amount of tester’s time. There are also differences in XPath implementations which add to the tester’s troubles. |
|