maestro icon indicating copy to clipboard operation
maestro copied to clipboard

[Maestro version 1.30.3] scrollUntilVisible doesn't work

Open mdethlefs opened this issue 2 years ago • 6 comments

Describe the bug In our flow we try to scroll to a text that has round brackets in it. The console says it was executed but it wasn't. When trying to scroll to an element that doesn't have round brackets it works perfectly.

EDIT: It has nothing to do with brackets. Also happens with other texts

- scrollUntilVisible:
    element: 
        text: ABC (X Y Z)
  • Maestro version [e.g. v1.30.3]
  • Framework: Native iOS
  • iOS Simulator - iPhone 14 Pro - iOS 16.4

mdethlefs avatar Jul 24 '23 12:07 mdethlefs

This is due to the fact that text is in fact a regular expression. If you escape the brackets it should work: ABC \(X Y Z\)

fantpmas avatar Jul 25 '23 06:07 fantpmas

This is due to the fact that text is in fact a regular expression. If you escape the brackets it should work: ABC \(X Y Z\)

Sadly escaping doesn't work

mdethlefs avatar Jul 25 '23 08:07 mdethlefs

This also happened to a colleague of mine at a completely different app with a Text that doesn't even include brackets:

- scrollUntilVisible:
    element:
        text: "Unsere Datenschutzbestimmungen"

So it really seems like it is very buggy right now

mdethlefs avatar Jul 27 '23 14:07 mdethlefs

This guy has the same problem: #1275

mdethlefs avatar Jul 27 '23 14:07 mdethlefs

i have same probleme

i use a scrollView and each items display only a , no text i added testID with a specific id, but it don't work. it press anywhere

Capture d’écran 2023-12-14 à 17 14 43

alainib avatar Dec 14 '23 16:12 alainib

This code working for me. My Maestor Version : 1.34.1

- scrollUntilVisible:
    element:
        text: "Your text"
    direction: DOWN
    timeout: 25000
    speed: 40
    visibilityPercentage: 100
    centerElement: true

yakupdurmus avatar Jan 09 '24 12:01 yakupdurmus