5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 package org.jemmy.input; 26 27 28 import java.awt.AWTException; 29 import java.awt.BorderLayout; 30 import java.awt.Button; 31 import java.awt.EventQueue; 32 import java.awt.Frame; 33 import java.awt.Robot; 34 import java.awt.event.InputEvent; 35 import java.awt.event.KeyAdapter; 36 import java.awt.event.KeyEvent; 37 import java.awt.event.MouseAdapter; 38 import java.awt.event.MouseEvent; 39 import java.io.File; 40 import java.lang.reflect.InvocationTargetException; 41 import org.jemmy.Point; 42 import org.jemmy.control.Wrap; 43 import org.jemmy.env.Environment; 44 import org.jemmy.env.Timeout; 45 import org.jemmy.image.AWTImage; 46 import org.jemmy.interfaces.Keyboard; 47 import org.jemmy.interfaces.Keyboard.KeyboardButton; 48 import org.jemmy.interfaces.Keyboard.KeyboardButtons; 49 import org.jemmy.interfaces.Keyboard.KeyboardModifiers; 50 import org.jemmy.interfaces.Modifier; 51 import org.jemmy.interfaces.Mouse; 52 import org.jemmy.interfaces.Mouse.MouseButton; 53 import org.jemmy.interfaces.Mouse.MouseButtons; 54 import org.jemmy.timing.State; 55 import org.jemmy.timing.Waiter; 56 import org.testng.annotations.AfterClass; 57 import org.testng.annotations.AfterMethod; 58 import org.testng.annotations.BeforeClass; 59 import org.testng.annotations.BeforeMethod; 60 import org.testng.annotations.Test; 61 62 import static org.testng.Assert.assertFalse; 63 import static org.testng.Assert.assertTrue; 64 65 66 /** 67 * 68 * @author Alexander Kouznetsov <mrkam@mail.ru> 69 */ 70 public class RobotDriverTest { 71 | 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 package org.jemmy.input.awt; 26 27 28 import java.awt.AWTException; 29 import java.awt.BorderLayout; 30 import java.awt.Button; 31 import java.awt.EventQueue; 32 import java.awt.Frame; 33 import java.awt.Robot; 34 import java.awt.event.KeyAdapter; 35 import java.awt.event.KeyEvent; 36 import java.awt.event.MouseAdapter; 37 import java.awt.event.MouseEvent; 38 import java.io.File; 39 import java.lang.reflect.InvocationTargetException; 40 import org.jemmy.Point; 41 import org.jemmy.control.Wrap; 42 import org.jemmy.env.Environment; 43 import org.jemmy.env.Timeout; 44 import org.jemmy.image.awt.AWTImage; 45 import org.jemmy.input.awt.RobotDriver; 46 import org.jemmy.input.awt.RobotExecutor; 47 import org.jemmy.interfaces.Keyboard.KeyboardButton; 48 import org.jemmy.interfaces.Keyboard.KeyboardButtons; 49 import org.jemmy.interfaces.Keyboard.KeyboardModifiers; 50 import org.jemmy.interfaces.Modifier; 51 import org.jemmy.interfaces.Mouse.MouseButton; 52 import org.jemmy.interfaces.Mouse.MouseButtons; 53 import org.jemmy.timing.State; 54 import org.jemmy.timing.Waiter; 55 import org.testng.annotations.AfterClass; 56 import org.testng.annotations.AfterMethod; 57 import org.testng.annotations.BeforeClass; 58 import org.testng.annotations.BeforeMethod; 59 import org.testng.annotations.Test; 60 61 import static org.testng.Assert.assertFalse; 62 import static org.testng.Assert.assertTrue; 63 64 65 /** 66 * 67 * @author Alexander Kouznetsov <mrkam@mail.ru> 68 */ 69 public class RobotDriverTest { 70 |