Giter Club home page Giter Club logo

Comments (17)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
can u please give an update on this..

Original comment by [email protected] on 13 Apr 2012 at 1:17

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Thanks for the report. However, I was unable to reproduce this bug on Chrome 18 
with ChromeDriver 1068 for your sample html.

Are you using the remote webdriver server, or are you just instantiating 
ChromeDriver directly? Either way works for me. Are you using the Java 
WebDriver client? Can you post a full sample code, along with your 
chromedriver.log file?

Original comment by [email protected] on 19 Apr 2012 at 8:17

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
org.openqa.selenium.WebDriverException: 'file:/C:/Usersdata/2012.zip' does not 
exist on the file system (WARNING: The server did not provide any stacktrace 
information)
Command duration or timeout: 78 milliseconds
Build info: version: '2.21.0', revision: '16552', time: '2012-04-11 19:09:00'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', 
java.version: '1.6.0_29'
Driver info: driver.version: RemoteWebDriver



This the exception i was getting.
The file is present in the specified location.

Original comment by [email protected] on 20 Apr 2012 at 10:51

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Can u just provide an example about the file upload.. This would be really 
helpful.

Original comment by [email protected] on 20 Apr 2012 at 12:53

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
System.setProperty("webdriver.chrome.driver", "C:\\temp\\chromedriver.exe");
ChromeDriver d = new ChromeDriver();
d.executeScript("document.body.innerHTML='<input type=file></input>'");
d.setFileDetector(new LocalFileDetector());
d.findElement(By.id("chooseLocalFile")).sendKeys("C:\\temp\\chromedriver.log");
//Manually verify that the file has been uploaded.
Thread.sleep(6000);

Original comment by [email protected] on 20 Apr 2012 at 3:03

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Although actually you don't need to call setFileDetector.

Original comment by [email protected] on 20 Apr 2012 at 3:05

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
How is this low priority? The 'Choose File' button DOES NOT WORK; that's a 
serious concern.

I'm using the latest version of Chrome: 18.0.1025.168

Original comment by vgmforbin on 4 May 2012 at 4:44

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
This is only low priority because I haven't been able to confirm the bug yet.

Please try my sample test or provide a simple reproducible test case that 
causes the problem to occur. Also please attach your chromedriver.log.

Original comment by [email protected] on 4 May 2012 at 6:01

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
[deleted comment]

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
i am observing the same error message in Chrome.Observing the following 
statement.
driver.findElement(By.id("TabID")).sendKeys(""); ---- this is working fine in 
firefox by sending a NULL path.

'' does not exist on the file system (WARNING: The server did not provide any 
stacktrace information) Command duration or timeout: 43 milliseconds Build 
info: version: '2.21.0', revision: '16552', time: '2012-04-11 19:09:00' System 
info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: 
'1.6.0_31' Driver info: driver.version: RemoteWebDriver
 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:175)
 at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:128)
 at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:459)
 at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:245)
 at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:88)

Original comment by [email protected] on 21 May 2012 at 1:54

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
what do you expect to happen when you pass an empty string?

Original comment by [email protected] on 21 May 2012 at 3:34

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I am expecting this should not select any image. I am verifying an error 
message "you should select an image to continue....." - when an image is not 
selected, while saving the changes.

Getting the above message properly in firefox, but not in Chrome.

Original comment by [email protected] on 22 May 2012 at 6:14

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Can you send keys for a real file that is not an image? Will that work for your 
case?

Original comment by [email protected] on 22 May 2012 at 3:43

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Yes. It is working fine both in Firefox and Chrome when i am using a real file 
(not an image). But, in this case i am getting different message:
"Your image must be one of the following formats. .jpg, .jpeg, .gif"

How can i verify the other case, when i am not passing any file location, just 
a blank??

Original comment by [email protected] on 23 May 2012 at 6:21

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I see. I do not see us supporting your use case anytime in the near future. 
That said, it should be possible to emulate such behavior by using javascript 
and webdriver's execute script method.

Original comment by [email protected] on 6 Aug 2012 at 5:44

  • Changed title: Can't test blank/empty file upload scenarios
  • Changed state: WontResolve

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024

Original comment by [email protected] on 13 Mar 2013 at 11:45

  • Changed state: Closed

from chromedriver.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024

Original comment by [email protected] on 21 Feb 2015 at 12:27

  • Changed state: Fixed

from chromedriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.