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
Post a Comment