Get code down
git clone git@github.com:mobile-dev-inc/maestro.git
cd maestro
Maestro is a Kotlin/java/gradle project and you might need to install some of these if you don't have them already
if java -version doesn't say 11
public static String findChildElementCDByIndex(int index) { | |
BySelector messagesListSelector = By.desc("ListView Recycler"); | |
uiDevice.wait(Until.hasObject(messagesListSelector),6000); | |
UiObject2 messageList = uiDevice.findObject(messagesListSelector); | |
messageList.getChildren().get(index).getContentDescription(); | |
} |
Attribute | Seattle | Dallas | |
---|---|---|---|
Cost of living | Seattle so expensive | Every thing in dallas is way cheaper | |
Industries | Hightech | Services and hightech | |
Weather | Very mild | Very hot | |
Roads | Many single lines and getting very congested | So many freaking highways and internal roads have 4 lanes! |
@Test | |
fun clickButtonToSayHello() | |
{ | |
launchActivity(myActivity) | |
onView(withId(R.id.greet_button)).perform(click()) | |
onView(withText("Hello Steve!")).check(matches(isDisplayed())) | |
} |
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
// This is a string | |
var str = "demo"; | |
print(str); | |
var num =23; | |
print(num); | |
int num2 = 24; | |
/** |
## After installing maestro run | |
## maestro test maestro_cert_install.yaml | |
appId: com.android.settings | |
--- | |
- launchApp: com.android.settings | |
- startRecording: cert_install | |
## This can change in future versions of android | |
- scrollUntilVisible: |