> > > > > > webdriver+unsubscribe@googlegroups.com.
> > > > > > For more options, visit this group
> > > > > athttp://groups.google.com/group/webdriver?hl=en.
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google Groups
> > > > > "webdriver" group.
> > > > > To post to this group, send email to webd...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > webdriver+unsubscribe@googlegroups.com.
> > > > > For more options, visit this group athttp://groups.google.com/group/webdriver?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google Groups "webdriver" group.
> > > > To post to this group, send email to webd...@googlegroups.com.
> > > > To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
> > > > > > webdriver+unsubscribe@googlegroups.com.
> > > > > > For more options, visit this group
> > > > > athttp://groups.google.com/group/webdriver?hl=en.
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google Groups
> > > > > "webdriver" group.
> > > > > To post to this group, send email to webd...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > webdriver+unsubscribe@googlegroups.com.
> > > > > For more options, visit this group athttp://groups.google.com/group/webdriver?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google Groups "webdriver" group.
> > > > To post to this group, send email to webd...@googlegroups.com.
> > > > To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
> > > > For more options, visit this group athttp://groups.google.com/group/webdriver?hl=en.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
Only if it had been a file download thread I’d have got ranty about how you probably don’t need to download the file in the first place ;)
One thing that I continue to see that I don’t really understand is the refusal of people to use the upload functions provided because they want to test the OS dialogue part, has anybody ever actually found a bug with the OS dialogue popup that has been valid doing these sort of tests? Even if they did find such a bug would their developers be able to fix it?
From: webd...@googlegroups.com [mailto:webd...@googlegroups.com] On Behalf Of Jim Evans
Sent: 16 May 2012 19:06
To: webd...@googlegroups.com
Subject: [webdriver] Re: Automate File Upload window using Webdriver
I don't have any answer for you here, but I think I'm going to bookmark this post so that I can point to it anytime anyone asks, "How do I automate file downloads[1] using WebDriver?" This is *exactly* why that particular feature doesn't exist in WebDriver.
> > > > > > Doesn't work. Because link is not visible=
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
Anil,
You say that people don’t want to test the OS dialogue, yet when given a solution that bypasses it most of them ignore it and go looking for complex workarounds like Java robot classes or AutoIT. Selenium (Both the RC and WebDriver API’s) actually do a good job of dealing with file uploads.
File downloads are slightly more tricky and IMHO should be avoided unless absolutely necessary (i.e. you are going to actually do something with the file you download, don’t just download it to prove you can). The code below does a good job (in my opinion, maybe not in others) of trying to work around the problems, but it’s not perfect and could do with a lot more work.
I have no problem with people performing upload/download tests, I just think that they should check that there is some worth in the test before blindly rushing ahead and trying to automate it.
It’s things like this that make me shy away from grid.
I would prefer to have a maven project checked out and run locally on the machine the tests should be run on. You can then maven magic to get files from the resource directory and use them locally to run your tests.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/GxOeBck7OeIJ.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/webdriver/-/pxSS8VFO6oUJ.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
Hello.
Selenium RC worked before.
selenium.type("name=hidden-files", "C:\\ForUpload\\DSC_8225.jpg");
But now:
driver.findElement(By.name("hidden-files")).sendKeys("C:\\ForUpload\
\DSC_8225.jpg");