|
18 | 18 |
|
19 | 19 | package org.openqa.selenium.htmlunit;
|
20 | 20 |
|
21 |
| -import com.google.common.base.Strings; |
22 |
| -import com.google.common.base.Throwables; |
23 |
| - |
24 |
| -import com.gargoylesoftware.htmlunit.ScriptResult; |
25 |
| -import com.gargoylesoftware.htmlunit.html.DomElement; |
26 |
| -import com.gargoylesoftware.htmlunit.html.DomNode; |
27 |
| -import com.gargoylesoftware.htmlunit.html.DomText; |
28 |
| -import com.gargoylesoftware.htmlunit.html.HtmlButton; |
29 |
| -import com.gargoylesoftware.htmlunit.html.HtmlElement; |
30 |
| -import com.gargoylesoftware.htmlunit.html.HtmlForm; |
31 |
| -import com.gargoylesoftware.htmlunit.html.HtmlImageInput; |
32 |
| -import com.gargoylesoftware.htmlunit.html.HtmlInput; |
33 |
| -import com.gargoylesoftware.htmlunit.html.HtmlLabel; |
34 |
| -import com.gargoylesoftware.htmlunit.html.HtmlOption; |
35 |
| -import com.gargoylesoftware.htmlunit.html.HtmlPage; |
36 |
| -import com.gargoylesoftware.htmlunit.html.HtmlPreformattedText; |
37 |
| -import com.gargoylesoftware.htmlunit.html.HtmlScript; |
38 |
| -import com.gargoylesoftware.htmlunit.html.HtmlSelect; |
39 |
| -import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; |
40 |
| -import com.gargoylesoftware.htmlunit.html.HtmlTextArea; |
41 |
| -import com.gargoylesoftware.htmlunit.javascript.host.Event; |
| 21 | +import java.io.IOException; |
| 22 | +import java.net.MalformedURLException; |
| 23 | +import java.util.ArrayList; |
| 24 | +import java.util.LinkedList; |
| 25 | +import java.util.List; |
| 26 | +import java.util.concurrent.Callable; |
42 | 27 |
|
43 | 28 | import net.sourceforge.htmlunit.corejs.javascript.Undefined;
|
44 | 29 |
|
|
65 | 50 | import org.w3c.dom.Attr;
|
66 | 51 | import org.w3c.dom.NamedNodeMap;
|
67 | 52 |
|
68 |
| -import java.io.IOException; |
69 |
| -import java.net.MalformedURLException; |
70 |
| -import java.util.ArrayList; |
71 |
| -import java.util.LinkedList; |
72 |
| -import java.util.List; |
73 |
| -import java.util.concurrent.Callable; |
| 53 | +import com.gargoylesoftware.htmlunit.ScriptResult; |
| 54 | +import com.gargoylesoftware.htmlunit.html.DomNode; |
| 55 | +import com.gargoylesoftware.htmlunit.html.DomText; |
| 56 | +import com.gargoylesoftware.htmlunit.html.HtmlButton; |
| 57 | +import com.gargoylesoftware.htmlunit.html.HtmlElement; |
| 58 | +import com.gargoylesoftware.htmlunit.html.HtmlForm; |
| 59 | +import com.gargoylesoftware.htmlunit.html.HtmlImageInput; |
| 60 | +import com.gargoylesoftware.htmlunit.html.HtmlInput; |
| 61 | +import com.gargoylesoftware.htmlunit.html.HtmlLabel; |
| 62 | +import com.gargoylesoftware.htmlunit.html.HtmlOption; |
| 63 | +import com.gargoylesoftware.htmlunit.html.HtmlPage; |
| 64 | +import com.gargoylesoftware.htmlunit.html.HtmlPreformattedText; |
| 65 | +import com.gargoylesoftware.htmlunit.html.HtmlScript; |
| 66 | +import com.gargoylesoftware.htmlunit.html.HtmlSelect; |
| 67 | +import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput; |
| 68 | +import com.gargoylesoftware.htmlunit.html.HtmlTextArea; |
| 69 | +import com.gargoylesoftware.htmlunit.javascript.host.Event; |
| 70 | +import com.google.common.base.Strings; |
| 71 | +import com.google.common.base.Throwables; |
74 | 72 |
|
75 | 73 |
|
76 | 74 | public class HtmlUnitWebElement implements WrapsDriver,
|
@@ -306,17 +304,11 @@ private void switchFocusToThisIfNeeded() {
|
306 | 304 | element.focus();
|
307 | 305 | }
|
308 | 306 |
|
309 |
| - /** |
310 |
| - * @deprecated Visibility will soon be reduced. |
311 |
| - */ |
312 |
| - public void sendKeyDownEvent(CharSequence modifierKey) { |
| 307 | + void sendKeyDownEvent(CharSequence modifierKey) { |
313 | 308 | sendSingleKeyEvent(modifierKey, Event.TYPE_KEY_DOWN);
|
314 | 309 | }
|
315 | 310 |
|
316 |
| - /** |
317 |
| - * @deprecated Visibility will soon be reduced. |
318 |
| - */ |
319 |
| - public void sendKeyUpEvent(CharSequence modifierKey) { |
| 311 | + void sendKeyUpEvent(CharSequence modifierKey) { |
320 | 312 | sendSingleKeyEvent(modifierKey, Event.TYPE_KEY_UP);
|
321 | 313 | }
|
322 | 314 |
|
|
0 commit comments