javascript - Login form in iframe from Aliexpress doesn't work in PhantomJS -
i'm trying login aliexpress through phantomjs, script doesn't work , can't figure out why. i'm using phantomjs version 2.0.0. the login form inside iframe, maybe that's problem. this code: var page = new webpage(), step = 0, loadinprogress = false, timeout = false; var url = 'https://login.aliexpress.com/buyer.htm?spm=2114.11040108.1000002.7.8yvuzj&return=http%3a%2f%2fcl.aliexpress.com%2f'; function fill , submit form inside i-frame. var sendform = function(){ var iframeref = function( frameref ) { return frameref.contentwindow ? frameref.contentwindow.document : frameref.contentdocument; }; var iframe = iframeref(document.getelementbyid('alibaba-login-box')); var arr = iframe.getelementbyid('login-form'); arr.elements["fm-login-id"].value="my-email"; arr.elements["fm-login-password"].value="my-password"; iframe.getelementb...