Closed Bug 1279854 Opened 9 years ago Closed 8 years ago

File Upload - File not Found

Categories

(Remote Protocol :: Marionette, defect, P3)

47 Branch
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: oliver, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0 Build ID: 20160604131506 Steps to reproduce: Write an jUnit-Test in Eclipse Luna to controll Selenium with MarionetteDriver to fill an File-Path to an Upload-Field (HTML generated via Primefaces 5.0) https://stackoverflow.com/questions/37730407/selenium-marionette-webdriverexception-file-not-found Actual results: Marionette gives "File not found" org.openqa.selenium.WebDriverException: File not found: D:\Projekte\Ticket.xml (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 10 milliseconds Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 16:57:40' System info: host: 'r-177', ip: '172.16.18.177', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_79' Session ID: ec651a7b-bca2-48f0-8dd3-9e3bfde44c1c Driver info: org.openqa.selenium.firefox.MarionetteDriver Capabilities [{platform=XP, specificationLevel=0, acceptSslCerts=false, browserVersion=47.0, browserName=Firefox, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, raisesAccessibilityExceptions=false, rotatable=false, appBuildId=20160604131506, takesElementScreenshot=true, command_id=1, version=, firefox_profile=UEsDBBQACAgIAE+LyUgAAAAAAAAAA..., platformVersion=6.1, platformName=Windows_NT, proxy={}, device=desktop, takesScreenshot=true}] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327) at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:122) Expected results: The File should be uploaded, as it was while using FireFox 46 and Seleniums FirefoxDriver
Does this work if you remove the Keys.Tab from the sendKeys call?
Flags: needinfo?(oliver)
Without that "Keys.Tab" the JavaScript change Event will not be executed to let my client sided code notify, that something has changed and start that upload. Also with keeping FireFox in Focus (not debugging or manual using the pc) it won't work. So May you are right, using this TAB may crashes the filepath, but FirefoxDriver worked well with that TAB, raised change event and all worked. So what should I do to get the change Event? Then I will test without that TAB.
could you split into a new line? That should act the same as you have described e.g. element.SendKeys("C:\\path\\file.txt") element.SendKeys(Keys.TAB)
That didn't work either. "org.openqa.selenium.WebDriverException: File not found: "
ok cool, it's what I thought. Thank you, I will get a patch ready.
Flags: needinfo?(oliver)
Hi. I am facing the same issue. Were in am using FF 47 and selenium 2.53 and obviously Marionette driver. File Upload is not working. Now downgraded FF to 46 and using FF driver itself and its working. Expecting a fix sooner (so that I could run in latest FF versions). Thanks a lot !
Priority: -- → P3
File uploads should work fine meanwhile. We are not aware of issues beside bug 1390486 which are fixed in Firefox 56, and in the upcoming 0.19 release of geckodriver. If you can still reproduce it please let us know with a trace log.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.