File tree Expand file tree Collapse file tree
src/main/java/anhtester/com/keyword Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363 <plugin >
6464 <groupId >org.apache.maven.plugins</groupId >
6565 <artifactId >maven-surefire-plugin</artifactId >
66- <version >2.22.2 </version >
66+ <version >3.0.0-M7 </version >
6767 <configuration >
6868 <suiteXmlFiles >
6969 <suiteXmlFile >suites/CategoryTest.xml</suiteXmlFile >
Original file line number Diff line number Diff line change 44import java .awt .event .KeyEvent ;
55
66public class ActionKeyword {
7- public static void maximizeBrowserOnWindow (){
7+ public static void maximizeBrowserOnWindow () {
88 Robot rb = null ;
99 try {
1010 rb = new Robot ();
11+ rb .keyPress (KeyEvent .VK_WINDOWS );
12+ rb .keyPress (KeyEvent .VK_UP );
13+ rb .keyRelease (KeyEvent .VK_WINDOWS );
14+ rb .keyRelease (KeyEvent .VK_UP );
1115 } catch (AWTException e ) {
1216 e .printStackTrace ();
1317 }
14- rb .keyPress (KeyEvent .VK_WINDOWS );
15- rb .keyPress (KeyEvent .VK_UP );
16- rb .keyRelease (KeyEvent .VK_WINDOWS );
17- rb .keyRelease (KeyEvent .VK_UP );
1818 }
1919}
You can’t perform that action at this time.
0 commit comments