If the character string of an element that is tested on iOS contains a line feed, the line feed character may be confused with a single-byte space character due to limitations of Appium, which is the framework on which MagicPod is based. In principle, MagicPod will treat the line feeds as line feeds and spaces as spaces. However, there are some exceptions.
When using “xpath” to specify elements
In some cases where the string contains a line feed, it is possible to search for elements and check values even if spaces are used.
Line feeds within elements |
Searching for locators containing line feeds |
Use strings containing line feeds both for searching and checking values |
Searching with locators containing spaces |
Use strings containing spaces both for searching and checking values |
Storing elements values as variables |
Yes |
Success |
Success |
Success |
Success |
Store as “Magic\nPod” |
No |
Fail |
Fail |
Success |
Success |
Store as “Magic Pod” |