OLD | NEW |
---|---|
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <p>Focus field with a placeholder, then type.</p> | 6 <p>Focus field with a placeholder, then type.</p> |
7 <div> | 7 <div> |
8 <input id=i1 value="Text"> | 8 <input id=i1 value="Text"> |
9 <script> | 9 <script> |
10 document.getElementById('i1').setSelectionRange(4, 4); | 10 if (!window.testRunner) { |
11 document.write("This test needs testRunner to work") | |
12 } else { | |
13 var startX = document.getElementById("i1").offsetLeft + 30; | |
tkent
2014/06/01 23:40:55
This looks depending on a specific font, and looks
harpreet.sk
2014/07/02 10:13:05
Yes it will work. I had made the changes in new pa
| |
14 var startY = document.getElementById("i1").offsetTop + 4; | |
15 eventSender.mouseMoveTo(startX,startY); | |
16 eventSender.mouseDown(); | |
17 eventSender.mouseUp(); | |
18 } | |
11 </script> | 19 </script> |
12 </body> | 20 </body> |
13 </html> | 21 </html> |
OLD | NEW |