question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android][1.7.1] Strings containing \n cannot be matched

See original GitHub issue

The 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:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
welnanickcommented, Oct 16, 2017

I’ll look into it when I have time! With any luck you’ll see a pull request from me soon.

0reactions
lock[bot]commented, Jan 7, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found