Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 70483c16064bb607a8da3c2c46c1c6eb1abd1284 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*******************************************************************************
 * Copyright (C) 2010, Jens Baumgart <jens.baumgart@sap.com>
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *******************************************************************************/
package org.eclipse.egit.ui.common;

import org.eclipse.egit.ui.internal.UIText;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;

public class LoginDialogTester {

	private final SWTWorkbenchBot bot = new SWTWorkbenchBot();

	public void login(String user, String password) {
		bot.textWithLabel(UIText.LoginDialog_user).setText(user);
		bot.textWithLabel(UIText.LoginDialog_password).setText(password);
		bot.checkBoxWithLabel(UIText.LoginDialog_storeInSecureStore).deselect();
		bot.button(UIText.LoginDialog_ButtonOK).click();
	}

}

Back to the top