Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

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