1 <html> 2 <head></head> 3 <script> 4 5 function getType() { 6 sendValueToTest(navigator.connection.type); 7 } 8 9 function getOnLine() { 10 sendValueToTest(navigator.onLine); 11 } 12 13 function sendValueToTest(value) { 14 window.domAutomationController.setAutomationId(0); 15 window.domAutomationController.send(value); 16 } 17 18 </script> 19 </html> 20