Comments (12)
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.
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.
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.
OK,think you
from earlgrey.
hello,
why only start no end or path?
I need to draw swiping right and down path , how do I code?
from earlgrey.
I perfom a gesture to unLock occur a error:
from earlgrey.
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.
thanks ,and why xStartPoint and yStartPoint can not less than 0.1?
from earlgrey.
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.
Where does it say that it must be >= 0.1?
from earlgrey.
It has to be greater than 0 and less than one - GREYActions.h
from earlgrey.
@thomas0326, is your problem resolved? Feel free to re-open this question if needed.
from earlgrey.
Related Issues (20)
- [EarlGrey2] AppFramework does not build - 'GREYUILibUtils.h' file not found HOT 2
- Library not loaded: @rpath/AppFramework.framework/AppFramework
- [EarlGrey1] "Failed to load the test bundle" error in Xcode 14
- Failed to load module 'Helper Bundle' after running some test cases in EarlGrey2
- Blacklist UICompatibilityInputViewController from being tracked above iOS 13. HOT 1
- NSInvalidArgumentException unrecognized selector exception EarlGrey2
- How to integrate UILib (libUILib.a) into UITest/Bundle
- [EarlGrey2] Cocoapods support for MacOS Bundle (White Box Testing)
- Default example test crashes
- [EarlGrey2] Host background port not assigned. Application under test may have failed to launch with latest Cocoapods HOT 1
- Apple Watch Support HOT 2
- SwiftUI ViewRepresentable and UIViewRepresentable is not correctly placed in element hierarchy. HOT 2
- [SwiftUI] Anyway to convert EDOObject to SwiftUI View? HOT 1
- Videos/tutorials for new starters
- EarlGrey build failure
- Apple Vision Pro support
- Cannot find 'EDOHostPort' in scope HOT 2
- Earlgrey Cocoapods v2.2.2 crashes on XCode 15 HOT 3
- Version 2.2.2 fails to build in Xcode 15
- Instability testing with Xcode 15 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from earlgrey.