Python Forum
Add path to a local file in pop-up field
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add path to a local file in pop-up field
#1
I am scripting in Selenium no problems on that.

At a certain point I click on browse (a http element) and a pop-up opens to upload a local file from hard disk drive.

So what I need is (I am outside Selenium here):

1) Insert a text in the active window. This will be the Path and the Name of the file to upload
2) Press <ENTER>

Can that be done? When I record with Selenium IDE add-on those 2 steps record nothing.
Of course, it is because I am outside the scope of Selenium.

If it is to any importance, I develop in Windows but will execute in Linux.
The solution should work in Linux as well.
Reply
#2
Please post code, it would help in understanding what you are trying to do.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  parse json field from csv file lebossejames 4 668 Nov-14-2023, 11:34 PM
Last Post: snippsat
  File path by adding various variables Mishal0488 2 964 Apr-28-2023, 07:17 PM
Last Post: deanhystad
  Script File Failure-Path Error? jerryf 13 3,313 Nov-30-2022, 09:58 AM
Last Post: jerryf
  WebDriverException: Message: 'PATH TO CHROME DRIVER' executable needs to be in PATH Led_Zeppelin 1 2,148 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  Subprocess.Popen() not working when reading file path from csv file herwin 13 14,616 May-07-2021, 03:26 PM
Last Post: herwin
  /home/pi/.local/bin is not on PATH hcccs 3 12,433 Feb-08-2021, 10:12 PM
Last Post: Gribouillis
  Add file to sys.path permanently hcccs 5 8,177 Jan-31-2021, 11:26 AM
Last Post: hcccs
  Failing to copy file from a network to a local drive tester_V 4 6,972 Jan-20-2021, 07:40 AM
Last Post: tester_V
Smile Import error with local file colt 1 1,878 Nov-08-2020, 07:56 AM
Last Post: Gribouillis
  Bug ? when dataclass field name == field type Cyril 0 1,525 Oct-22-2020, 03:26 AM
Last Post: Cyril

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020