google / google/EarlGrey

Cannot pull to refresh (how to?)

Open
#700 7 comments 1 reaction 0 assignees View on GitHub
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

I tried to add a step that will pull to refresh my page. I tried so far:

```
EarlGrey
.selectElement(with: elementID)
.perform(grey_swipeFastInDirectionWithStartPoint(.down, 0.5, 0.8))
EarlGrey
.selectElement(with: elementID)
.perform(grey_swipeSlowInDirectionWithStartPoint(GREYDirection.down, 0.5, 0.8))
EarlGrey
.selectElement(with: elementID)
.perform(grey_scrollInDirectionWithStartPoint(GREYDirection.down, 0.5, 0.5, 0.8))
```
The elementId is the collectionView Id. My best score was to pull to 60% but then it's release again when I used slow swipe. Is there a method like `grey_pull_to_refresh`?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.