Questions tagged [earlgrey]
EarlGrey is an iOS UI Automation Test framework by Google.
earlgrey
96
questions
0
votes
0
answers
15
views
How to assert number present in accessibilityValue in Earlgrey framework using swift
EarlGrey.selectElement(with: grey_accessibilityValue("3 items")).assert(grey_sufficientlyVisible())
in this grey_accessibilityValue '3' is present and i want to fetch that number OR i want ...
2
votes
2
answers
308
views
Xcode got "Image Not Found" while running the test
I am trying to add UI Tests to my project using EarlGrey 2.0 by following this steps to install the framework : https://www.youtube.com/watch?v=KQaA11qVQn0 (using Cocoapods). It build successfully but ...
0
votes
1
answer
152
views
Can EarlGrey be used as test tool only having ipa file?
Hello Stack Overflow community,
I'm planning to develop a UI test automation for an iOS application.
The problem is that I don't have access to the source code but only the finished ipa file of the ...
0
votes
1
answer
658
views
EarlGrey - how to find any table view cell with a certain text inside
I have a custom UITableViewCell with a label inside. Both the cell and the label have an accessibility identifier, and I am trying to assert that in the UI there is at least one cell that contains a ...
1
vote
0
answers
303
views
EarlGrey 2 - White Box Setup Simulator Crash on test run
I'm having trouble setting up EarlGrey2 for white box testing.
I can setup blackbox fine, but when my bundle is attached to my test target, whenever a test is run the simulator crashes.
Xcode 11.4....
1
vote
0
answers
184
views
Assert the label in a UITableViewCell with EarlGrey 2
Trying to assert that the first cell in the table view contains the string "first":
EarlGrey.selectElement(with: grey_kindOfClass(UITableViewCell.self))
.atIndex(0)
.assert(grey_text("First"))
...
0
votes
2
answers
586
views
Tapping system alert using EarlGrey 2.0 & Swift
I'm trying to create UI tests for my app using EarlGrey 2.0 framework while using Swift language for those tests. However, I can't find a solution for tapping on a system alert, although EG 2.0 should ...
1
vote
0
answers
251
views
Errors running UI Test after EarlGrey Installation
I'm currently unable to build my UITests after completing the EarlGrey 2 installation steps.
I get the following:
/Users/morgan/Documents/WineSpectator/git/WineRatingsPlus/EarlGrey/CommonLib/...
-2
votes
1
answer
345
views
Force Alamofire to do everything on main thread?
Is there a way to force Alamofire to do all of its work on the main thread? This is for a test scenario where I need the main thread to not continue execution until the network calls have completed ...
0
votes
3
answers
459
views
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
249
views
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. ...
0
votes
1
answer
225
views
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.
1
vote
0
answers
429
views
Unable to scroll using EarlGrey scroll actions
I am unable to scroll on the initial state of a tableview. When reaching the page with a long table, I attempt to scroll down using scrollInDirection() but I receive an error (cannot scroll, ...
0
votes
0
answers
275
views
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, ...
0
votes
1
answer
519
views
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.