Skip to main content
summaryrefslogtreecommitdiffstats
blob: da11ae2bb16bce889a8ff0a635b15190b3690874 (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
28
29
30
31
32
33
34
35
/*******************************************************************************
 * Copyright (c) 2011 SAP AG, Walldorf.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     SAP AG - initial API and implementation
 *******************************************************************************/
package org.eclipse.platform.discovery.ui.test.comp.internal.pageobjects.swtbot;

import org.eclipse.platform.discovery.ui.test.comp.internal.pageobjects.swtbot.utils.MouseUtils;
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot;
import org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBotControl;
import org.eclipse.ui.forms.widgets.Hyperlink;

public class SWTBotHyperlink extends AbstractSWTBotControl<Hyperlink>
{
	private final MouseUtils mouseUtils;

	public SWTBotHyperlink(Hyperlink w) throws WidgetNotFoundException
	{
		super(w);
		this.mouseUtils = new MouseUtils(display);
	}

	public AbstractSWTBot<Hyperlink> click()
	{
		mouseUtils.clickOn(this);
		return this;
	}

}

Back to the top