2017-10-21 119 views
1

我正在使用imacros和Chrome記錄登錄到5個網站。我不使用加密,只需輸入每個站點的登錄名和密碼即可。其中四個網站運行良好,但www.sportsbetting.ag,給了我一個網頁,說我的「密碼字段必須有一個值」。當我瀏覽這些步驟時,我可以看到,對於該站點,它放入了正確的登錄名,但卻是一個無意義的密碼,而不是代碼中包含的密碼。Imacros上的一個網站的密碼失敗

VERSION BUILD=844 RECORDER=CR 
URL GOTO=https://www.sportsbetting.ag/ 
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:loginForm ATTR=ID:CustomerID CONTENT=SB341413 
SET !ENCRYPTION NO 
TAG POS=1 TYPE=INPUT:PASSWORD FORM=ID:loginForm ATTR=ID:Password CONTENT=FAKEword 
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:loginForm ATTR=ID:button-submit-login 

出於保護隱私的我已經使用FAKEword上面,而不是實際的密碼,但我已經檢查了實際的登錄名和密碼多次,以確保我輸入正確無誤。

回答

0

我確認這是一個用於Chrome瀏覽器的imacros for Chrome 的一個bug。我遇到同樣的問題。它似乎正在輸入密碼哈希,而不是密碼本身。

我還測試了Kantu Browser Automation(像iMacros這樣的擴展,但使用Selenium IDE類似的命令),登錄工作得很好。作爲記錄在這裏我的硒代碼:

{ 
    "CreationDate": "2017-10-21", 
    "Commands": [ 
    { 
     "Command": "open", 
     "Target": "https://www.sportsbetting.ag/", 
     "Value": "" 
    }, 
    { 
     "Command": "click", 
     "Target": "id=CustomerID", 
     "Value": "" 
    }, 
    { 
     "Command": "type", 
     "Target": "id=CustomerID", 
     "Value": "SB5xxxxx" 
    }, 
    { 
     "Command": "type", 
     "Target": "id=Password", 
     "Value": "xxxxxxxxxxxx" 
    }, 
    { 
     "Command": "clickAndWait", 
     "Target": "id=button-submit-login", 
     "Value": "" 
    }, 
    { 
     "Command": "selectFrame", 
     "Target": "index=0", 
     "Value": "" 
    } 
    ] 
} 
0

在你可以嘗試錄製宏在「實驗事件錄製模式」類似的情況。也許下面的代碼可能工作:

VERSION BUILD=844 RECORDER=CR 
URL GOTO=https://www.sportsbetting.ag/ 
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:loginForm ATTR=ID:CustomerID CONTENT=SB341413 

EVENT TYPE=CLICK SELECTOR="HTML>BODY>HEADER>DIV:nth-of-type(2)>DIV:nth-of-type(2)>FORM>LABEL:nth-of-type(2)>INPUT" BUTTON=0 
EVENTS TYPE=KEYPRESS SELECTOR="HTML>BODY>HEADER>DIV:nth-of-type(2)>DIV:nth-of-type(2)>FORM>LABEL:nth-of-type(2)>INPUT" CHARS="FAKEword" 

TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:loginForm ATTR=ID:button-submit-login