Git Product home page Git Product logo

Comments (12)

tirodkar avatar tirodkar commented on April 27, 2024

Hey, for clarification - do you mean a different app process or so? EarlGrey currently cannot perform actions in other processes. Could you provide us details of what the "other's page" means?

from earlgrey.

S-Freedom avatar S-Freedom commented on April 27, 2024

I'm sorry.
only I want to find other interface elements to perform action
I want to know can i find out other element ?

from earlgrey.

tirodkar avatar tirodkar commented on April 27, 2024

I see. You can inspect the hierarchy and find other elements by their characteristics like accessibility label, id etc. To do so, put a breakpoint in the test and do:

[GREYElementHierarchy hierarchyStringForElement:(UIWindow*)[[[UIApplication sharedApplication] delegate]window]];

Tell us if that works.

from earlgrey.

S-Freedom avatar S-Freedom commented on April 27, 2024

OK,think you

from earlgrey.

S-Freedom avatar S-Freedom commented on April 27, 2024

hello,
image why only start no end or path?

I need to draw swiping right and down path , how do I code?

from earlgrey.

S-Freedom avatar S-Freedom commented on April 27, 2024

I perfom a gesture to unLock occur a error:
image

from earlgrey.

tirodkar avatar tirodkar commented on April 27, 2024

You can use something similar to the following for performing scrolls - For a right scroll,

[[EarlGrey selectElementWithMatcher:grey_accessibilityLabel(@"Label")]
      performAction:grey_scrollInDirection(kGREYDirectionRight, 100)];
[[EarlGrey selectElementWithMatcher:grey_accessibilityLabel(@"Label")]
      performAction:grey_scrollInDirection(kGREYDirectionDown, 100)];

In case you are trying to scroll to find a particular element, you can also use usingSearchAction:onElementWithMatcher.

from earlgrey.

S-Freedom avatar S-Freedom commented on April 27, 2024

thanks ,and why xStartPoint and yStartPoint can not less than 0.1?

image

from earlgrey.

tirodkar avatar tirodkar commented on April 27, 2024

We've kept that as a minimum amount so as to ensure that the scroll always took place at a starting point away from the edge.

from earlgrey.

khandpur avatar khandpur commented on April 27, 2024

Where does it say that it must be >= 0.1?

GREYActions.h

from earlgrey.

tirodkar avatar tirodkar commented on April 27, 2024

It has to be greater than 0 and less than one - GREYActions.h

from earlgrey.

tirodkar avatar tirodkar commented on April 27, 2024

@thomas0326, is your problem resolved? Feel free to re-open this question if needed.

from earlgrey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.