[Android][1.7.1] Strings containing \n cannot be matched
See original GitHub issueThe problem
Strings that contain \n in them cannot be matched using any method in appium
Environment
- Appium version (or git revision) that exhibits the issue: 1.7.1
- Last Appium version that did not exhibit the issue (if applicable): N/A
- Desktop OS/version used to run Appium: macOS Sierra 10.12.6
- Node.js version (unless using Appium.app|exe): 8.5.0
- Mobile platform/version under test: Android
- Real device or emulator/simulator: Real Device
- Appium CLI or Appium.app|exe: CLI
Details
In the Android app there are strings defined like so: <string>word1\nword2</string>
. When trying to lookup a TextView containing that string I must do a partial match, only searching for word1
or word2
, as trying to search for word1\nword2
does not match the TextView.
Link to Appium logs
The string I am searching in the app contains sensitive information, so I can’t post a log. If you want I can throw together a quick Demo App that reproduces the bug and post the logs from that.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
lame-android1/configure at master · fengshenzhu/lame-android1 ...
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ... Sed expression to map a string onto a valid...
Read more >Visible to Public - Issue Tracker - Google
My problem is that I'm developing on Wear, which has an artificial limitation against APK installation; my issue with content: uris was a...
Read more >libs/configure - platform/external/bluez - Git at Google
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 ... Sed expression to map a string onto a valid...
Read more >Large-Scale Analysis of Remote Code Injection Attacks in ...
After matching the regular expression, if the result is the same as our initial test string, we consider it to be a file...
Read more >juniocezar – Intelligent dvfs
We could set those frequencies in two different ways: Setting the CPU governor to performance (which automatically sets the clock speed to 2.0/1.5GHz,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll look into it when I have time! With any luck you’ll see a pull request from me soon.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.