Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View is not scrollable at given start point #3918

Closed
piscespieces opened this issue Feb 8, 2023 · 7 comments
Closed

View is not scrollable at given start point #3918

piscespieces opened this issue Feb 8, 2023 · 7 comments

Comments

@piscespieces
Copy link

piscespieces commented Feb 8, 2023

Description

Not sure how to interpret this error and to overcome it

    Test Failed: View is not scrollable at the given start point. Start point (view coordinates): {195, 1221.7}
    - Full error: View is not visible around point.
    - view point: {195, 1221.7}
    - visible bounds: {{0, 0}, {390, 504}}
    - view bounds: {{0, 0}, {390, 1286}}
    ---
    Error: Error Domain=DetoxErrorDomain Code=0 "View “<RCTCustomScrollView: 0x154161200>” is not visible: View does not pass visibility percent threshold (100)" UserInfo={NSLocalizedDescription=View “<RCTCustomScrollView: 0x154161200>” is not visible: View does not pass visibility percent threshold (100)}

I have a ScrollView and I'm trying to scroll all the way down to the bottom

await element(by.id('rewards-scrollview')).scroll(100, 'down');

but not sure how to interpret the error to tweak my approach to scrolling.

EDIT:

Also tried
await element(by.id('rewards-scrollview')).scrollTo('top');
await element(by.id('rewards-scrollview')).swipe('up');

and did work, but changed the direction to 'bottom'—and down for the swipe— and it keeps breaking with the error above. That does not make much sense: I'm able to scroll/swipe up, but not in other direction (?)

Your environment

Detox version: 20.1.2
React Native version: 0.68.1
Node version: 16
Device model: iphone 14
OS: macos monterey
Test-runner (select one): jest

@stale
Copy link

stale bot commented Mar 14, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this repository, read this discussion.

@stale stale bot added the 🏚 stale label Mar 14, 2023
@MuckT
Copy link

MuckT commented Mar 18, 2023

@piscespieces I ran into something similar and I needed to pass startPositionY param to scroll.

// Instead of this
await element(by.id('rewards-scrollview')).scroll(100, 'down')

// Try this
await element(by.id('rewards-scrollview')).scroll(100, 'down', NaN, 0.8)

@stale stale bot removed the 🏚 stale label Mar 18, 2023
@sindhu499
Copy link

await element(by.type("RCTCustomScrollView")).scroll(100, 'down'); - When I use this it throws Unable to scroll down in "<RCTCustomScrollView: 0x7fa7533f6600>" error

@stale
Copy link

stale bot commented May 8, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this repository, read this discussion.

@stale stale bot added 🏚 stale and removed 🏚 stale labels May 8, 2023
@stale
Copy link

stale bot commented Jun 10, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.

Thank you for your contributions!

For more information on bots in this repository, read this discussion.

@stale stale bot added the 🏚 stale label Jun 10, 2023
@stale
Copy link

stale bot commented Jun 17, 2023

The issue has been closed for inactivity.

@stale stale bot closed this as completed Jun 17, 2023
@tamaniniandre
Copy link

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants