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
  Subprocess.Popen() not working when reading file path from csv file herwin 13 1,089 May-07-2021, 03:26 PM
Last Post: herwin
  /home/pi/.local/bin is not on PATH hcccs 3 873 Feb-08-2021, 10:12 PM
Last Post: Gribouillis
  Add file to sys.path permanently hcccs 5 966 Jan-31-2021, 11:26 AM
Last Post: hcccs
  Failing to copy file from a network to a local drive tester_V 4 782 Jan-20-2021, 07:40 AM
Last Post: tester_V
Smile Import error with local file colt 1 533 Nov-08-2020, 07:56 AM
Last Post: Gribouillis
  Bug ? when dataclass field name == field type Cyril 0 423 Oct-22-2020, 03:26 AM
Last Post: Cyril
  PyDrive download file path MiniMinnow 0 1,450 Apr-28-2020, 03:01 PM
Last Post: MiniMinnow
  String to File Path creedX 4 1,031 Apr-06-2020, 07:29 PM
Last Post: creedX
  How to get file name without the full path details and without extension aruncom2006 1 2,801 Jan-13-2020, 07:37 AM
Last Post: Larz60+
  How to include Variable in File Path penahuse 3 3,036 Jan-05-2020, 03:08 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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