1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package net.sf.jameleon.plugin.selenium.tags;
20
21 /***
22 * Simulates a user releasing the mouse button on the specified element at a specific coordinate.
23 *
24 * To release the mouse button over the field named <b>q</b>:
25 * <pre><source>
26 * <selenium-mouse-up-at
27 * functionId="release the mouse button over the 'q' field"
28 * locator="name=q"
29 * coordinates="5,6" />
30 * </source></pre>
31 * Refer to the Selenium javadocs for more information.
32 * @jameleon.function name="selenium-mouse-up-at" type="action"
33 */
34 public class SeleniumMouseUpAtTag extends AbstractSeleniumLocatorTag{
35
36 /***
37 * The coordinates at which to execute the mouse action (relative to
38 * the specified field. In the form of (x,y) -- 8,10 for instance.
39 * See the Selenium javadocs for more information.
40 * @jameleon.attribute required="true"
41 */
42 public String coordinates;
43
44 public void testBlock(){
45 session.mouseUpAt(locator,coordinates);
46 }
47 }