@@ -16,7 +16,7 @@ goog.require('safaridriver.message.Connect');
16
16
*/
17
17
safaridriver . client . init = function ( ) {
18
18
var h2 = document . createElement ( 'h2' ) ;
19
- h2 . innerHTML = 'SafariDriver Client ' ;
19
+ h2 . innerHTML = 'SafariDriver Launcher ' ;
20
20
document . body . appendChild ( h2 ) ;
21
21
22
22
var div = document . createElement ( 'div' ) ;
@@ -35,7 +35,9 @@ safaridriver.client.init = function() {
35
35
}
36
36
url = new goog . Uri ( url ) ;
37
37
38
- log . info ( 'Requesting connection at ' + url + '...' ) ;
38
+ log . info ( 'Connecting to SafariDriver browser extension...' ) ;
39
+ log . info ( 'Extension logs may be viewed by clicking the Selenium [\u2713] ' +
40
+ 'button on the Safari toolbar' ) ;
39
41
var numAttempts = 0 ;
40
42
var message = new safaridriver . message . Connect ( url . toString ( ) ) ;
41
43
connect ( ) ;
@@ -44,12 +46,14 @@ safaridriver.client.init = function() {
44
46
numAttempts += 1 ;
45
47
var acknowledged = message . sendSync ( window ) ;
46
48
if ( acknowledged ) {
47
- log . info ( 'Request acknowledged; connecting...' ) ;
49
+ log . info ( 'Connected to extension' ) ;
50
+ log . info ( 'Waiting for extension to connect to client at ' + url ) ;
48
51
} else if ( numAttempts < 5 ) {
49
52
var timeout = 250 * numAttempts ;
50
53
setTimeout ( connect , timeout ) ;
51
54
} else {
52
- log . severe ( 'Unable to establish a connection with the SafariDriver' ) ;
55
+ log . severe (
56
+ 'Unable to establish a connection with the SafariDriver extension' ) ;
53
57
}
54
58
}
55
59
} ;
0 commit comments