title: In Finding Broken links script ( using Selenium Robot Framework) -In Get Request URL's are going twice by appending
body: <p>I am not sure what's wrong in the below Get Request, when i run the script in Get Request link appended.</p>
  <p><strong>Issue :</strong>
  GET Request : url=http://127.0.0.1:5000//http://127.0.0.1:5000/index.html</p>
  <p>Please see the below code and the Report screenshot.</p>
  <p>I am stuck here! Really appreciate  for the help.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>${url3}   http://127.0.0.1:5000/
  ${BROWSER}  chrome
  *** Test Cases ***
   
  BrokenLinksTest-ForPracticeSelenium-2ndPage
      Open Browser    ${url3}  ${BROWSER}
      Maximize Browser Window
      VerifyAllLinksOn2ndPage
      Close Browser
  *** Keywords ***
  
  VerifyAllLinksOn2ndPage
      Comment    Count Number Of Links on the Page
      ${AllLinksCount}=    get element count     xpath://a
      Comment    Log links count
      Log    ${AllLinksCount}
      Comment    Create a list to store link texts
      @{LinkItems}    Create List
      Comment    Loop through all links and store links value that has length more than 1 character
      : FOR    ${INDEX}    IN RANGE    1    ${AllLinksCount}-1
      \    Log    ${INDEX}
  
      \    ${link_text}=    Get Text    xpath=(//a)[${INDEX}]   #&lt;-- for what ? --&gt;
      \    ${href}=    Get Element Attribute    xpath=(//a)[${INDEX}]     href
  
      \    Log    ${link_text}
      \    log to console  ("The link text is "${link_text}" &amp; href is "${href}" ${INDEX})
  
      \    ${linklength}    Get Length    ${link_text}  #&lt;-- you are checking text not href ? --&gt;
      \    Run Keyword If    ${linklength}&gt;1    Append To List    ${LinkItems}    ${href}
      Log Many    ${LinkItems}
      Remove Values From List  ${LinkItems}  javascript:void(0)     #&lt;-- don't forget checking content on list --&gt;
      ${linkitems_length}    Get Length    ${LinkItems}
      Log Many    ${LinkItems}
      @{errors_msg}    Create List
      Create Session    secondpage   http://127.0.0.1:5000/
      :FOR    ${INDEX}    IN RANGE   ${linkitems_length}
      \    Log Many     ${LinkItems[${INDEX}]}
      \    ${ret}    get request   secondpage     ${LinkItems[${INDEX}]}
      \    log to console      ${ret}
      \    log       ${ret}
      \    ${code}    Run Keyword And Return Status    Should Be Equal As Strings    ${ret.status_code}    200
      #\   log to console  "Gonna link"  ${LinkItems[${INDEX}]}
     # \   click link      ${LinkItems[${INDEX}]}
     #\   Capture Page Screenshot
     #\   Click Link         link=${LinkItems[${INDEX}]}
      \    Run Keyword Unless    ${code}    Append To List    ${errors_msg}    error :${LinkItems[${INDEX}]} | ${ret.status_code}
      ${check}    Run Keyword And Return Status    Lists Should Be Equal    ${errors_msg}    ${EMPTY}
      Run Keyword Unless    ${check}    Fail    Link \ assertion Failed with msg:\n@{errors_msg}
      Sleep  1</code></pre>
  </div>
  </div>
  </p>
  <p><a href="https://i.stack.imgur.com/U5KlU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U5KlU.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/V0GNg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V0GNg.png" alt="enter image description here" /></a></p>