Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

problems automating file upload in firefox

View previous topic View next topic Go down

problems automating file upload in firefox

Post by AutobotsAssemble on Tue Dec 18, 2012 6:22 am

Hi, I'm using the latest selenium with firefox to automate uploading a
file. I was able to determine the xpath to type into the file upload
dialog's filename input field(to specify what file to upload). A
strange thing I noticed is that after typing the filename, it uploads
the file into my application. However, the file upload dialogue never
closes! I'm confused about two things:

1. The file was uploaded
- in order for this to happen besides typing in the filename(which is
all I coded) you would need to either click OK in the file upload
dialogue OR click enter. Using the debugger to step through the code,
neither was done.
2. So somehow the file gets uploaded even though
it doesn't look like the file upload dialogue had "" typed
or "OK" clicked. I need to close the dialogue though to detect the
xpath of the uploaded file. Ideally I'd like to do this by clicking
"OK" in the file upload dialogue but I can't find the xpath for the
button through firebug, xpath checker, or selenium. I noticed that if I
were to perform the upload manually, I can press to close
the file upload dialogue. I used object>.Type(Keys.ESCAPE). Performing that line in the debugger told
me the "Type" method returned true, meaning it successfully executed
this, and yet nothing happened!

It looks like the file upload
dialogue is native to firefox because it has a firefox logo on the top
left. I would appreciate it if someone could tell me how I can find the
xpath for elements in the file upload dialogue or why pressing
in the dialogue isn't closing it. Thank you.

AutobotsAssemble

Posts : 2
Join date : 2012-12-18

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum