Back to project page robo-remote.
The source code is released under:
Copyright (c) 2012, 2013, 2014, Groupon, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provi...
If you think the Android project robo-remote listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.groupon.roboremote.uiautomatorclient.components; // w w w . ja v a 2 s . co m import com.groupon.roboremote.uiautomatorclient.Client; import com.groupon.roboremote.uiautomatorclient.Constants; import com.groupon.roboremote.uiautomatorclient.QueryBuilder; /** * Created with IntelliJ IDEA. * User: davidv * Date: 10/15/13 * Time: 3:40 PM * To change this template use File | Settings | File Templates. */ public class Notification { public static void click(String notificationLabel) throws Exception { new QueryBuilder().map("com.android.uiautomator.core.UiSelector", "className", "android.widget.TextView").call("text", notificationLabel).execute(); new QueryBuilder().map("com.android.uiautomator.core.UiObject", "clickAndWaitForNewWindow").execute(); } }