_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q24200 | Waiter.destroy | train | private void destroy(Process p, BufferedReader reader){
p.destroy();
try {
reader.close();
} catch (IOException e) {
e.printStackTrace();
}
} | java | {
"resource": ""
} |
q24201 | Waiter.getFragment | train | private android.app.Fragment getFragment(String tag, int id){
try{
if(tag == null)
return activityUtils.getCurrentActivity().getFragmentManager().findFragmentById(id);
else
return activityUtils.getCurrentActivity().getFragmentManager().findFragmentByTag(tag);
}catch (Throwable ignored) {}
return n... | java | {
"resource": ""
} |
q24202 | WebUtils.createAndReturnTextViewsFromWebElements | train | private ArrayList <TextView> createAndReturnTextViewsFromWebElements(boolean javaScriptWasExecuted){
ArrayList<TextView> webElementsAsTextViews = new ArrayList<TextView>();
if(javaScriptWasExecuted){
for(WebElement webElement : webElementCreator.getWebElementsFromWebViews()){
if(isWebElementSufficientlyShow... | java | {
"resource": ""
} |
q24203 | WebUtils.getWebElements | train | public ArrayList<WebElement> getWebElements(final By by, boolean onlySufficientlyVisbile){
boolean javaScriptWasExecuted = executeJavaScript(by, false);
if(config.useJavaScriptToClickWebElements){
if(!javaScriptWasExecuted){
return new ArrayList<WebElement>();
}
return webElementCreator.getWebElemen... | java | {
"resource": ""
} |
q24204 | WebUtils.getWebElements | train | private ArrayList<WebElement> getWebElements(boolean javaScriptWasExecuted, boolean onlySufficientlyVisbile){
ArrayList<WebElement> webElements = new ArrayList<WebElement>();
if(javaScriptWasExecuted){
for(WebElement webElement : webElementCreator.getWebElementsFromWebViews()){
if(!onlySufficientlyVisbile){... | java | {
"resource": ""
} |
q24205 | WebUtils.prepareForStartOfJavascriptExecution | train | private String prepareForStartOfJavascriptExecution(List<WebView> webViews) {
webElementCreator.prepareForStart();
WebChromeClient currentWebChromeClient = getCurrentWebChromeClient();
if(currentWebChromeClient != null && !currentWebChromeClient.getClass().isAssignableFrom(RobotiumWebClient.class)){
original... | java | {
"resource": ""
} |
q24206 | WebUtils.getCurrentWebChromeClient | train | private WebChromeClient getCurrentWebChromeClient(){
WebChromeClient currentWebChromeClient = null;
Object currentWebView = viewFetcher.getFreshestView(viewFetcher.getCurrentViews(WebView.class, true));
if (android.os.Build.VERSION.SDK_INT >= 16) {
try{
currentWebView = new Reflect(currentWebView).field(... | java | {
"resource": ""
} |
q24207 | WebUtils.enterTextIntoWebElement | train | public void enterTextIntoWebElement(final By by, final String text){
if(by instanceof By.Id){
executeJavaScriptFunction("enterTextById(\""+by.getValue()+"\", \""+text+"\");");
}
else if(by instanceof By.Xpath){
executeJavaScriptFunction("enterTextByXpath(\""+by.getValue()+"\", \""+text+"\");");
}
else i... | java | {
"resource": ""
} |
q24208 | WebUtils.executeJavaScript | train | public boolean executeJavaScript(final By by, boolean shouldClick){
if(by instanceof By.Id){
return executeJavaScriptFunction("id(\""+by.getValue()+"\", \"" + String.valueOf(shouldClick) + "\");");
}
else if(by instanceof By.Xpath){
return executeJavaScriptFunction("xpath(\""+by.getValue()+"\", \"" + String... | java | {
"resource": ""
} |
q24209 | WebUtils.executeJavaScriptFunction | train | private boolean executeJavaScriptFunction(final String function) {
List<WebView> webViews = viewFetcher.getCurrentViews(WebView.class, true);
final WebView webView = viewFetcher.getFreshestView((ArrayList<WebView>) webViews);
if(webView == null) {
return false;
}
final String javaScript = setWebFrame(p... | java | {
"resource": ""
} |
q24210 | WebUtils.splitNameByUpperCase | train | public String splitNameByUpperCase(String name) {
String [] texts = name.split("(?=\\p{Upper})");
StringBuilder stringToReturn = new StringBuilder();
for(String string : texts){
if(stringToReturn.length() > 0) {
stringToReturn.append(" " + string.toLowerCase());
}
else {
stringToReturn.append(s... | java | {
"resource": ""
} |
q24211 | WebUtils.getJavaScriptAsString | train | private String getJavaScriptAsString() {
InputStream fis = getClass().getResourceAsStream("RobotiumWeb.js");
StringBuffer javaScript = new StringBuffer();
try {
BufferedReader input = new BufferedReader(new InputStreamReader(fis));
String line = null;
while (( line = input.readLine()) != null){
jav... | java | {
"resource": ""
} |
q24212 | Searcher.searchFor | train | public <T extends View> boolean searchFor(Set<T> uniqueViews, Class<T> viewClass, final int index) {
ArrayList<T> allViews = RobotiumUtils.removeInvisibleViews(viewFetcher.getCurrentViews(viewClass, true));
int uniqueViewsFound = (getNumberOfUniqueViews(uniqueViews, allViews));
if(uniqueViewsFound > 0 && index ... | java | {
"resource": ""
} |
q24213 | Searcher.searchFor | train | public <T extends View> boolean searchFor(View view) {
ArrayList<View> views = viewFetcher.getAllViews(true);
for(View v : views){
if(v.equals(view)){
return true;
}
}
return false;
} | java | {
"resource": ""
} |
q24214 | Searcher.searchForWebElement | train | public WebElement searchForWebElement(final By by, int minimumNumberOfMatches){
if(minimumNumberOfMatches < 1){
minimumNumberOfMatches = 1;
}
List<WebElement> viewsFromScreen = webUtils.getWebElements(by, true);
addViewsToList (webElements, viewsFromScreen);
return getViewFromList(webElements, minimumNu... | java | {
"resource": ""
} |
q24215 | Searcher.addViewsToList | train | private void addViewsToList(List<WebElement> allWebElements, List<WebElement> webElementsOnScreen){
int[] xyViewFromSet = new int[2];
int[] xyViewFromScreen = new int[2];
for(WebElement textFromScreen : webElementsOnScreen){
boolean foundView = false;
textFromScreen.getLocationOnScreen(xyViewFromScreen);
... | java | {
"resource": ""
} |
q24216 | Searcher.getViewFromList | train | private WebElement getViewFromList(List<WebElement> webElements, int match){
WebElement webElementToReturn = null;
if(webElements.size() >= match){
try{
webElementToReturn = webElements.get(--match);
}catch(Exception ignored){}
}
if(webElementToReturn != null)
webElements.clear();
return webE... | java | {
"resource": ""
} |
q24217 | Searcher.getNumberOfUniqueViews | train | public <T extends View> int getNumberOfUniqueViews(Set<T>uniqueViews, ArrayList<T> views){
for(int i = 0; i < views.size(); i++){
uniqueViews.add(views.get(i));
}
numberOfUniqueViews = uniqueViews.size();
return numberOfUniqueViews;
} | java | {
"resource": ""
} |
q24218 | SystemUtils.setMobileData | train | public void setMobileData(Boolean turnedOn){
ConnectivityManager dataManager=(ConnectivityManager)instrumentation.getTargetContext().getSystemService(Context.CONNECTIVITY_SERVICE);
Method dataClass = null;
try {
dataClass = ConnectivityManager.class.getDeclaredMethod("setMobileDataEnabled", boolean.class);
... | java | {
"resource": ""
} |
q24219 | SystemUtils.setWiFiData | train | public void setWiFiData(Boolean turnedOn){
WifiManager wifiManager = (WifiManager)instrumentation.getTargetContext().getSystemService(Context.WIFI_SERVICE);
try{
wifiManager.setWifiEnabled(turnedOn);
}catch(Exception e){
e.printStackTrace();
}
} | java | {
"resource": ""
} |
q24220 | Solo.getActivityMonitor | train | public ActivityMonitor getActivityMonitor(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getActivityMonitor()");
}
return activityUtils.getActivityMonitor();
} | java | {
"resource": ""
} |
q24221 | Solo.getViews | train | public ArrayList<View> getViews() {
try {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getViews()");
}
return viewFetcher.getViews(null, false);
} catch (Exception e) {
e.printStackTrace();
return null;
}
} | java | {
"resource": ""
} |
q24222 | Solo.getTopParent | train | public View getTopParent(View view) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getTopParent("+view+")");
}
View topParent = viewFetcher.getTopParent(view);
return topParent;
} | java | {
"resource": ""
} |
q24223 | Solo.waitForText | train | public boolean waitForText(String text, int minimumNumberOfMatches, long timeout, boolean scroll, boolean onlyVisible) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForText(\""+text+"\", "+minimumNumberOfMatches+", "+timeout+", "+scroll+", "+onlyVisible+")");
}
return (waiter.waitForText... | java | {
"resource": ""
} |
q24224 | Solo.waitForView | train | public boolean waitForView(int id){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+id+")");
}
return waitForView(id, 0, Timeout.getLargeTimeout(), true);
} | java | {
"resource": ""
} |
q24225 | Solo.waitForView | train | public boolean waitForView(Object tag){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+tag+")");
}
return waitForView(tag, 0, Timeout.getLargeTimeout(), true);
} | java | {
"resource": ""
} |
q24226 | Solo.waitForView | train | public boolean waitForView(Object tag, int minimumNumberOfMatches, int timeout){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+tag+", "+minimumNumberOfMatches+", "+timeout+")");
}
return waitForView(tag, minimumNumberOfMatches, timeout, true);
} | java | {
"resource": ""
} |
q24227 | Solo.waitForView | train | public <T extends View> boolean waitForView(final Class<T> viewClass){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+viewClass+")");
}
return waiter.waitForView(viewClass, 0, Timeout.getLargeTimeout(), true);
} | java | {
"resource": ""
} |
q24228 | Solo.waitForView | train | public <T extends View> boolean waitForView(View view){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+view+")");
}
return waiter.waitForView(view);
} | java | {
"resource": ""
} |
q24229 | Solo.waitForView | train | public <T extends View> boolean waitForView(View view, int timeout, boolean scroll){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+view+", "+timeout+", "+scroll+")");
}
boolean checkIsShown = false;
if(!scroll){
checkIsShown = true;
}
View viewToWaitFor = waiter.waitFo... | java | {
"resource": ""
} |
q24230 | Solo.waitForView | train | public <T extends View> boolean waitForView(final Class<T> viewClass, final int minimumNumberOfMatches, final int timeout){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForView("+viewClass+", "+minimumNumberOfMatches+", "+timeout+")");
}
int index = minimumNumberOfMatches-1;
if(index <... | java | {
"resource": ""
} |
q24231 | Solo.waitForWebElement | train | public boolean waitForWebElement(By by){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForWebElement("+by+")");
}
return (waiter.waitForWebElement(by, 0, Timeout.getLargeTimeout(), true) != null);
} | java | {
"resource": ""
} |
q24232 | Solo.waitForWebElement | train | public boolean waitForWebElement(By by, int timeout, boolean scroll){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForWebElement("+by+", "+timeout+", "+scroll+")");
}
return (waiter.waitForWebElement(by, 0, timeout, scroll) != null);
} | java | {
"resource": ""
} |
q24233 | Solo.searchEditText | train | public boolean searchEditText(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "searchEditText(\""+text+"\")");
}
return searcher.searchWithTimeoutFor(EditText.class, text, 1, true, false);
} | java | {
"resource": ""
} |
q24234 | Solo.getCurrentActivity | train | public Activity getCurrentActivity() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getCurrentActivity()");
}
return activityUtils.getCurrentActivity(false);
} | java | {
"resource": ""
} |
q24235 | Solo.assertCurrentActivity | train | public void assertCurrentActivity(String message, String name, boolean isNewInstance)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "assertCurrentActivity("+message+", "+name+", "+isNewInstance+")");
}
asserter.assertCurrentActivity(message, name, isNewInstance);
} | java | {
"resource": ""
} |
q24236 | Solo.assertCurrentActivity | train | @SuppressWarnings("unchecked")
public void assertCurrentActivity(String message, @SuppressWarnings("rawtypes") Class activityClass,
boolean isNewInstance) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "assertCurrentActivity(\""+message+"\", "+activityClass+", "+isNewInstance+")");
}
asser... | java | {
"resource": ""
} |
q24237 | Solo.waitForDialogToOpen | train | public boolean waitForDialogToOpen() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToOpen()");
}
return dialogUtils.waitForDialogToOpen(Timeout.getLargeTimeout(), true);
} | java | {
"resource": ""
} |
q24238 | Solo.waitForDialogToClose | train | public boolean waitForDialogToClose() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToClose()");
}
return dialogUtils.waitForDialogToClose(Timeout.getLargeTimeout());
} | java | {
"resource": ""
} |
q24239 | Solo.waitForDialogToOpen | train | public boolean waitForDialogToOpen(long timeout) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToOpen("+timeout+")");
}
return dialogUtils.waitForDialogToOpen(timeout, true);
} | java | {
"resource": ""
} |
q24240 | Solo.waitForDialogToClose | train | public boolean waitForDialogToClose(long timeout) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "waitForDialogToClose("+timeout+")");
}
return dialogUtils.waitForDialogToClose(timeout);
} | java | {
"resource": ""
} |
q24241 | Solo.clickOnScreen | train | public void clickOnScreen(float x, float y) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnScreen("+x+", "+y+")");
}
sleeper.sleep();
clicker.clickOnScreen(x, y, null);
} | java | {
"resource": ""
} |
q24242 | Solo.clickOnScreen | train | public void clickOnScreen(float x, float y, int numberOfClicks) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnScreen("+x+", "+y+", "+numberOfClicks+")");
}
if (android.os.Build.VERSION.SDK_INT < 14){
throw new RuntimeException("clickOnScreen(float x, float y, int numberOfClicks) re... | java | {
"resource": ""
} |
q24243 | Solo.clickLongOnScreen | train | public void clickLongOnScreen(float x, float y) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongOnScreen("+x+", "+y+")");
}
clicker.clickLongOnScreen(x, y, 0, null);
} | java | {
"resource": ""
} |
q24244 | Solo.clickOnButton | train | public void clickOnButton(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnButton(\""+text+"\")");
}
clicker.clickOn(Button.class, text);
} | java | {
"resource": ""
} |
q24245 | Solo.clickOnImageButton | train | public void clickOnImageButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnImageButton("+index+")");
}
clicker.clickOn(ImageButton.class, index);
} | java | {
"resource": ""
} |
q24246 | Solo.clickOnToggleButton | train | public void clickOnToggleButton(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnToggleButton(\""+text+"\")");
}
clicker.clickOn(ToggleButton.class, text);
} | java | {
"resource": ""
} |
q24247 | Solo.clickOnMenuItem | train | public void clickOnMenuItem(String text, boolean subMenu)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnMenuItem(\""+text+"\", "+subMenu+")");
}
clicker.clickOnMenuItem(text, subMenu);
} | java | {
"resource": ""
} |
q24248 | Solo.clickOnWebElement | train | public void clickOnWebElement(WebElement webElement){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnWebElement("+webElement+")");
}
if(webElement == null)
Assert.fail("WebElement is null and can therefore not be clicked!");
clicker.clickOnScreen(webElement.getLocationX(), webEleme... | java | {
"resource": ""
} |
q24249 | Solo.pressSoftKeyboardNextButton | train | public void pressSoftKeyboardNextButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardNextButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_NEXT);
} | java | {
"resource": ""
} |
q24250 | Solo.pressSoftKeyboardSearchButton | train | public void pressSoftKeyboardSearchButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardSearchButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_SEARCH);
} | java | {
"resource": ""
} |
q24251 | Solo.pressSoftKeyboardGoButton | train | public void pressSoftKeyboardGoButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardGoButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_GO);
} | java | {
"resource": ""
} |
q24252 | Solo.pressSoftKeyboardDoneButton | train | public void pressSoftKeyboardDoneButton(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pressSoftKeyboardDoneButton()");
}
presser.pressSoftKeyboard(EditorInfo.IME_ACTION_DONE);
} | java | {
"resource": ""
} |
q24253 | Solo.clickOnView | train | public void clickOnView(View view) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnView("+view+")");
}
view = waiter.waitForView(view, Timeout.getSmallTimeout());
clicker.clickOnScreen(view);
} | java | {
"resource": ""
} |
q24254 | Solo.clickLongOnView | train | public void clickLongOnView(View view, int time) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongOnView("+view+", "+time+")");
}
clicker.clickOnScreen(view, true, time);
} | java | {
"resource": ""
} |
q24255 | Solo.clickOnText | train | public void clickOnText(String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnText(\""+text+"\")");
}
clicker.clickOnText(text, false, 1, true, 0);
} | java | {
"resource": ""
} |
q24256 | Solo.clickLongOnTextAndPress | train | public void clickLongOnTextAndPress(String text, int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongOnTextAndPress(\""+text+"\", "+index+")");
}
clicker.clickLongOnTextAndPress(text, index);
} | java | {
"resource": ""
} |
q24257 | Solo.clickOnButton | train | public void clickOnButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnButton("+index+")");
}
clicker.clickOn(Button.class, index);
} | java | {
"resource": ""
} |
q24258 | Solo.clickOnRadioButton | train | public void clickOnRadioButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnRadioButton("+index+")");
}
clicker.clickOn(RadioButton.class, index);
} | java | {
"resource": ""
} |
q24259 | Solo.clickOnCheckBox | train | public void clickOnCheckBox(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnCheckBox("+index+")");
}
clicker.clickOn(CheckBox.class, index);
} | java | {
"resource": ""
} |
q24260 | Solo.clickOnEditText | train | public void clickOnEditText(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnEditText("+index+")");
}
clicker.clickOn(EditText.class, index);
} | java | {
"resource": ""
} |
q24261 | Solo.clickInList | train | public void clickInList(int line, int index, int id) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickInList("+line+", "+index+", " + id +")");
}
clicker.clickInList(line, index, id, false, 0);
} | java | {
"resource": ""
} |
q24262 | Solo.clickLongInList | train | public ArrayList<TextView> clickLongInList(int line, int index){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickLongInList("+line+", "+index+")");
}
return clicker.clickInList(line, index, 0, true, 0);
} | java | {
"resource": ""
} |
q24263 | Solo.clickInRecyclerView | train | public ArrayList<TextView> clickInRecyclerView(int itemIndex) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickInRecyclerView("+itemIndex+")");
}
return clicker.clickInRecyclerView(itemIndex);
} | java | {
"resource": ""
} |
q24264 | Solo.clickInRecyclerView | train | public void clickInRecyclerView(int itemIndex, int recyclerViewIndex, int id) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickInRecyclerView("+itemIndex+", "+recyclerViewIndex+", " + id +")");
}
clicker.clickInRecyclerView(itemIndex, recyclerViewIndex, id, false, 0);
} | java | {
"resource": ""
} |
q24265 | Solo.clickOnActionBarItem | train | public void clickOnActionBarItem(int id){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnActionBarItem("+id+")");
}
clicker.clickOnActionBarItem(id);
} | java | {
"resource": ""
} |
q24266 | Solo.createIllustrationBuilder | train | public Illustration.Builder createIllustrationBuilder(){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "createIllustrationBuilder()");
}
return new Illustration.Builder();
} | java | {
"resource": ""
} |
q24267 | Solo.drag | train | public void drag(float fromX, float toX, float fromY, float toY,
int stepCount) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "drag("+fromX+", "+toX+", "+fromY+", "+toY+")");
}
dialogUtils.hideSoftKeyboard(null, false, true);
scroller.drag(fromX, toX, fromY, toY, stepCount);
} | java | {
"resource": ""
} |
q24268 | Solo.scrollToTop | train | @SuppressWarnings("unchecked")
public void scrollToTop() {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollToTop()");
}
View recyclerView = viewFetcher.getRecyclerView(true, 0);
if(recyclerView != null){
waiter.waitForViews(true, AbsListView.class, ScrollView.class, WebView.class, re... | java | {
"resource": ""
} |
q24269 | Solo.scrollDownList | train | public boolean scrollDownList(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollDownList("+list+")");
}
return scroller.scrollList(list, Scroller.DOWN, false);
} | java | {
"resource": ""
} |
q24270 | Solo.scrollListToBottom | train | public boolean scrollListToBottom(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToBottom("+list+")");
}
return scroller.scrollList(list, Scroller.DOWN, true);
} | java | {
"resource": ""
} |
q24271 | Solo.scrollUpList | train | public boolean scrollUpList(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollUpList("+list+")");
}
return scroller.scrollList(list, Scroller.UP, false);
} | java | {
"resource": ""
} |
q24272 | Solo.scrollListToTop | train | public boolean scrollListToTop(AbsListView list) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToTop("+list+")");
}
return scroller.scrollList(list, Scroller.UP, true);
} | java | {
"resource": ""
} |
q24273 | Solo.scrollDownList | train | public boolean scrollDownList(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollDownList("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.DOWN, false);
} | java | {
"resource": ""
} |
q24274 | Solo.scrollListToBottom | train | public boolean scrollListToBottom(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToBottom("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.DOWN, true);
} | java | {
"resource": ""
} |
q24275 | Solo.scrollUpList | train | public boolean scrollUpList(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollUpList("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.UP, false);
} | java | {
"resource": ""
} |
q24276 | Solo.scrollListToTop | train | public boolean scrollListToTop(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToTop("+index+")");
}
return scroller.scrollList(waiter.waitForAndGetView(index, ListView.class), Scroller.UP, true);
} | java | {
"resource": ""
} |
q24277 | Solo.scrollListToLine | train | public void scrollListToLine(AbsListView absListView, int line){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToLine("+absListView+", "+line+")");
}
scroller.scrollListToLine(absListView, line);
} | java | {
"resource": ""
} |
q24278 | Solo.scrollListToLine | train | public void scrollListToLine(int index, int line){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollListToLine("+index+", "+line+")");
}
scroller.scrollListToLine(waiter.waitForAndGetView(index, AbsListView.class), line);
} | java | {
"resource": ""
} |
q24279 | Solo.scrollDownRecyclerView | train | public boolean scrollDownRecyclerView(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollDownRecyclerView("+index+")");
}
if(!config.shouldScroll) {
return true;
}
View recyclerView = viewFetcher.getRecyclerView(index, Timeout.getSmallTimeout());
return scroller.scr... | java | {
"resource": ""
} |
q24280 | Solo.scrollRecyclerViewToBottom | train | public boolean scrollRecyclerViewToBottom(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollRecyclerViewToBottom("+index+")");
}
if(!config.shouldScroll) {
return true;
}
View recyclerView = viewFetcher.getRecyclerView(index, Timeout.getSmallTimeout());
scroller.s... | java | {
"resource": ""
} |
q24281 | Solo.scrollRecyclerViewToTop | train | public boolean scrollRecyclerViewToTop(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "scrollRecyclerViewToTop("+index+")");
}
if(!config.shouldScroll) {
return false;
}
View recyclerView = viewFetcher.getRecyclerView(index, Timeout.getSmallTimeout());
scroller.scroll... | java | {
"resource": ""
} |
q24282 | Solo.pinchToZoom | train | public void pinchToZoom(PointF startPoint1, PointF startPoint2, PointF endPoint1, PointF endPoint2)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "pinchToZoom("+startPoint1+", "+startPoint2+", "+endPoint1+", "+endPoint2+")");
}
if (android.os.Build.VERSION.SDK_INT < 14){
throw new Runtime... | java | {
"resource": ""
} |
q24283 | Solo.swipe | train | public void swipe(PointF startPoint1, PointF startPoint2, PointF endPoint1, PointF endPoint2)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "swipe("+startPoint1+", "+startPoint2+", "+endPoint1+", "+endPoint2+")");
}
if (android.os.Build.VERSION.SDK_INT < 14){
throw new RuntimeException("s... | java | {
"resource": ""
} |
q24284 | Solo.setDatePicker | train | public void setDatePicker(int index, int year, int monthOfYear, int dayOfMonth) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setDatePicker("+index+", "+year+", "+monthOfYear+", "+dayOfMonth+")");
}
setDatePicker(waiter.waitForAndGetView(index, DatePicker.class), year, monthOfYear, dayOfMont... | java | {
"resource": ""
} |
q24285 | Solo.setDatePicker | train | public void setDatePicker(DatePicker datePicker, int year, int monthOfYear, int dayOfMonth) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setDatePicker("+datePicker+", "+year+", "+monthOfYear+", "+dayOfMonth+")");
}
datePicker = (DatePicker) waiter.waitForView(datePicker, Timeout.getSmallTim... | java | {
"resource": ""
} |
q24286 | Solo.setTimePicker | train | public void setTimePicker(int index, int hour, int minute) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setTimePicker("+index+", "+hour+", "+minute+")");
}
setTimePicker(waiter.waitForAndGetView(index, TimePicker.class), hour, minute);
} | java | {
"resource": ""
} |
q24287 | Solo.setTimePicker | train | public void setTimePicker(TimePicker timePicker, int hour, int minute) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "setTimePicker("+timePicker+", "+hour+", "+minute+")");
}
timePicker = (TimePicker) waiter.waitForView(timePicker, Timeout.getSmallTimeout());
setter.setTimePicker(timePicker... | java | {
"resource": ""
} |
q24288 | Solo.enterText | train | public void enterText(int index, String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "enterText("+index+", \""+text+"\")");
}
textEnterer.setEditText(waiter.waitForAndGetView(index, EditText.class), text);
} | java | {
"resource": ""
} |
q24289 | Solo.enterTextInWebElement | train | public void enterTextInWebElement(By by, String text){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "enterTextInWebElement("+by+", \""+text+"\")");
}
if(waiter.waitForWebElement(by, 0, Timeout.getSmallTimeout(), false) == null) {
Assert.fail("WebElement with " + webUtils.splitNameByUpperCas... | java | {
"resource": ""
} |
q24290 | Solo.typeText | train | public void typeText(EditText editText, String text) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "typeText("+editText+", \""+text+"\")");
}
editText = (EditText) waiter.waitForView(editText, Timeout.getSmallTimeout());
textEnterer.typeText(editText, text);
} | java | {
"resource": ""
} |
q24291 | Solo.typeTextInWebElement | train | public void typeTextInWebElement(WebElement webElement, String text){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "typeTextInWebElement("+webElement+", \""+text+"\")");
}
clickOnWebElement(webElement);
dialogUtils.hideSoftKeyboard(null, true, true);
instrumentation.sendStringSync(text);
... | java | {
"resource": ""
} |
q24292 | Solo.clearTextInWebElement | train | public void clearTextInWebElement(By by){
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clearTextInWebElement("+by+")");
}
webUtils.enterTextIntoWebElement(by, "");
} | java | {
"resource": ""
} |
q24293 | Solo.clickOnImage | train | public void clickOnImage(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "clickOnImage("+index+")");
}
clicker.clickOn(ImageView.class, index);
} | java | {
"resource": ""
} |
q24294 | Solo.getEditText | train | public EditText getEditText(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getEditText("+index+")");
}
return getter.getView(EditText.class, index);
} | java | {
"resource": ""
} |
q24295 | Solo.getButton | train | public Button getButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getButton("+index+")");
}
return getter.getView(Button.class, index);
} | java | {
"resource": ""
} |
q24296 | Solo.getText | train | public TextView getText(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getText("+index+")");
}
return getter.getView(TextView.class, index);
} | java | {
"resource": ""
} |
q24297 | Solo.getImage | train | public ImageView getImage(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getImage("+index+")");
}
return getter.getView(ImageView.class, index);
} | java | {
"resource": ""
} |
q24298 | Solo.getImageButton | train | public ImageButton getImageButton(int index) {
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getImageButton("+index+")");
}
return getter.getView(ImageButton.class, index);
} | java | {
"resource": ""
} |
q24299 | Solo.getText | train | public TextView getText(String text)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "getText(\""+text+"\")");
}
return getter.getView(TextView.class, text, false);
} | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.