stgzkr Posted October 10, 2016 Share Posted October 10, 2016 arkadaşlar merhaba. uniurlframe ile bir web sayfasının adresine gidiyorum. bu sitede ekteki resimdeki gibi bir şifre paneli geliyor. bu pencereyi delphi tarafında yakalayıp icirisindeki kullanıcı adı ve şifre kısmına benim belirlediğim değerleri yazıp giriş tuşuna bastırma şansımız varmı. teşekkürler. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 10, 2016 Administrators Share Posted October 10, 2016 Bu mümkün değil çünkü tarayıcının güvenlik ayarları buna izin vermez. Quote Link to comment Share on other sites More sharing options...
stgzkr Posted October 10, 2016 Author Share Posted October 10, 2016 tesekkurler farshad hocam. peki şunu yapabilirmiyim. uniurlframe ile html sayfasındaki iki adet inputbox mevcut. burayı parse ederek username ve pass inputuna veri atayıp login butonuna delphi tarafından tıklamak mümkünmüdür. EmbeddedWB1.OleObject.Document.GetElementByID('uyeadi').Value :=trim(edit1.Text); embededwb1 nesnesi ile bunu yapabiliyorduk ama uniurl frame ile bu özellikleri göremedim. teşekkürler. <div id="loginBox" class="content"> <!--USERNAME--><input id="userName" name="userName" type="text" class="input userName" value="Kullanıcı Adı" onfocus="this.value=''" /><!--END USERNAME--> <!--PASSWORD--><input id="pass" name="pass" type="password" class="input pass" value="Password" onfocus="this.value=''" /><!--END PASSWORD--> </div> <!--END CONTENT--> <!--FOOTER--> <div class="footer"> <!--LOGIN BUTTON--><input type="submit" name="submit" value="Sisteme Giriş" class="button loginSubmit" /><!--END LOGIN BUTTON--> <!--REGISTER BUTTON<input type="submit" name="submit" value="Register" class="register" /><!--END REGISTER BUTTON--> </div> Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 10, 2016 Administrators Share Posted October 10, 2016 Bu ancak her iki adres aynı domain'de ise mümkündür. Yani ana sayfa ve urlframe'deki adres aynı domain'a ait olacak yoksa tarayıcı izin vermez. Quote Link to comment Share on other sites More sharing options...
stgzkr Posted October 10, 2016 Author Share Posted October 10, 2016 Uygulamanın yüklü olduğu sunucu ile url aynı domainde. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 10, 2016 Administrators Share Posted October 10, 2016 UrlFrame tamamen farklı bir mantıkla çalışıyor. Bunun için JS kodu yazıp urlframe'in DOM elementlerine ulaşmak lazım. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.