title: Getting Path is not canonical error while doing Functional Test Using Robot Framework
body: <p>I am trying to write Robot Framework test for File Upload. I'm using the below Keyword to perform the function.</p>
  <pre><code>Choose File    ${UPLOAD_FILE_HIDDEN_INPUT}    ${UPLOAD_FILE_NAME}
  </code></pre>
  <p>where</p>
  <pre><code>${UPLOAD_FILE_HIDDEN_INPUT}    xpath=//input[@type=&quot;file&quot;]
  </code></pre>
  <p>and <code>${UPLOAD_FILE_NAME}</code> is the Path location where I am trying to place the File that needs to be uploaded.</p>
  <p>My testcase is in below directory</p>
  <pre><code>C:\Dev\Application\tests\functional\Robot\TestSuite\TestCase
  </code></pre>
  <p>I am placing the file which needs to be uploaded in below directory</p>
  <pre><code>C:\Dev\Application\tests\functional\Robot\Images\File1.jpg
  </code></pre>
  <p>I am declaring the variable <code>${UPLOAD_FILE_NAME}</code> in the variable section of the test case. In order to get to the File Location, I need to go back one Folder</p>
  <pre><code>C:\Dev\Application\tests\functional\Robot\ 
  </code></pre>
  <p>and then proceed to images Folder</p>
  <pre><code>C:\Dev\Application\tests\functional\Robot\Images
  </code></pre>
  <p>In-order to perform this, I am using below value to the variable</p>
  <pre><code>${UPLOAD_FILE_NAME}    ${CURDIR}\\..\\Images\\File1.jpg
  </code></pre>
  <p>But I am getting the below error</p>
  <pre><code>path is not canonical: C:\\Dev\\ClaimLogUI\\tests\\functional\\Robot\\TestSuite\\..\\Chrysanthemum.jpg\n  (Session info: chrome=46.0.2490.86)\n  (Driver info: chromedriver=2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3),platform=Windows NT 6.1 SP1 x86_64)' 
  </code></pre>
  <p>I used similar kind of Folder notation as value to other files in some other scenario and it was working fine. I am not sure where I am going wrong in order to locate File1.jpg. I am using Chrome Browser to perform this test. Could someone help me?</p>