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.

ios page with scroll view make find element time much more

See original GitHub issue

Hi, master, I have 3 problems for use appium, please help me.

  1. Page with animation will slow down the find element action. Even use waitForIdleTimeout=0, this is obviously in Android. Is any other action to reduce this.
  2. I wan’t to confirm one thing first. I find android only has two types of find element response: exist or not, but ios has 3 types: exist, not exist, and exist but not display. So I guess the android only snapshot the element on current screen, but ios snapshot the element out of current screen. So I want to known if we can use the location field in the response of find element in ios platform, because it can speed up the find action for one element.
  3. Base on problem 2, I find when one page has a scroll view for paging, the ios will auto scroll the page when snapshot the page source. This will lead to 3 problems, 1. cost much more time (in our case 0.5s->7s and ) to find the element. 2. this will leave a white screen on the page. 3. some action like click will loss as the snapshot time is much more. This problems make much trouble for us. If we have options to resolve it? such as we only want get the element on current screen but not the current page.

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Dan-Maorcommented, Aug 11, 2022

@kangqf I’m not sure that the link is related, I believe that the issue in that thread is related to arbitrary cells being loaded unnecessarily, whether in our case all of the cells are loaded during an accessibility snapshot request by the XCTest framework.

In any case given the behavior of Apple’s testing framework relating to tables I’m not sure there’s anything that can be done from the Appium side of things regarding this matter.

0reactions
mykola-mokhnachcommented, Aug 11, 2022

@Dan-Maor Thanks for the detailed investigation

Closed as third party issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UIScrollView: How to scroll one page at a time
I have make a scroll view that can scroll horizontally. The problem I am facing is that I want user only scroll one...
Read more >
Scroll views - Human Interface Guidelines
A scroll view lets people view content that's larger than the view's boundaries by moving the content horizontally or vertically.
Read more >
How ScrollView lets us work with scrolling data
When we place views inside scroll views, they automatically figure out the size of that content so users can scroll from one edge...
Read more >
How to Use Scroll Views in Xcode in 5 Minutes or Less
Current to July 23, 2021Scrolling in an iOS application is a super helpful tool for users to navigate a lot of information, ...
Read more >
How To Add ScrollView in Swift and iOS - 2020 - YouTube
UIScrollView's are an essential user interface element for beginners ... make yourself more marketable, change industries to get a different ...
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