Skip to content

Instantly share code, notes, and snippets.


Satyajit Malugu prolificcoder

View GitHub Profile
View espresso-sample.kt
fun clickButtonToSayHello()
onView(withText("Hello Steve!")).check(matches(isDisplayed()))
prolificcoder / seattle_dallas.csv
Last active Jul 22, 2018
Differences between dallas and seattle
View seattle_dallas.csv
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!
public static String findChildElementCDByIndex(int index) {
BySelector messagesListSelector = By.desc("ListView Recycler");
UiObject2 messageList = uiDevice.findObject(messagesListSelector);
public void parallaxToolbarTest() {
//Go to the screen to perform the swipe action
//Verify that image is indeed collapsed
//perform is sequential so click and swipeUp = drag up gesture
onView(withId(, swipeUp());
public class MyFragment extends Fragment implements AppBarLayout.OnOffsetChangedListener {
//..... other code here
//Initialize appbar
private AppBarLayout appbar;
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
appbar = (AppBarLayout) mainView.findViewById(;
// Set the content descriptions based on the offset math
View gist:5949543acabff8ca98202dbe628265fd
View gist:11dcff13ab951e9a74484c9b77ce892e
enterPins: function (driver) {
return driver
.then(function() {
//In android system alert comes after our custom alert and vice-versa in iOS
prolificcoder / appium.log
Created Mar 14, 2016
error with 1.4.16
View appium.log
nfo: --> POST /wd/hub/session {"desiredCapabilities":{"deviceName":"Android Emulator","deviceOrientation":"portrait","platformVersion":"5.1","platformName":"Android","app":"/Users/smalugu/code/gdm-android-investorapp/app/build/outputs/apk/investorapp-2.1.0-1-AutomationEnv-debug.apk","host":"localhost","port":4723,"name":"android investor favorite tests @p0 should be able to see and click bid details"}}
info: Client User-Agent string: admc/wd/0.4.0
info: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : deviceOrientation, host, port, name
info: [debug] No appActivity desired capability or server param. Parsing from apk.
info: [debug] No appPackage desired capability or server param. Parsing from apk.
info: [debug] Using local app from desired caps: /Users/smalugu/code/gdm-android-investorapp/app/build/outputs/apk/investorapp-2.1.0-1-AutomationEnv-debug.apk
info: [debug] Creating new appium session e63c4
prolificcoder / appium.log
Created Mar 14, 2016
appium log for scroll down in android
View appium.log
[HTTP] --> POST /wd/hub/session
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"deviceName":"Android Emulator","deviceOrientation":"portrait","platformVersion":"5.1","platformName":"Android","app":"/Users/smalugu/code/gdm-an...
[Appium] Creating new AndroidDriver session
[Appium] Capabilities:
[Appium] deviceName: 'Android Emulator'
[Appium] deviceOrientation: 'portrait'
[Appium] platformVersion: '5.1'
[Appium] platformName: 'Android'
[Appium] app: '/Users/smalugu/code/gdm-android-investorapp/app/build/outputs/apk/investorapp-2.1.0-1-AutomationEnv-debug.apk'
[Appium] host: 'localhost'
prolificcoder / error
Created Feb 29, 2016
Gulp e2e test is not passing
View error
Satyajits-iMac:appium-ios-driver malugus$ DEVICE=ios92 gulp e2e-test
[21:50:20] Using gulpfile ~/Code/appium-ios-driver/gulpfile.js
[21:50:20] Starting 'transpile'...
[21:50:26] Finished 'transpile' after 5.99 s
[21:50:26] Starting 'e2e-test'...
1) should contain server details