← Back to team overview

sikuli-driver team mailing list archive

[Bug 1828169] [NEW] [1.1.4] Region.text(): adds new-line at the end of the recognized string

 

Public bug reported:

My code:
    a = find("1557282546849.png").text()  
    b = "64"
    print a
    print "--"
    print b
    if a == b:
        print 'pass'
    else:
        print 'diff'


Result:
64


--
64
diff

How to do with no empty string?

** Affects: sikuli
     Importance: High
     Assignee: RaiMan (raimund-hocke)
         Status: In Progress

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.4

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1828169

Title:
  [1.1.4] Region.text(): adds new-line at the end of the recognized
  string

Status in Sikuli:
  In Progress

Bug description:
  My code:
      a = find("1557282546849.png").text()  
      b = "64"
      print a
      print "--"
      print b
      if a == b:
          print 'pass'
      else:
          print 'diff'

  
  Result:
  64

  
  --
  64
  diff

  How to do with no empty string?

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1828169/+subscriptions


Follow ups