Bonjour,
Voici la page web de l'écran de connexion de ma box :
Code :
- <!DOCTYPE html>
- <html lang="fr">
- <head>
- <title>Bbox - connexion</title>
- <meta charset="utf-8">
- <meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="HandheldFriendly" content="True">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <!-- Style Sheets -->
- <link href='/css/bbox-merge.css?build=10.1.2' media='screen' rel='stylesheet' type='text/css'> <!--[if LTE IE 8]>
- <link rel="stylesheet" type="text/css" media="all" href="/css/fs.gridlock-ie.css?build=10.1.2" />
- <![endif]-->
- <!--[if lt IE 9]>
- <script src="/js/html5shiv.js?build=10.1.2"></script>
- <![endif]-->
- </head>
- <body class="tvw620i feat-checker feat-biloader no-feat-temperature no-feat-orientation no-feat-light feat-usb feat-ht40 feat-5g feat-scan-5g feat-hotspot feat-wps feat-scanwifi no-feat-alert-save no-feat-search remote-off gridlock">
- <div class="page-login">
- <div class="login-form">
- <div class="row">
- <div class="desktop-6 desktop-push-3 tablet-4 tablet-push-1 mobile-full panel">
- <div class="branding"></div>
- <p class="subtitle">Interface d'administration</p>
- <form id="login-form">
- <div class="textfield">
- <input type="password" placeholder="Mot de passe" id="password" name="password">
- <div id="password-message" class="alert-message">
- </div>
- </div>
- <div class="cb-container">
- <div class="cb">
- <input type="checkbox" value="None" id="cb-stay-logged" name="check" checked />
- <label for="cb-stay-logged"></label>
- </div>
- <div class="cb-label">
- rester connecté
- </div>
- </div>
- <div class="btn-container btn-login">
- <button class="cta-1" type="submit">CONNEXION</button>
- </div>
- <div class="pwd-lost" style="display:none;">
- <a href="" target="_self">mot de passe oublié ?</a>
- </div>
- </form>
- <div class="spacer-hz"></div>
- <div class="notify" style="display:none;">
- <span class="internet">
- <span class="ok"></span>
- </span>
- <span class="voip">
- </span>
- <span class="wifi">
- </span>
- <span class="iptv">
- </span>
- <span class="usb">
- </span>
- <span class="parental">
- </span>
- <span class="night">
- </span>
- <span class="dl-speed">
- </span>
- <span class="ul-speed ">
- </span>
- <span class="voicemail">
- </span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript" src="/js/messages.js?build=10.1.2"></script><!-- Scripts -->
- <script type='text/javascript' src='/js/bbox-merge.js?build=10.1.2'></script><script type="text/javascript" src="/js/login.js?build=10.1.2"></script>
- <!--[if LTE IE 9]>
- <script type="text/javascript" src="/js/css3-mediaqueries.js?build=10.1.2"></script>
- <![endif]-->
- </body>
- </html>
|
Et voici ma tentative de script pour me connecter :
'Login bbox
Dim objWshShell,IE
Set objWshShell = Wscript.CreateObject("Wscript.Shell" )
Set IE = CreateObject("InternetExplorer.Application" )
With IE
.Visible = True
.Navigate "http://192.168.1.254"
'Wait for Browser
Do While .Busy
WScript.Sleep 100
Loop
.Document.getElementsByName("password" ).Item(0).Value = "MyPassord"
.Document.Forms(0).submit
Do While .Busy
WScript.Sleep 100
Loop
End With
|
La saisie du mot de passe fonctionne bien, mais pas le "Submit" du formulaire, auriez-vous une piste à me suggérer ?
Message édité par unisev le 20-12-2015 à 21:58:50