Questions tagged [earlgrey]

EarlGrey is an iOS UI Automation Test framework by Google.

EarlGrey is a native iOS UI automation test framework that enables you to write clear, concise tests.

With the EarlGrey framework, you have access to enhanced synchronization features. EarlGrey automatically synchronizes with the UI, network requests, and various queues, but still allows you to manually implement customized timings, if needed.

EarlGrey’s synchronization features help ensure that the UI is in a steady state before actions are performed. This greatly increases test stability and makes tests highly repeatable.

EarlGrey works in conjunction with the XCTest framework and integrates with Xcode’s Test Navigator so you can run tests directly from Xcode or the command line (using xcodebuild).

It's available on GitHub here: https://github.com/google/EarlGrey

96 questions
0
votes
3 answers

How to capture/extract text value from a text field in EarlGrey?

I'm using EarlGrey framework and I want to select the whole text and capture it from the textfield or search bar. Is there a way to do it? Thanks in advance!
0
votes
1 answer

Different result on CocoaPod install with identical Podspecs for EarlGrey 2.0 app

I am trying to figure out why I get two different results after running pod install on what should be identical podspec files. The component is called EarlGreyApp, which had a 2.0.0 release this year. The podspec for the 2.0.0 release is here in the…
Richard Guion
  • 427
  • 5
  • 14
0
votes
1 answer

Grey Matcher to get text of multiple elements matches the same grey matcher

I am new to this framework. Could you please help me to get the text of multiple elements matches the same matcher on UI.
Anil Kumar
  • 11
  • 1
0
votes
0 answers

Can we implement EarlGrey on Cucumberish?

I am new on Xcode.we already implement EarlGrey framework as our native automation ios testing framework. Then we want to implement BDD test on our automation IOS. I can run Cucumberish on UI testing, and run EarlGrey on Unit Test. But I'm getting a…
Tri Abror
  • 1
  • 2
0
votes
1 answer

How to capture a text value from an UI label / Textfield using accessibility ID in EarlGrey?

I am using EarlGrey framework but not sure which will be the method used to capture text value from an UI lable/ Textfield when using accessibility ID.
0
votes
1 answer

Issues after EarlGrey installation

After EarlGrey installation, when running the program, it shows error as "dyld: Library not loaded: @rpath/EarlGrey.framework/EarlGrey". But when running the test suite there is no issues encountered.
0
votes
1 answer

UITableView.reload leaves old cells in TableView but hidden

I have a UITableView used to show search results. As I type, I’m calling Tableview.reloadData(). Visually, everything works. As I begin typing, I show up to 5 matches and as I go below that, the list will show fewer items correctly. Here are the how…
markand
  • 2,829
  • 1
  • 16
  • 16
0
votes
1 answer

Detox automation: Modify GREYElementInteraction.m

I've been searching for a solution to help me clean up Detox test automation's output, as currently the output is quite messy.. The biggest culprit of the ugliness seems to exist within GREYElementInteraction.m which is seen within the Detox repo,…
0
votes
0 answers

Support for TouchID test on Detox framework

I want to know if there is a way to test Touch ID with detox. I mean, simulate success and failure and interactions with system alerts binding to the process.
0
votes
1 answer

How to configure earlgrey to not track network calls at all?

Seeing this error when trying to write the tests. How to configure earlgrey to not track network calls at all? Exception Details: Error Trace: [ { "Description": "Failed to execute block because idling resources below are busy.", …
user1165756
  • 375
  • 3
  • 11
0
votes
0 answers

EarlGrey TimeoutException viewDidDisappear

Could someone please help me on what needs to be done in case tests fails with kGREYPendingViewsToDisappear as in below case Code EarlGrey.selectElement(with: grey_keyWindow()).assert(grey_sufficientlyVisible()) Exception UI Test Activity:…
Anand
  • 216
  • 3
  • 10
0
votes
1 answer

kGREYNoMatchingElementException is being raised even if element is present in hierarchy

Code let label_interactable_matcher = grey_allOf([grey_accessibilityLabel("お知らせ"), GREYMatchers.matcherForInteractable()]) let action = GREYActions.actionForTap() EarlGrey.selectElement(with:…
Anand
  • 216
  • 3
  • 10
0
votes
1 answer

Adding UI Tests in Unit testing target

I don't want to pollute/mix the unit test cases(written using QuickSpec) which I have written in UNIT TESTING TARGET with UI tests from EarlGrey. Is there any alternative that I can have EarlGrey tests to be added to UI TESTING TARGET?
Anand
  • 216
  • 3
  • 10
0
votes
0 answers

Could I get data of instances when running test cases by Earlgrey

I am newbie to UITest running by Earlgrey. I know the library which inherit from XCTestCase,so i though weather could get data of UI elements. But i don't find relative api to query info of instance in Earlgrey docs. Is it possible to reach it?…
0
votes
0 answers

Detox test stalls when moving between text inputs iPad

I have followed the instructions at https://github.com/wix/detox, created a few simple tests and run them successfully on an iPhone sim. However, when using an iPad (ios 11.2) it stalls after entering text in the first of two text inputs (for a…