|
1 | 1 | /*
|
2 | 2 | Copyright 2007-2009 Selenium committers
|
3 |
| -Portions copyright 2011 Software Freedom Conservancy |
| 3 | +Portions copyright 2011-2015 Software Freedom Conservancy |
4 | 4 |
|
5 | 5 | Licensed under the Apache License, Version 2.0 (the "License");
|
6 | 6 | you may not use this file except in compliance with the License.
|
|
30 | 30 | */
|
31 | 31 | public interface WebElement extends SearchContext {
|
32 | 32 | /**
|
33 |
| - * Click this element. If this causes a new page to load, this method will attempt to block until |
34 |
| - * the page has loaded. At this point, you should discard all references to this element and any |
35 |
| - * further operations performed on this element will throw a StaleElementReferenceException unless |
36 |
| - * you know the element and the page will still be present. If click() causes a new page to be |
37 |
| - * loaded via an event or is done by sending a native event then the method will *not* wait for |
38 |
| - * it to be loaded and the caller should verify that a new page has been loaded. |
39 |
| - * <p> |
40 |
| - * There are some preconditions for an element to be clicked. The element must be visible and |
41 |
| - * it must have a height and width greater then 0. |
| 33 | + * Click this element. If this causes a new page to load, you |
| 34 | + * should discard all references to this element and any further |
| 35 | + * operations performed on this element will throw a |
| 36 | + * StaleElementReferenceException. |
42 | 37 | *
|
43 |
| - * @throws StaleElementReferenceException If the element no longer exists as initially defined |
| 38 | + * Note that if click() is done by sending a native event (which is |
| 39 | + * the default on most browsers/platforms) then the method will |
| 40 | + * _not_ wait for the next page to load and the caller should verify |
| 41 | + * that themselves. |
| 42 | +
|
| 43 | + * |
| 44 | + * There are some preconditions for an element to be clicked. The |
| 45 | + * element must be visible and it must have a height and width |
| 46 | + * greater then 0. |
| 47 | + * |
| 48 | + * @throws StaleElementReferenceException If the element no |
| 49 | + * longer exists as initially defined |
44 | 50 | */
|
45 | 51 | void click();
|
46 | 52 |
|
|
0 commit comments