Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void checkContextMenuRenderedAtCorrectPosition(WebElement target, WebElement contextMenuPopup, InvocationType type, ExpectedCondition<Boolean> conditionTargetIsFocused) {
- // <editor-fold defaultstate="collapsed" desc="Compiled Code">
- /* 0: aload 4
- * 2: ifnull 37
- * 5: aload_1
- * 6: invokeinterface org/openqa/selenium/WebElement.click:()V
- * 11: aload_0
- * 12: getfield org/richfaces/showcase/contextMenu/AbstractContextMenuTest.webDriver:Lorg/openqa/selenium/WebDriver;
- * 15: invokestatic org/jboss/arquillian/graphene/Graphene.waitGui:(Lorg/openqa/selenium/WebDriver;)Lorg/jboss/arquillian/graphene/wait/WebDriverWait;
- * 18: ldc2_w 2l
- * 21: getstatic java/util/concurrent/TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
- * 24: invokeinterface org/jboss/arquillian/graphene/wait/WebDriverWait.withTimeout:(JLjava/util/concurrent/TimeUnit;)Lorg/jboss/arquillian/graphene/wait/FluentWait;
- * 29: aload 4
- * 31: invokeinterface org/jboss/arquillian/graphene/wait/FluentWait.until:(Lcom/google/common/base/Function;)Ljava/lang/Object;
- * 36: pop
- * 37: invokestatic org/jboss/arquillian/graphene/Graphene.waitGui:()Lorg/jboss/arquillian/graphene/wait/WebDriverWait;
- * 40: pop
- * 41: getstatic org/richfaces/showcase/contextMenu/AbstractContextMenuTest$1.$SwitchMap$org$richfaces$showcase$contextMenu$AbstractContextMenuTest$InvocationType:[I
- * 44: aload_3
- * 45: invokevirtual org/richfaces/showcase/contextMenu/AbstractContextMenuTest$InvocationType.ordinal:()I
- * 48: iaload
- * 49: lookupswitch { // 2
- * 1: 76
- * 2: 91
- * default: 106
- * }
- * 76: aload_0
- * 77: getfield org/richfaces/showcase/contextMenu/AbstractContextMenuTest.actions:Lorg/openqa/selenium/interactions/Actions;
- * 80: aload_1
- * 81: invokevirtual org/openqa/selenium/interactions/Actions.moveToElement:(Lorg/openqa/selenium/WebElement;)Lorg/openqa/selenium/interactions/Actions;
- * 84: invokevirtual org/openqa/selenium/interactions/Actions.click:()Lorg/openqa/selenium/interactions/Actions;
- * 87: pop
- * 88: goto 116
- * 91: aload_0
- * 92: getfield org/richfaces/showcase/contextMenu/AbstractContextMenuTest.actions:Lorg/openqa/selenium/interactions/Actions;
- * 95: aload_1
- * 96: invokevirtual org/openqa/selenium/interactions/Actions.moveToElement:(Lorg/openqa/selenium/WebElement;)Lorg/openqa/selenium/interactions/Actions;
- * 99: invokevirtual org/openqa/selenium/interactions/Actions.contextClick:()Lorg/openqa/selenium/interactions/Actions;
- * 102: pop
- * 103: goto 116
- * 106: new java/lang/IllegalArgumentException
- * 109: dup
- * 110: ldc Wrong type of context menu invocation!
- * 112: invokespecial java/lang/IllegalArgumentException."<init>":(Ljava/lang/String;)V
- * 115: athrow
- * 116: aload_0
- * 117: getfield org/richfaces/showcase/contextMenu/AbstractContextMenuTest.actions:Lorg/openqa/selenium/interactions/Actions;
- * 120: invokevirtual org/openqa/selenium/interactions/Actions.build:()Lorg/openqa/selenium/interactions/Action;
- * 123: invokeinterface org/openqa/selenium/interactions/Action.perform:()V
- * 128: invokestatic org/jboss/arquillian/graphene/Graphene.waitGui:()Lorg/jboss/arquillian/graphene/wait/WebDriverWait;
- * 131: ldc2_w 2l
- * 134: getstatic java/util/concurrent/TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
- * 137: invokeinterface org/jboss/arquillian/graphene/wait/WebDriverWait.withTimeout:(JLjava/util/concurrent/TimeUnit;)Lorg/jboss/arquillian/graphene/wait/FluentWait;
- * 142: invokeinterface org/jboss/arquillian/graphene/wait/FluentWait.until:()Lorg/jboss/arquillian/graphene/wait/FluentBuilder;
- * 147: aload_2
- * 148: invokeinterface org/jboss/arquillian/graphene/wait/FluentBuilder.element:(Lorg/openqa/selenium/WebElement;)Lorg/jboss/arquillian/graphene/wait/ElementBuilder;
- * 153: invokeinterface org/jboss/arquillian/graphene/wait/ElementBuilder.is:()Lorg/jboss/arquillian/graphene/wait/IsNotElementBuilder;
- * 158: invokeinterface org/jboss/arquillian/graphene/wait/IsNotElementBuilder.visible:()Ljava/lang/Object;
- * 163: pop
- * 164: aload_1
- * 165: invokeinterface org/openqa/selenium/WebElement.getLocation:()Lorg/openqa/selenium/Point;
- * 170: astore 5
- * 172: aload_2
- * 173: invokeinterface org/openqa/selenium/WebElement.getLocation:()Lorg/openqa/selenium/Point;
- * 178: astore 6
- * 180: aload_0
- * 181: aload_1
- * 182: invokevirtual org/richfaces/showcase/contextMenu/AbstractContextMenuTest.getTargetWidth:(Lorg/openqa/selenium/WebElement;)D
- * 185: dstore 7
- * 187: aload_0
- * 188: aload_1
- * 189: invokevirtual org/richfaces/showcase/contextMenu/AbstractContextMenuTest.getTargetHeight:(Lorg/openqa/selenium/WebElement;)D
- * 192: dstore 9
- * 194: dload 9
- * 196: dload 9
- * 198: dmul
- * 199: dload 7
- * 201: dload 7
- * 203: dmul
- * 204: dadd
- * 205: invokestatic java/lang/Math.sqrt:(D)D
- * 208: ldc2_w 2.0d
- * 211: ddiv
- * 212: dstore 11
- * 214: aload_0
- * 215: aload 5
- * 217: aload 6
- * 219: invokespecial org/richfaces/showcase/contextMenu/AbstractContextMenuTest.getDistance:(Lorg/openqa/selenium/Point;Lorg/openqa/selenium/Point;)D
- * 222: dstore 13
- * 224: dload 11
- * 226: dload 13
- * 228: dsub
- * 229: dstore 15
- * 231: new java/lang/StringBuilder
- * 234: dup
- * 235: invokespecial java/lang/StringBuilder."<init>":()V
- * 238: ldc The context menu was not rendered on the correct position! The difference is:
- * 240: invokevirtual java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
- * 243: dload 15
- * 245: invokevirtual java/lang/StringBuilder.append:(D)Ljava/lang/StringBuilder;
- * 248: invokevirtual java/lang/StringBuilder.toString:()Ljava/lang/String;
- * 251: dload 15
- * 253: dconst_0
- * 254: dcmpl
- * 255: iflt 271
- * 258: dload 15
- * 260: ldc2_w 3.0d
- * 263: dcmpg
- * 264: ifge 271
- * 267: iconst_1
- * 268: goto 272
- * 271: iconst_0
- * 272: invokestatic org/junit/Assert.assertTrue:(Ljava/lang/String;Z)V
- * 275: return
- * */
- // </editor-fold>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement