javascript - Selenium fileupload path format issue -


I am trying to upload a file via Selenium IDE, the path is the following:

  driver.FindElement (By.Id ("fileupload"). SendKeys ("C: \\ user \\ myuser \\ document \\ Visual Studio 2010 \ Projects \\ TestPackages \\ new-package \\ 0.0 1 \\ new-package.zip ");   

The query is failing because the sending path is actually:

  c: \\ user \ \ Myuser \\ Documents \\ Visual Studio 2010 \ Projects \\ TestPackages \ ew-package \\ 0.0.1 \ ew-package.zip   

">

I think \ n is disappearing because \ n a new line in the string means

Do you want a double slash or are you using it to avoid a slash?

Try adding an additional slash like this:

  {c: \\\ user \\ myuser \\\ document \\\ Visual Studio 2010 \ \ PROJECTS \\\\\\\\\\\\\\\\ New pack Yes \\\ 0.0. 1 \\\\\ new-package.zip}    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -