faustf

_IEGetObjById dont find ID

10 posts in this topic

#1 ·  Posted (edited)

hi guy 

i have a  script , with this  script  , i must login in ebay  for  take my token,  for  do that  ,   you  must  insert user password and  push button  login , and  in second page push button  i agree ,   the first page is ok  i  just  did do and work good  , but   , the  second page , not  work  with my script  , and i think is correct

this is a page  html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><div></div><div></div><meta content="text/html"><title>eBay: Review Consent Agreement</title><style type="text/css">body,.g-std{font-family:Arial,Helvetica,sans-serif;font-size:small}form{margin:0;padding:0}a:active,a:link,.g-novisited a:visited{color:#00c;text-decoration:none}a:visited{color:#909;text-decoration:none}.g-b{font-weight:bold}.g-em{color:#090;font-weight:bold}.g-err{color:#f00}.g-hlp{color:#666}.g-pipe{color:#99f}.g-txtBx,.g-btn,.g-nav{font-family:Verdana;font-size:x-small}.g-txtBxHlp{color:#666;font-family:Verdana;font-size:x-small}.g-m0{margin:0}a:hover{text-decoration:underline}.g-i{font-style:italic}.g-bi{font-weight:bold;font-style:italic}.g-dft{font-weight:normal}.g-dfti{font-weight:normal;font-style:italic}.g-s{font-size:small}.g-xs{font-size:x-small}.g-m{font-size:medium}.g-l{font-size:large}.g-xl{font-size:x-large}.g-hdn{height:0;line-height:0;overflow:hidden;width:0;position:absolute;font-size:0;z-index:-1;outline:none}.pagewidth{width:100%;min-width:760px}* html .pageminwidth{padding-left:760px}* html .pagecontainer{margin-left:-760px;position:relative}* html .pageminwidth,* html .pagecontainer,* html .pagelayout{height:1px}.brclear{clear:both;height:0;margin:0;font-size:1px;line-height:0;display:block}div.BreadCrumb{border:0;padding:0;margin:0}.coreFooterVerisign{margin-bottom:0;margin-left:125px;margin-right:25px;margin-top:10px}.ebayfooter a:active,.ebayfooter a:link,.ebayfooter a,.ebayfooter a:visited,.ebayfooter a:hover{color:inherit}.r3{width:100%;border:0}.r3_t,.r3_t b,.r3_bl,.r3_bl b{background:url(https://securepics.ebaystatic.com/aw/pics/cmp/ui/sprpanelcrns.png) no-repeat 0 0;font-size:0;height:6px}.r3_t b,.r3_t i,.r3_bl b,.r3_bl i{display:block}.r3_t{background-position:0 -44px}.r3_t b,.r3_bl b{background-position:100% -55px;margin-left:6px}.r3_t i,.r3_bl i{border:solid #ccc;border-width:1px 0 0 0;height:5px;margin-right:6px;overflow:hidden}.r3_bl{background-position:0 -77px}.r3_bl b{background-position:100% -66px}.r3_bl i{border-width:0 0 1px 0}.r3_hm,.r3_c,.r3_s{border:solid #ccc;border-width:0 1px}.r3_hm,.c-sgf .r3_fm{background:url(https://securepics.ebaystatic.com/aw/pics/cmp/ui/sprPanelGrads.gif) repeat-x 0 -900px}.r3_hm{font-weight:bold;font-size:medium;color:#5d5d5d;padding:3px 10px 6px;border-width:0 1px 1px}.r3_cm b{font-weight:bold}.r3_cm{padding:10px}.r3_fm{padding:8px 10px 2px;text-align:right}.fbp{padding-bottom:8px}.r3_sh{padding:8px 10px 6px;border-width:1px}.r3_stm{background:#e8e8e8;color:#5d5d5d;font:normal x-small Verdana;padding:7px 10px;border-bottom:1px solid #dedede}.r3_s{border-width:1px 0 0}.c-sgf .r3_fm{background-color:#e8e8e8;background-position:0 -780px}.c-sgf .r3_bl{background-color:#e8e8e8}.bp{padding-bottom:4px}.po{padding:0}.tp{padding-top:3px}.r3_st{font-size:small;padding:1px 10px 7px}.r3_t,.r3_c,.r3_bl{padding:0!important}b.r3_hm{border-width:1px 0;display:block}.yl-br .r3_t{background-position:0 -308px}.yl-br .r3_t b{background-position:100% -319px}.yl-br .r3_t i,.yl-br .r3_hm,.yl-br .r3_c,.yl-br .r3_s,.yl-br .r3_bl i{border-color:#e5d081}.yl-br .r3_bl{background-position:0 -341px}.yl-br .r3_bl b{background-position:100% -330px}.yl .r3_t{background-position:0 0;background-color:#fff3bd}.yl .r3_t b{background-position:100% -11px}.yl .r3_t i,.yl .r3_hm{border-color:#fcd13c;border-bottom-color:#e1bf48}.yl .r3_hm{background-position:0 0;background-color:#fae16d}.bl .r3_hm{background-position:0 -650px;background-color:#a7b5ef}.bl .r3_t{background-position:0 -176px;background-color:#e7e7ff}.bl .r3_t b{background-position:100% -187px}.bl .r3_t i,.bl .r3_hm{border-color:#b4befb}.bl-br .r3_t{background-position:0 -352px}.bl-br .r3_t b{background-position:100% -363px}.bl-br i,.bl-br .r3_hm,.bl-br .r3_c,.bl-br .r3_s{border-color:#b4befb}.bl-br .r3_bl{background-position:0 -385px}.bl-br .r3_bl b{background-position:100% -374px}.s .r3_t{background-position:0 -220px}.s .r3_t b{background-position:100% -231px}.s .r3_bl{background-position:0 -253px}.s .r3_bl b{background-position:100% -242px}.s i,.s .r3_c,.s .r3_hm,.s .r3_s{border:0 none}.gy .r3_t{background-color:#f6f6f6}.gy .r3_hm{background-position:0 -130px;background-color:#cecece}.gr .r3_t{background-position:0 -132px;background-color:#effac8}.gr .r3_t b{background-position:100% -143px}.gr .r3_t i,.gr .r3_hm{border-color:#a8d131}.gr .r3_hm{background-position:0 -520px;background-color:#b7d26e}.rd .r3_t{background-position:0 -88px;background-color:#ffdad4}.rd .r3_t b{background-position:100% -99px}.rd .r3_t i,.rd .r3_hm{border-color:#f66}.rd .r3_hm{background-position:0 -390px;background-color:#f48e7e}.rd-br .r3_t{background-position:0 -88px}.rd-br .r3_t b{background-position:100% -99px}.rd-br .r3_t i,.rd-br .r3_bl i,.rd-br .r3_hm,.rd-br .r3_c,.rd-br .r3_s{border-color:#f66}.rd-br .r3_bl{background-position:0 -121px}.rd-br .r3_bl b{background-position:100% -110px}.btn-w,.btn-b,.btn-b input,.btn-b b,.btn-b a{background:transparent none no-repeat 0 0;height:25px;display:inline-block;outline:none}.btn-w{text-align:left;height:26px}.btn-p{padding:0 8px 0 8px}.btn-h{display:none}.btn-m{margin:8px 0}.btn-b{background-position:100% -35px;padding:0 3px 0 0;vertical-align:middle;z-index:2}.btn-b input,.btn-b b,.btn-b a{border:0;color:#fff;font:bold small Arial!important;padding:2px 15px 3px;cursor:pointer;margin:0 -3px;white-space:nowrap}.btn-bo{background-position:100% -105px}.btn-bo input,.btn-bo a{background-position:0 -70px}.btn-bp{background-position:100% -175px}.btn-bp input,.btn-bp a{background-position:0 -140px;padding:3px 14px 2px 16px}.btn-bd{background-position:100% -245px;cursor:default}.btn-bd input,.btn-bd b,.btn-bd a{background-position:0 -210px;cursor:default;color:#f5f5f5}.btn-b b,.btn-b a{padding:4px 17px 6px;height:auto}.btn-w,.btn-b,.btn-b b,.btn-b a{position:relative!important}.btn-b a,.btn-b a:hover,.btn-b a:visited,.btn-b a:active{text-decoration:none;color:#fff!important}.btn-b b{display:none}.btn-bp a{padding:5px 16px 5px 18px}.btn-w i{background:#3c58c5 none repeat scroll 0 0;border:2px outset;color:#3c58c5;margin:1px 0 1px 4px;padding:2px 5px 1px;position:absolute;white-space:nowrap;font-size:.923em}.pbn-P,.pbn-P input,.pbn-P b,.pbn-P a{background-image:url(https://securepics.ebaystatic.com/aw/pics/cmp/btn/sprbtnprimary.png)}.displayDivCol{padding:10px 0 20px 14px;font-size:x-large;color:#5d5d5d}#displayDivCol{padding:10px 0 10px 14px;font-size:x-large;color:#5d5d5d}.buildErrorCol1{padding:10px 0 20px 14px}.buildErrorSpan{font-size:x-large;color:#5d5d5d}.mb .aBtn-btn,.mb .aBtn-bClick,.mb .aBtn-bDis{padding:0 8px 0 0;margin:0;line-height:40px}.AuthSpacer1{margin:10px 10px 10px 10px}.AuthSpacer{padding-bottom:10px}.AuthPageWidth{width:65%;float:left;padding-right:20px}.AuthPageWidth1{width:25%}#glbfooter{clear:both}.omnitureNoteDivMargin{margin-bottom:20px}.agreeButtonSpace{float:left}.anchorSpace{padding-top:15px}.errorMessage{font-weight:bold;color:red}.titleHeader_space{font-size:x-large;color:gray;padding-bottom:15px;font-weight:normal;margin:0}.errorIdMessage_color{color:red}.errorMsg_space{padding-bottom:20px}.barColor{background-color:#99c}.violet_Header{padding-bottom:15px}.central_Bar{background-color:#d6deff;font-family:Arial,Helvetica,sans-serif;font-size:large;padding-top:3px;padding-bottom:3px}.title_spacing{padding-left:15px}.clbt{clear:both}</style><!--[if lt IE 8]><style>.btn-b input{position:relative;left:-3px;padding:0 16px 0 15px;width:1%}.btn-b b,.btn-b a{left:-3px;padding:4px 15px 5px 16px}.btn-bp a{padding:5px 14px 4px 17px}</style><![endif]--><!--[if IE 6]><style>.btn-b input{overflow:visible;width:0}</style><![endif]--><!--[if IE 8]><style>.btn-b input{padding:2px 17px 3px}.btn-bp input{background-position:1px -139px}</style><![endif]--><!--[if lt IE 8]><style>.mbt-b input{position:relative;left:-7px;padding:0 18px 0 15px;width:1%}.mbt-b b,.mbt-b a{left:-7px;padding:5px 17px 5px 15px}.mbt-bp a{padding:6px 16px 4px}</style><![endif]--><!--[if IE 6]><style>.mbt-b input{width:0;overflow:visible}</style><![endif]--><!--[if IE 8]><style>.mbt-bp input{background-position:1px -139px}</style><![endif]--></head><body id="body"><script type="text/javascript" src="https://secureir.ebaystatic.com/v4js/z/i5/r32gctn0fu3vjkpge2mjhij3q.js#SYS-ZAM_vjo_e967_1_Ear_en_US"></script><script type="text/javascript">vjo.dsf.error.ErrorHandlerManager.register(new vjo.dsf.error.DefaultErrorHandler());
vjo.dsf.error.ErrorHandlerManager.enableOnError(true, false);
vjo.dsf.cookie.VjCookieJar.sCookieDomain = '.ebay.com';vjo.dsf.cookie.VjCookieJar.writeCookielet('ebay','js','1');
</script><div></div>
    <div class="pagewidth">
        <div class="pageminwidth">
            <div class="pagelayout">
                <div class="pagecontainer">
                    <div class="GlobalNavigation" id="GlobalNavigation"><div><script type="text/javascript">var _GlobalNavHeaderUtf8Encoding=true,includeHost='https://secureinclude.ebaystatic.com/';</script><link href="https://secureir.ebaystatic.com/rs/v/k1an05srqe20pnomgjba4vh20ei.css?proc=DU:N" type="text/css" rel="stylesheet"><div class="gh-acc-exp-div gh-hide-if-nocss"><a id=gh-hdn-stm class=gh-acc-a href="#mainContent">Skip to main content</a></div><!--[if lt IE 9]><div id="gh" role="banner" class="gh-IE8 gh-flex gh-pre-js gh-w gh-minH "><![endif]--><!--[if (gte IE 9)|!(IE)]><!--><header id=gh role="banner" class="gh-flex gh-pre-js gh-w gh-minH "><!--<![endif]--><table class="gh-tbl"><tbody><tr><td class="gh-td"><!--[if lt IE 9]><a href="http://www.ebay.com/"  _sp="m570.l2586" id="gh-la">eBay<img role="presentation"  width=117 height=120 style='clip:rect(47px, 118px, 95px, 0px); position:absolute; top:-47px;left:0'  alt="" src="https://secureir.ebaystatic.com/rs/v/apstidvcvu5pxlbxkphrrdo5iqv.png" id="gh-logo"></a><![endif]--><!--[if (gte IE 9)|!(IE)]><!--><a href="http://www.ebay.com/" _sp="m570.l2586" id="gh-la">eBay<img role="presentation"  width=250 height=200 style='clip:rect(47px, 118px, 95px, 0px); position:absolute; top:-47px;left:0'  alt="" src="https://secureir.ebaystatic.com/rs/v/fxxj3ttftm5ltcqnto1o4baovyl.png"  id="gh-logo"></a><!--<![endif]--></td></tr></tbody></table><!--[if lt IE 9]></div><![endif]--><!--[if (gte IE 9)|!(IE)]><!--></header><!--<![endif]--><!--ts:2016.05.13.23:00--><!--rq:--><!--rvr:84rc7--><script src="https://secureir.ebaystatic.com/rs/v/btozt5kwui1jbeo4irdyb4hudun.js" type="text/javascript"></script><script type="text/javascript">
    GH={init:function(){},log:function(){}};
 </script><script type="text/javascript">if(typeof GH!="undefined" && GH){GH_config={"siteId":"0","geoLang":"[]",sin:0,ct:0,pageId:5310,notifCfg:null,catURL:'https://secureinclude.ebaystatic.com/categoryjs/113/en_US_MAIN/category_113en_US_MAIN0.js',impId:'Apr36coA*'};GH.init();}</script><script type="text/javascript">var RoverDomainBaseUrl = 'https://rover.ebay.com';var svrGMT = 1463252598360;</script></div></div>
                    <div class="AreaNavigation" id="AreaNavigation"></div>
                    <div class="AreaTitle" id="AreaTitle"><div></div></div>
                    <div class="PageLevelMessageArea" id="PageLevelMessageArea"></div>
                    <div class="CentralArea" id="CentralArea"><div><div class="displayDivCol"><b id="mainContent"><h1 class="g-m0 g-xl g-dft">Grant application access: productfaust</h1></b></div><form name="frmAuth" id="frmAuth" method="post" action="https://signin.ebay.com/ws/eBayISAPI.dll?VAppJanessa"><div><div><div id="greyRCP" style="background-color: #e8e8e8"><table cellpadding="0" cellspacing="0" class="r3 c s"><thead id="greyRCPh" class=""><tr id="greyRCP_t"><td class="r3_t"><b><i></i></b></td></tr></thead><tr id="greyRCP_c"><td id="greyRCPcm" class="r3_c"><div class="r3_cm bp tp" id="greyRCP_ct"><div><div><div><div>Ready to use productfaust? Great! We need your consent to share your eBay data. Don't worry, we won't share your eBay password. You can change this any time by editing your <a href="http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&CurrentPage=MyeBayPreferences" target="new">account preferences<span class="g-hdn">- opens in a new window or tab</span></a>.</div><p></p><div>Please take the time to read productfaust's terms of service and <a id="priv_policy" href="" target="new">privacy policy<span class="g-hdn">- opens in a new window or tab</span></a>, because these policies will apply when you use this service. Remember, we don't manage policies set by other companies. </div></div><table border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><br>By clicking on the "I agree" button, you're allowing us to link your eBay account with productfaust.<br><br></td></tr></table><div><div class="agreeButtonSpace"><b id="submit" class="btn-w btn-m btn-p"><i>I agree</i><span id="spn_submit" class="btn-b pbn-P"><input id="but_submit" name="submit" value="I agree" type="submit"><b id="txt_submit">I agree</b></span></b></div><div class="anchorSpace"><span>No thanks, take me to the <a href="https://signin.ebay.com:443/ws/eBayISAPI.dll?VAppJanessa&reqinput=ddbf89a0f47215616911618a85c921856ea301c94d41b7b1e3ea57110b9815c8435f1b9e16e502e611fb56173b979b1916a2a43cdd2acfd79bc33379889e29c07d9a465291ff2e45187168e5e77fb202c3285b0459cf0805c2636d08a273394975c6114db9e4a348fceabcd12ebfb72c8c64a8b5aba7052b0ee9f4d7a9008b4be1d56024699bb0d3087c632d1f1e5a2418e79edbbae5b2d5d51ee753f3315a46ec0bc9e739cd7c1ff72510f58baa85a50f4d95ea27a1a2a1422032e1f5edb12c&thirdpartyreject=1">Application's website</a> or <a href="https://signin.ebay.com:443/ws/eBayISAPI.dll?VAppJanessa&reqinput=ddbf89a0f47215616911618a85c921856ea301c94d41b7b1e3ea57110b9815c8435f1b9e16e502e611fb56173b979b1916a2a43cdd2acfd79bc33379889e29c07d9a465291ff2e45187168e5e77fb202c3285b0459cf0805c2636d08a273394975c6114db9e4a348fceabcd12ebfb72c8c64a8b5aba7052b0ee9f4d7a9008b4be1d56024699bb0d3087c632d1f1e5a2418e79edbbae5b2d5d51ee753f3315a46ec0bc9e739cd7c1ff72510f58baa85a50f4d95ea27a1a2a1422032e1f5edb12c&thirdpartyreject=2">eBay homepage</a></span></div></div></div></div></div></td></tr><tr id="greyRCP_b"><td class="r3_bl"><b><i></i></b></td></tr></table></div></div><br></div><input name="reqinput" value="8750ca0783b66c5bfe08ffe0881b251a945dadd3a4c81bec6218c28b7ef445779264180d3b4a1f18d194bc862be1326f1e20639eb0824518af121e2d50c97708d7bbdf64bd2c8b4d8533773fd5c13ecc" type="hidden"><input type="hidden" name="UsingSSL" value="1"><input type="hidden" name="siteid" value="0"><input type="hidden" name="co_partnerId" value="2"><input type="hidden" name="state" value="1"><input type="hidden" name="runame" value="develop_faustf-developf-develo-qvepd"><input type="hidden" name="ruparams" value=""><input type="hidden" name="sid" value="UUYDAA**b0a697a01540a5efd55414c4ffff65f3"><input type="hidden" name="sessid" value="UUYDAA**b0a697a01540a5efd55414c4ffff65f3"><input type="hidden" name="accept" value="https://signin.ebay.com/ws/eBayISAPI.dll?ThirdPartyAuthSucessFailure"><input type="hidden" name="itemwatchchecked" value="1"><input type="hidden" name="itemsellchecked" value="1"><input type="hidden" name="itemrelistchecked" value="1"><input type="hidden" name="itemadddescchecked" value="1"><input type="hidden" name="itemfeedbackchecked" value="1"><input type="hidden" name="itembidbuychecked" value="1"><input type="hidden" name="iagree" value="1"><input type="hidden" name="thirdpartyaccept" value="1"></form><br></div><div><img src="https://securepics.ebaystatic.com/aw/pics/s.gif" height="5" alt=""><div></div><!--[if lt IE 9]><div id="glbfooter" role="contentinfo" class="gh-w gh-flex"><![endif]--><!--[if (gte IE 9)|!(IE)]><!--><footer id="glbfooter" role="contentinfo" class="gh-w gh-flex"><!--<![endif]--><div><div id=rtm_html_1650></div><div id=rtm_html_1651></div></div><h2 class=gh-ar-hdn>Additional site navigation</h2><div id="gf-t-box"><table class="gf-t"><tr><td colspan=2><ul id="gf-l" class="gh-hide-if-nocss"><li class="gf-li"><a href="http://www.ebayinc.com" 
         _exsp=m571.l2602 class="thrd gf-bar-a"
    >About eBay</a></li><li class="gf-li"><a href="http://announcements.ebay.com" 
         _exsp=m571.l2935 class="thrd gf-bar-a"
    >Announcements</a></li><li class="gf-li"><a href="http://community.ebay.com" 
         _exsp=m571.l1540 class="thrd gf-bar-a"
    >Community</a></li><li class="gf-li"><a href="http://pages.ebay.com/securitycenter/index.html" 
         _exsp=m571.l2616 class="thrd gf-bar-a"
    >Security Center</a></li><li class="gf-li"><a href="http://resolutioncenter.ebay.com/" 
         _sp=m571.l1619 class="thrd gf-bar-a"
    >Resolution Center</a></li><li class="gf-li"><a href="http://pages.ebay.com/sellerinformation/index.html" 
         _exsp=m571.l1613 class="thrd gf-bar-a"
    >Seller Information Center</a></li><li class="gf-li"><a href="http://pages.ebay.com/help/policies/overview.html" 
         _exsp=m571.l2604 class="thrd gf-bar-a"
    >Policies</a></li><li class="gf-li"><a href="https://www.ebaypartnernetwork.com/files/hub/en-US/index.html" 
         _exsp=m571.l3947 class="thrd gf-bar-a"
    >Affiliates</a></li><li class="gf-li"><a href="http://ocs.ebay.com/ws/eBayISAPI.dll?CustomerSupport" 
         _sp=m571.l1545 class="thrd gf-bar-a"
    >Help & Contact</a></li><li class="gf-li"><a href="http://pages.ebay.com/sitemap.html" 
         _exsp=m571.l2909 class="thrd gf-bar-a"
    >Site Map</a></li></ul></td></tr><tr valign="top"><td class="gf-legal">Copyright © 1995-2016 eBay Inc. All Rights Reserved. <a href="http://pages.ebay.com/help/policies/user-agreement.html">User Agreement</a>, <a href="http://pages.ebay.com/help/policies/privacy-policy.html">Privacy</a>, <a href="http://pages.ebay.com/help/account/cookies-web-beacons.html">Cookies</a> and <a href="http://cgi6.ebay.com/ws/eBayISAPI.dll?AdChoiceLandingPage&partner=0"id=gf-AdChoice>AdChoice</a></td><td nowrap align=center><a title="Verify site's SSL certificate" _exsp="m571.l3943" href="https://trustsealinfo.websecurity.norton.com/splash?form_file=fdf/splash.fdf&dn=www.ebay.com&lang=en" onclick="this.href='https://trustsealinfo.websecurity.norton.com/splash?form_file=fdf/splash.fdf&dn=#D#&lang=en'.replace(/#D#/,location.host);return true" ><i id=gf-norton>Norton Secured - powered by Verisign</i></a></td></tr></table></div><!--[if lt IE 9]></div><![endif]--><!--[if (gte IE 9)|!(IE)]><!--></footer><!--<![endif]--><!--ts:2016.05.13.23:01--><!--rq:--><!--rvr:84rc7--></div><div></div></div>
                    <div class="SupportiveNavigation" id="SupportiveNavigation"><div></div></div>
                </div>
            </div>
        </div>
    </div>
<!--eog4d72f+>e5>,RcmdId VAppJanessa,RlogId p4plaijkehq%60%3C%3D%60mb6a57d.%3C%607%3B-154b0a6be58-0x184--><script type="text/javascript">
vjo.ctype("vjo.darwin.core.ebayheader.rover.FooterRover").needs("vjo.dsf.cookie.VjCookieJar").needs('vjo.dsf.assembly.VjClientAssemblerRequest').props({VA:vjo.dsf.assembly.VjClientAssembler,command:null,roverService:function(roverUrl)
{if(document.location.protocol.has("https:")){return;}
this.command=roverUrl;if(!roverUrl){return;}
if(!this.isCookieValid()){return;}
vjo.dsf.EventDispatcher.addEventListener(window,"load",this.sendRequest,this);},sendRequest:function()
{var req=new vjo.dsf.assembly.VjClientAssemblerRequest(this.command,this.handleResponse,this,'cb',false);this.VA.load(req);},isCookieValid:function()
{var cookielet=vjo.dsf.cookie.VjCookieJar.readCookie("dp1","idm");if(!cookielet){return true;}else{return false;}},handleResponse:function(content)
{if(content&&content.length>1)
{var arrlen=content.length-1;for(var i=0;i<arrlen;i++)
{this.createImage(content[i]);}
this.setCookieExpiration(content[arrlen]);}},createImage:function(imgSrc)
{if(imgSrc&&imgSrc.length>1)
{var image=document.createElement("IMG");image.width="1";image.height="1";image.src=imgSrc;image.alt="";document.body.appendChild(image);}},setCookieExpiration:function(date)
{if(typeof date=='number'&&date>0)
{vjo.dsf.cookie.VjCookieJar.writeCookielet("dp1","idm",'1',date/86400,'');}}}).endType();


vjo.ctype("vjo.darwin.tracking.rover.Rover").needs("vjo.dsf.cookie.VjCookieJar").props({roverTrack:function(){var clientGMT=new Date().getTime();var cosInMilli=vjo.darwin.tracking.rover.Rover.getClientOffset(clientGMT);var tpimObj=vjo.dsf.cookie.VjCookieJar.readCookieObj("npii","tpim");if(tpimObj==null||tpimObj.value==""){return;}
var tpimExp=parseInt(tpimObj.maxage,16)*1000;if(tpimExp>0){var gmtDelta=tpimExp-clientGMT+cosInMilli;var expiredTime=15552000000;if((gmtDelta>expiredTime||gmtDelta<0)&&typeof(RoverSyncDropped)=='undefined'&&typeof(RoverNsCapable)=='undefined'){vjo.darwin.tracking.rover.Rover.dropRoverSyncImage();}}},dropRoverSyncImage:function(){if(typeof(RoverDomainBaseUrl)!=='undefined'&&RoverDomainBaseUrl.length>0){var im=document.createElement("img");im.width="1";im.height="1";im.src=RoverDomainBaseUrl+"/roversync/?rtpim=1&mpt="+new Date().getTime();document.body.appendChild(im);}},getClientOffset:function(clientGMT){var offsetInMilli;var sOffset=vjo.dsf.cookie.VjCookieJar.readCookie("ebay","cos");if(sOffset!==null&&sOffset.length>0){offsetInMilli=parseInt(sOffset,16)*1000;}
else if(typeof(svrGMT)!=='undefined'){offsetInMilli=clientGMT-svrGMT;var secOffset=Math.round(offsetInMilli/1000.0);if(!isNaN(secOffset)){vjo.dsf.cookie.VjCookieJar.writeCookielet("ebay","cos",secOffset.toString(16));}}
if(isNaN(offsetInMilli)){offsetInMilli=1800000;}
return offsetInMilli;}}).endType();


vjo.ctype("vjo.darwin.core.dynamicmenu.ReplaceHandler").props({replace:function(instanceId,handler,domain){var dm=vjo.Registry.get(instanceId);if(null!=dm){dm.replaceJSONDataHandler(handler,domain);}}}).endType();


vjo.ctype("vjo.darwin.core.button.Button").needs("vjo.dsf.Element",'E').needs("vjo.dsf.Message",'M').needs("vjo.dsf.ServiceEngine",'S').needs("vjo.dsf.client.Browser").needs("vjo.dsf.EventDispatcher",'ED').protos({m:null,state:null,dCls:null,O:null,constructs:function(m)
{var t=this;t.m=m;t.state='';var Sc=m.scope;t.dCls=Sc+'-b '+'moz '+Sc+'-b';t.Cls=[{'mouseup':[0,''],'mousedown':[0,'p'],'mouseout':[0,''],'mouseover':[0,'o'],'focus':[1,'o'],'blur':[1,''],'entrue':'d','enfalse':''}];t.O=[];t.init();},init:function(){var t=this,D=t.vj$.ED,O=t.get();D.addEventListener(window,'load',function(){t.enDis(t.m.dis)},window);for(var i in t.Cls[0]){var V=O[t.Cls[0][i][0]];if(V)D.addEventListener(V,i,t.handler(i),t);}},handler:function(eT){var t=this;return function(){t.changeState({'eventType':eT});};},get:function(){var t=this,E=t.vj$.E,m=t.m;if(t.O.length==0){t.O.push(E.get(m.SId),E.get(m.BId),E.get(m.LId));}
return t.O;},changeState:function(e){var t=this,O=t.get(),eT=e.eventType;if((O[1].disabled||O[0].className.indexOf('-bd')!=-1)||(t.state=='mousedown'&&eT=='focus'))return;t.state=eT;O[0].className=t.dCls+t.Cls[0][eT][1]+' '+t.m.BT;},enable:function(){this.enDis(false);},disable:function(){this.enDis(true);},isDisabled:function(){return this.m.dis;},enDis:function(bool){var t=this,N='none',E=t.vj$.E,m=t.m,O=t.get(),b=O[1],bS=b.style,tS=(O[2])?O[2].style:"",B=vjo.dsf.client.Browser.bIE;O[0].className=t.dCls+t.Cls[0]['en'+bool]+' '+t.m.BT;t.m.dis=bool;if(m.tp!==2)b.disabled=bool;else b.display=(bool)?N:"";if(!B&&m.tp!=2)return;if(bool){tS.display="inline-block";if(!B){tS.display="-moz-inline-box";b.style.setProperty("display","none","important");}
bS.display=N;}else{tS.display=N;bS.display="";}}}).props({enable:function(ins){var o=vjo.Registry.get(ins);if(o)o.enable();},disable:function(ins){var o=vjo.Registry.get(ins);if(o)o.disable();},onSubmit:function(svcId,evt,retType){this.sendMessage(svcId,evt);return(!retType&&retType==false)?false:true;},sendMessage:function(svcId,evt){var o=this.vj$,msg=new o.M(svcId);msg.event=evt;o.S.handleRequest(msg);}}).endType();


</script><script type="text/javascript">vjo.darwin.tracking.rover.Rover.roverTrack();
(function () {
var _r = vjo.Registry;
_r.put('submit_js',new vjo.darwin.core.button.Button({"FName":null,"BT":"pbn-P","scope":"btn","LId":"txt_submit","svcId":"BTN_SBMT_SRV_submit","tp":1,"BId":"but_submit","SId":"spn_submit","dis":false})); })();
(function(){
var _d=vjo.dsf.EventDispatcher;
var _r=vjo.Registry;
_d.add('frmAuth','submit',function(event) { return this.onSubmit("BTN_SBMT_SRV_submit", event); },vjo.darwin.core.button.Button);})();
(function(){
var _s=vjo.dsf.ServiceEngine, $se=_s.register;var _r=vjo.Registry;

$se(4,'BTN_SBMT_SRV_submit',function (message) {_r._submit_js.disable(); });
})();
</script></body></html>

and  this is a  script 

Func _11()

    _10()

    Global $oIE = _IECreate("https://signin.ebay.com/ws/eBayISAPI.dll?SignIn&RuName=" & $sRuName & "&SessID=" & $sSessionID, 0, 1, 1, 1)
    _IELoadWait($oIE)
    Local $sText = _IEBodyReadHTML($oIE)
    ;_File_write_fast(@ScriptDir&"\html.txt",$sText)
    Local $aArray_user_pass = StringRegExp($sText, '(?is)" class="fld" id="(.*?)"', $STR_REGEXPARRAYGLOBALMATCH)
    Local $oForm = _IEGetObjById($oIE, "SignInForm")
    MsgBox(0,'',$oForm)
    Local $oUsername = _IEFormElementGetObjByName($oForm, $aArray_user_pass[0])
    _IEFormElementSetValue($oUsername, $sUser)
    Local $pass = _IEFormElementGetObjByName($oForm, $aArray_user_pass[1])
    _IEFormElementSetValue($pass, $sPassword)
    Local $oBotton_SingIn = _IEGetObjById($oForm, "sgnBt")
    _IEAction($oBotton_SingIn, "Click")
    _IELoadWait($oIE)

#cs
Local $oBtns = _IELinkGetCollection($oIE)
    Local $I
    For $oBtn In $oBtns
        $classname = String($oBtn.classname())
        If $classname = ".agreeButtonSpace" Then
            ConsoleWrite("trovato")
        EndIf

        Next
#ce

    Local $oBotton_Agree = _IEGetObjById($oForm, "submit")
    _IEAction($oBotton_Agree, "Click")
    _IELoadWait($oIE)

Sleep(2000)

    $sXML_Command = _
            '<?xml version="1.0" encoding="utf-8"?>' & _
            '<FetchTokenRequest xmlns="urn:ebay:apis:eBLBaseComponents">' & _
            ' <SessionID>' & $sSessionID & '</SessionID>' & _
            '</FetchTokenRequest>' & _
            ''
    Local $Reslut_getitemstatus = _eBay_FetchToken($sXML_Command, $sAmbient) ; Basic Call Retrieves products that are associated with a supplied keyword
    ;Local $Reslut_getitemstatus = _eBay_FindProducts("","Reference","11450","Items",$Formato) ; Getting Item Details by ProductID
    Local $xml_castrato = StringRegExp($Reslut_getitemstatus, '(?i)<(.*?)>(.*?)</', $STR_REGEXPARRAYGLOBALMATCH)
    _ArrayDisplay($xml_castrato)
    ConsoleWrite($Reslut_getitemstatus)

EndFunc   ;==>_11

thankz  at  all for  help   :)

 

Edited by faustf
changed codebox to HTML

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Please click "edit" on your post.
When post open in EDIT mode , then double click in your HMTL Snippet - when this HTML snippet open in EDIT mode change the type from AutoIt to HMTL.

This will change the syntax coloring to the proper one, and the code becomes much more readable.

Edited by mLipok

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

is  just in html mode

:blink:

Edited by faustf

Share this post


Link to post
Share on other sites

ah.. indeed, but it looks so strange, sorry for my glasses ;)



Why you need to get this token ? Is this token is not constant ?
Sorry for my question I'm not eBay user.

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

yea the api ebay  is  a    new world 

i explain little  bit  in practic after singin in developer program  , ebay  release  to you  4  code    app id dev id  cert id  and  runname  ,   when you develop your  app , you must  pass  this code  at  api of  ebay  , and  ebay  answer with  a session id code  , with this code and  runame code   you  must  do  a (url) call at ebay , and  ebay answer  to you with  a  mask for singin  ,  at this point  you login in  and  validate the  session and  ebay release to you a token , with this token , you can call other api  for write feedback for example  or  sell somthing product ,  whitout  this procedure , you can only   read ,  you just see  the  part of my udf for reading  :)

 

Edited by faustf

Share this post


Link to post
Share on other sites

So as I understand if you want to send or change anything on eBay via API you must first login via WEB for each new API sesion, again and again ?


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

yep you  must  do  only one   and  token during  i think  one  year , (dont remember  how  much  but  more or less one  year)

Edited by faustf

Share this post


Link to post
Share on other sites

So why you need to automate it.
Just make an editbox to type it manualy, store it. And this is all.
After a year user should renew this token manualy.


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites

I dont know if i got it right (you really should use a translator), but try this:

Local $oBotton_Agree = _IEGetObjById($oIE, "submit")
_IEAction($oBotton_Agree, "Click")
_IELoadWait($oIE)

 

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

for @mLipok i prefer , auto-login , i think  the app is professional :)

o  Sorry for my bad english @MichaelHB  :):>, and  thankz  for the  code  , work  so good  

 

Edited by faustf

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now