1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package net.sf.jameleon.plugin.watij.tags;
21
22 import net.sf.jameleon.plugin.watij.WatijFunctionTag;
23
24 /***
25 * Navigates to a given URL.
26 *
27 * An example of its use might be to go to the jameleon.sourceforge.net website:
28 *
29 * <pre><source>
30 * <testcase xmlns="jelly:jameleon" xmlns:j="jelly:core">
31 * <watij-session>
32 * <watij-goto
33 * functionId="Go to Jameleon's site"
34 * url="http://jameleon.sourceforge.net"/>
35 * </watij-session>
36 * </testcase>
37 * </source></pre>
38 *
39 * @jameleon.function name="watij-goto" type="action"
40 */
41 public class WatijGoToTag extends WatijFunctionTag{
42
43 /***
44 * The url to navigate to.
45 * @jameleon.attribute required="true"
46 */
47 protected String url;
48
49 public void testBlock() throws Exception{
50 ie().goTo(url);
51 }
52
53
54 }