METHOD_0 ( ) { java . lang . String IDENT_0 = server . METHOD_1 ( STRING_0 ) ; java . nio . file . Path IDENT_1 = java . nio . file . IDENT_2 . get ( IDENT_3 . IDENT_4 . value ( ) ) . resolve ( ( ( STRING_1 + ( IDENT_5 . replace ( STRING_2 , STRING_3 ) ) ) + STRING_4 ) ) ; if ( java . nio . file . IDENT_6 . exists ( IDENT_1 ) ) { java . nio . file . IDENT_6 . delete ( IDENT_1 ) ; } java . nio . file . IDENT_6 . METHOD_2 ( IDENT_1 . METHOD_3 ( ) ) ; java . lang . String result = new org . openqa . selenium . server . IDENT_7 . METHOD_4 ( ) . METHOD_5 ( IDENT_5 , ( IDENT_0 + STRING_5 ) , ( IDENT_0 + STRING_5 ) , IDENT_1 . METHOD_6 ( ) , TimeUnit . IDENT_8 . METHOD_7 ( 5 ) , null ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( java . lang . String , java . lang . String , java . lang . String , java . io . File , long , java . lang . String ) { java . io . File parent = IDENT_1 . METHOD_8 ( ) ; if ( ( parent != null ) && ( ! ( parent . exists ( ) ) ) ) { parent . METHOD_9 ( ) ; } if ( ( IDENT_1 . exists ( ) ) && ( ! ( IDENT_1 . METHOD_10 ( ) ) ) ) { throw new java . io . IOException ( ( STRING_6 + ( IDENT_1 . getAbsolutePath ( ) ) ) ) ; } long IDENT_9 = INT_0 * IDENT_10 ; if ( IDENT_9 < 0 ) { org . openqa . selenium . server . IDENT_7 . METHOD_4 . log . METHOD_11 ( STRING_7 ) ; IDENT_9 = Long . MAX_VALUE ; } org . openqa . selenium . IDENT_11 driver = null ; try { driver = METHOD_12 ( IDENT_5 ) ; java . net . URL IDENT_12 = METHOD_13 ( IDENT_13 , IDENT_14 ) ; driver . get ( IDENT_12 . toString ( ) ) ; com . IDENT_15 . selenium . IDENT_16 selenium = new com . IDENT_15 . selenium . IDENT_17 . METHOD_14 ( driver , IDENT_13 ) ; selenium . METHOD_15 ( java . lang . String . valueOf ( IDENT_9 ) ) ; if ( IDENT_18 != null ) { selenium . METHOD_16 ( IDENT_18 ) ; } java . util . List < org . openqa . selenium . IDENT_19 > IDENT_20 = driver . METHOD_17 ( org . openqa . selenium . IDENT_21 . id ( STRING_8 ) ) ; if ( IDENT_20 . isEmpty ( ) ) { throw new java . lang . RuntimeException ( ( STRING_9 + ( driver . METHOD_18 ( ) ) ) ) ; } org . openqa . selenium . server . IDENT_7 . IDENT_22 results = new org . openqa . selenium . server . IDENT_7 . METHOD_19 ( IDENT_12 . toString ( ) ) . run ( driver , selenium , new java . net . URL ( IDENT_13 ) ) ; org . openqa . selenium . server . IDENT_7 . IDENT_23 IDENT_24 = results . METHOD_20 ( ) ; try ( java . io . IDENT_25 writer = java . nio . file . IDENT_6 . METHOD_21 ( IDENT_1 . METHOD_22 ( ) ) ) { IDENT_24 . write ( writer ) ; } return results . METHOD_23 ( ) ? STRING_10 : STRING_11 ; } finally { if ( ( server ) != null ) { try { server . METHOD_24 ( ) ; } catch ( java . lang . Exception e ) { org . openqa . selenium . server . IDENT_7 . METHOD_4 . log . log ( IDENT_26 . IDENT_27 , STRING_12 , e ) ; } } if ( driver != null ) { driver . METHOD_25 ( ) ; } } }
org . junit . Assert . assertEquals ( STRING_10 , result )