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 725 Nov-14-2023, 11:34 PM
Last Post: snippsat
  File path by adding various variables Mishal0488 2 1,025 Apr-28-2023, 07:17 PM
Last Post: deanhystad
  Script File Failure-Path Error? jerryf 13 3,448 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,200 Sep-09-2021, 01:25 PM
Last Post: Yoriz
  Subprocess.Popen() not working when reading file path from csv file herwin 13 14,981 May-07-2021, 03:26 PM
Last Post: herwin
  /home/pi/.local/bin is not on PATH hcccs 3 12,559 Feb-08-2021, 10:12 PM
Last Post: Gribouillis
  Add file to sys.path permanently hcccs 5 8,359 Jan-31-2021, 11:26 AM
Last Post: hcccs
  Failing to copy file from a network to a local drive tester_V 4 7,095 Jan-20-2021, 07:40 AM
Last Post: tester_V
Smile Import error with local file colt 1 1,923 Nov-08-2020, 07:56 AM
Last Post: Gribouillis
  Bug ? when dataclass field name == field type Cyril 0 1,546 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