Skip to content

Instantly share code, notes, and snippets.

View prolificcoder's full-sized avatar

Satyajit Malugu prolificcoder

  • SoFi
  • Raleigh
View GitHub Profile
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();
}
@prolificcoder
prolificcoder / seattle_dallas.csv
Last active July 22, 2018 04:01
Differences between dallas and seattle
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()))
}
@prolificcoder
prolificcoder / main.dart
Created February 28, 2022 22:57
Flutter/dart inteview
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@prolificcoder
prolificcoder / sample.dart
Created October 24, 2022 00:27
sample dart code
// This is a string
var str = "demo";
print(str);
var num =23;
print(num);
int num2 = 24;
/**
@prolificcoder
prolificcoder / gist:b2f70c30ce8f59dc095237e7d658057e
Last active November 10, 2024 20:02
Running maestro (mobile UI automation tool) locally and executing all tests

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

Make sure Java 11 is installed

if java -version doesn't say 11

@prolificcoder
prolificcoder / maestro_cert_install.yaml
Created February 25, 2025 17:15
Installing certificate on an android emulator if you don't have adb or root perms
## 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: