some changes needed to uploads from gmail

This commit is contained in:
purigarcia 2015-05-12 13:36:38 +02:00
parent 2f1e634342
commit 7f24cb41fb
2 changed files with 2 additions and 1 deletions

View file

@ -10,7 +10,7 @@ public class GmailEmailListView {
final AndroidDriver driver;
@AndroidFindBy(uiAutomator = "new UiSelector().description(\"me about UploadFile, at 9:53 AM, conversation read\")")
@AndroidFindBy(uiAutomator = "new UiSelector().description(\"me about UploadFile, on May 11, conversation read\")")
private AndroidElement email;
public GmailEmailListView (AndroidDriver driver) {

View file

@ -72,6 +72,7 @@ public class UploadTestSuite{
FileListView fileListView = Actions.login(Config.URL, Config.user,Config.password, Config.isTrusted, driver);
driver.startActivity("com.google.android.gm", ".ConversationListActivityGmail");
GmailEmailListView gmailEmailListView = new GmailEmailListView(driver);
Thread.sleep(3000);
GmailEmailView gmailEmailView = gmailEmailListView.clickOnEmail();
ImageView imageView = gmailEmailView.clickOnfileButton();
imageView.clickOnOptionsButton();